#1
|
|||
|
|||
Normal Map Workflow for Vizard
Hi Vizard Support people,
I had a question when it can to implement normal mapping on objects inside of Vizard. I found a few questions already about this and I found that the simple: object.bumpmap(bumpmapfile) worked fine the first time I used it on a simple .obj model with a normal map produced from a software package called Z Brush as you can see below with the code: Code:
import viz viz.go() viz.MainView.setPosition([0,0,-10]) test = viz.add('prototypeSphere.obj') normal = viz.add('prototypeSphere4.BMP') test.bumpmap(normal) head = viz.MainView.getHeadLight() head.disable() l = viz.addLight() l.setPosition([20,20,0]) def onUpdate(e): #This will be called every frame test.setEuler([1,0,0], viz.RELATIVE) viz.callback(viz.UPDATE_EVENT,onUpdate) The problem I am having now is when I am trying to apply a normal map to a model in a CFG file (Cal 3D format for animation). Code:
import viz viz.go() viz.MainView.setPosition([0,0,-10]) TRex = viz.add("TRex.CFG") normal = viz.add("TRexNormalMap_03_Tangent.BMP") head = viz.MainView.getHeadLight() head.disable() TRex.bumpmap(normal) Any help? Is it not possible to add normal mapping to non-static objects? Here is my normal map for the T-Rex, but I'm sure that is correct: I used Tangential instead of Adaptive when generating it, which seemed to make sense since I believe Vizard needed the tangential information when calculating the normal map in the pixel shader. And it worked for the sphere. http://i200.photobucket.com/albums/a...03_Tangent.jpg Thanks, George |
#2
|
|||
|
|||
Hi George,
Sorry, but we do not currently support normal mapping on avatars. |
#3
|
|||
|
|||
Alright,
Thank you for the answer, I'll see what I can come up with on my own for a fragment shader. ~George |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Normal Maps | nige777 | Vizard | 9 | 02-21-2008 03:55 AM |