View Single Post
  #2  
Old 05-16-2006, 11:15 AM
Gladsomebeast Gladsomebeast is offline
Member
 
Join Date: Mar 2005
Location: Isla Vizta, CA
Posts: 397
1. Check this thread for a code example of bumpmapping. http://www.worldviz.com/forum/showthread.php?t=378
The fourth parameter to <VizNode>.bumpmap() is a light number. This tells Vizard which light will be interacting with the bumpmap. The default light is the headlamp attached to the viewpoint.

2. Would need to write a plugin for it.

3. The following code tiles a texture across a surface. Can you simply apply your detailed texture with this, abandoning the 2k sized texture?

quad = viz.add(viz.TEXQUAD)
quad.translate(0,1.6,4)
quad.scale( 3, 3, 1 )

x = viz.Transform()
x.setScale(3,3,1)
quad.texmat(x)

tex = viz.add('ball.jpg')
quad.texture(tex)

tex.wrap(viz.WRAP_S,viz.REPEAT)
tex.wrap(viz.WRAP_T,viz.REPEAT)

glow = viz.add('glow.dlm')

tex.modify( glow )

4,5,6: All these could be done with the creation of custom plugins. Check out the Vizard Plug-in SDK download to see how this is done.
Reply With Quote