![]() |
|
|
|
#1
|
|||
|
|||
|
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)
|
|
#2
|
|||
|
|||
|
Perfect thanks! I didn't see anything about texture units in the documentation.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |