WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-19-2015, 04:56 AM
andreionutz andreionutz is offline
Member
 
Join Date: Apr 2012
Posts: 15
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()
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
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


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


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