WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-06-2012, 07:52 AM
vrmdl vrmdl is offline
Member
 
Join Date: Mar 2012
Posts: 14
addEnvironmentMap does not work

import viz
import vizact
Hi,

I have some trouble get environment map working. Here is the sample codes provided in tutorial.
__________________

viz.setMultiSample(4)
viz.fov(60)
viz.go()

viz.clearcolor(viz.SKYBLUE)

env = viz.addEnvironmentMap('sky.jpg')

logo = viz.addChild('logo.ive')
logo.setPosition([0,1,3])

logo.texture(env)
logo.appearance(viz.ENVIRONMENT_MAP)

logo.addAction(vizact.spin(0,1,0,60))

_______________

I do not get the texture mapped to the logo. Anyone know the reason?
Thanks
Reply With Quote
  #2  
Old 11-06-2012, 02:25 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
The code you posted is from a Vizard 4 example. In Vizard 3 replace:
Code:
env = viz.addEnvironmentMap('sky.jpg')
with:
Code:
env = viz.add(viz.ENVIRONMENT_MAP,'sky.jpg')
Reply With Quote
Reply

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
pool network tutorial.py did not work Kazutaka Mitobe Vizard 0 05-29-2012 07:24 AM
texbox overflow doesn't work when in panel disbeat Vizard 0 05-04-2011 04:24 AM
Does the automatic clipping plane calculation work? Joran Vizard 4 07-10-2009 10:35 AM
Getting a mirror to work in any environment Frank Verberne Vizard 5 03-27-2008 08:21 AM
peoplemaker not work in viz 2.53? bailenson Vizard 3 10-21-2005 12:43 PM


All times are GMT -7. The time now is 02:34 AM.


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