WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


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


All times are GMT -7. The time now is 06:20 AM.


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