Title Screen
For some reason I've had some trouble doing something that should be fairly easy. Before rendering the world, I want a really simple title screen to pop up, eg a colored screen with some text. When the user is ready, eg some key is pressed, that screen disappears and the world begins rendering. I'm new to vizard (and haven't done a ton of graphics), so I don't know what the best way to do this is. So...let's talk about it huh? Please?
|
If you want a simple title screen you can set the background color and add some text to the screen. When the user hits a key you can remove the text and render the world.
Code:
import viz http://kb.worldviz.com/articles/813 |
thanks for your reply. i'm assuming that "gallery" is an environment model or something right? so basically this code would set the visibility of everything in the world off initially, and upon user input turn the visibility of those objects back on? so you would have to do this for every single world object? if so, i was kind of looking for a solution that avoided that. i just thought perhaps there was a way to disable all world rendering that didn't disable 2d text rendering. if not, though, this method isn't tough.
|
If you want to hide the entire scene then you can use the following code:
Code:
viz.MainScene.visible(0,viz.WORLD) #Hide all objects in world |
thanks for your help. that'll work. i didn't know about multiple scenes so now i understand much better.
|
All times are GMT -7. The time now is 11:19 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC