WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-14-2017, 08:27 AM
arshbot arshbot is offline
Member
 
Join Date: Mar 2017
Posts: 8
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.
Reply With Quote
  #2  
Old 03-14-2017, 10:06 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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.
Reply With Quote
  #3  
Old 03-20-2017, 07:53 AM
arshbot arshbot is offline
Member
 
Join Date: Mar 2017
Posts: 8
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)
Reply With Quote
Reply

Tags
black screen

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -7. The time now is 06:56 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC