#1
|
|||
|
|||
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. |
#2
|
|||
|
|||
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.
|
#3
|
|||
|
|||
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) |
Tags |
black screen |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Display a variable in main graphics window | laker | Vizard | 2 | 09-17-2013 01:56 PM |
How to make a glass window in Vizard | Frank Verberne | Vizard | 9 | 07-27-2011 04:47 PM |
After update to 4.01.0036: exe fails to initialize graphics window | Huib | Vizard | 1 | 06-27-2011 06:02 PM |
Vizard 4 Beta Testing | farshizzo | Vizard | 0 | 02-01-2011 11:46 AM |
Vizard tech tip: Using the Python Imaging Library (PIL) | Jeff | Vizard | 0 | 03-23-2009 12:13 PM |