WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 01-29-2008, 08:36 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You need to apply the second projection texture to a different texture unit. Try the following code:
Code:
import viz
import projector

viz.go()

enviro = viz.add('tut_ground.wrl')
image1 = viz.add('eyeshadow.jpg')
image2 = viz.add('eyeshadow.jpg')

proj1 = projector.add(image1)
proj1.translate(1,0,10)
proj1.rotate(0,90,0)
proj1.affect(enviro) #Apply projection texture to default texture unit 1
proj1.ortho(2,2)

proj2 = projector.add(image2)
proj2.translate(-1,0,10)
proj2.rotate(0,90,0)
proj2.affect(enviro,2) #Apply projection texture to texture unit 2
proj2.ortho(2,2)
Reply With Quote
 

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
Shadows in Vizard Vinicius Lima Vizard 4 07-26-2010 06:56 PM
3d projector Vinicius Lima Vizard 21 03-05-2008 04:51 PM
Multiple labs Plymouth Vizard 1 03-05-2007 10:43 AM
Multiple Stages in one Program Amit Vizard 7 11-11-2005 11:20 AM
multiple timer trouble exhale Vizard 2 04-26-2005 01:21 AM


All times are GMT -7. The time now is 03:15 AM.


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