Bump mapping with multi lights

ebol

09-10-2006 13:38:10

Hi! :)

I'm new to the engine and oFusion itself, I hope that someone will help me in understanding what Im doing wrong, since after 2 days strugle I decided to ask for help :P

I was trying to make a shader based material which would do bump mapping and use any number od lights. To be specific I was trying to use Ogre's Examples/BumpMapping/MultiLight material in oFusion. I used the Examples-Advanced.material file as a instruction but the effect nor look like it should in the Ogre viewport, nor the exported material file was exact like the original one... I tryed doing the 1# tutorial, but that dindt do it to, models where bumpy but they didnt react to the light at all (no shading, fully lighted)

My question is, how to setup the shaders and stuff in oFusion to get the exact same effect as in Ogre's material ??

I would been nice, if some one could give me a walkthrough or support me with a max scene that has this material in in, but any help will be really appreciated :D

I hope I dint make this too much complicated, if so, tell me, I'll try tto do it better :)

Thanks in advance

Lioric

10-10-2006 15:44:14

Have you enabled "Build Tangent Vectors" for your object(s)?

You can see the tutorial video about bumpmapping in the "Videos" section of the "Media" page of the main web site

ebol

10-10-2006 22:23:41

Thank you Lioric for your reply :)

Yes, Id did enabled "Build Tangent Vectors" option for the model, in fact, I do it automaticly with every created object, in case I'll need it later :)

And about the tutorial, tried the text and video version, but the result never was as expected. The best I managed to do, was an bump mapped object but it looked like it wasnt reacting to the light source in the scene (no shading, as it was just an ambient light in the scene). And yes, I tried it with a complex model (max torus to be precise), so its not the lack of polygons. ;)

I'm starting to run out of ideas :(

Lioric

11-10-2006 22:05:28

Do you have the latest drivers for your video hardware?

Test other bump mapping shader, for example from the tutorial 5, "Using Render Monkey Shaders", see this thread for the fix to use in the CE version http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=2056&highlight=render+monkey

ebol

11-10-2006 23:04:46

Yes, I do, there are no problems in any other applications. And I actually did that tutorial, change the shader a litte bit, and averythink works great. Thats why I have no idea what I can be doing wrong with Examples/BumpMapping/MultiLight :(


Anyway, I'm grateful for your interest Lioric :)

---
I think I'll throw some shots from the viewport to show what I mean:




click to enlarge

This is the perspective view, the white square is the light (point light). As I sad before, the object is "bumpy" but it makes no diference where the light is, the object allways stays the same color/shade