Vizard graphics window is black
Hey all, I'm new to vizard and trying to run this script
import viz viz.setMultiSample(4) viz.go() viz.MainWindow.fov(60) piazza=viz.addChild('mymodel.osgb') And I get a black screen on the vizard window that pops up. The .osgb file is 249mb large and the fbx file that it originated from is 43.6mb. I'm not really sure what's going on here... any thoughts? The script is in the Desktop directory, which is where the .osgb file is as well. |
It's possible the model is not scaled correctly for Vizard or not centered at the origin. Can you see the model if you load it in Inspector? What are the bounding box dimensions shown in the status bar at the bottom of the window? The values shown are in meters.
|
Turns out that it wasn't black! It was actually so dark that I couldn't see anything, thinking it was black. Adding these two lines to my main script solved the issue!
mylight = viz.addSpotLight(spread=180, pos=(10, 100, 0)) mylight.intensity(100) |
All times are GMT -7. The time now is 08:51 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC