WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 04-21-2004, 11:11 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi Eugene,

I tried your file and billboarding worked automatically. Which version of Vizard are you running? The latest version is 2.15b, you might want to upgrade if you have an older version. Our vrml loader doesn't support sound, but I will go ahead and try to include that. In the meantime you could use the following code to play 3d sounds in your world:
Code:
#Create an invisible object that will play the sound
obj = viz.add(viz.GROUP)

#Place the object where we want the sound to come from
obj.translate(5,0,7)

#Loop a sound eminating from the objects location
obj.playsound('sound.wav',viz.LOOP)
Also, use the following code to add fog to your world:
Code:
#Set the fog color to white
viz.fogcolor(1,1,1)

#This will create exponential fog
viz.fog(0.1)

#This will create linear fog
viz.fog(5,20)
Good luck!
Reply With Quote
 


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


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


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