![]() |
|
|
|
#1
|
|||
|
|||
|
here's a tiny test code based on some example. just replace the brick texture with a video one and you'll notce the difference.
Code:
import viz
# Make background wall
WALL_SCALE = [-1, -1, -1]
texture_scale = [1, 4, 1]
wall = viz.addTexQuad()
wall.setPosition( [0, 2, 3] )
wall.zoffset(1) #avoid zfighing, make wall appear behind pictures
wall.setScale( WALL_SCALE )
wall.setEuler(0, 0, 180)
# Apply nice repeating brick texture
matrix = vizmat.Transform()
matrix.setScale( texture_scale )
wall.texmat( matrix )
bricks = viz.addTexture('tile.png')
#bricks = viz.add('smallVideo.avi', viz.TEX_RECT)
bricks.wrap(viz.WRAP_T, viz.CLAMP_TO_BORDER)
bricks.wrap(viz.WRAP_S, viz.CLAMP_TO_BORDER) #viz.MIRROR)
wall.texture(bricks)
viz.go()
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to start video texture on world load in cave mode | raj | Vizard | 3 | 02-27-2014 05:55 PM |
| Display Video Stream on Texture | hwt | Vizard | 1 | 05-16-2011 05:18 PM |
| 3D Texture Mapping - gluBuild3DMipmaps not supported | stefs | Vizard | 1 | 04-23-2008 12:00 PM |
| 3D Texture Mapping in Vizard? | stefs | Vizard | 2 | 03-25-2008 04:34 AM |
| Video Texture Not Working on Some Objects | paulgoldberg | Vizard | 1 | 04-17-2006 01:41 PM |