Geometry...effects...help!

Started by
10 comments, last by spek 16 years, 2 months ago
I think I'll use geometry chunk too...it seems good to me.
I'm working now on a simple material system...and the library stuff ;)

But I'm stuck with this problem :

http://i113.imagethrust.com/images/2V3W/view-image/hydraslayergreenlight.html

It seems like vertex lightning is not good...or maybe the normals? Another geometry problem? :P

After solved this problem I'll complete the material system, I'm working to doing it like you suggested me. It seems that I'll have to do not much shaders, less but more complex, to handle all texture, normal, lights...


Thanks!

---------------------------------------http://badfoolprototype.blogspot.com/
Advertisement
I can't directly tell you what's wrong with the lighting there. But usually its one of the following problems:

- Not forgotten to normalize some vectors (light vector, etc.)?
- Normals ok? Render the normal colors if you are not sure.
- Is the object rotated/transformed/scaled? Ifso, are you sure the light is in the same space as the object? When calculating the light vector, you need to make sure the light position is rotated/scaled/transformed too, or that you use world coordinates/normals. Check if the lighting is ok when the object is not rotated/scaled/transformed. Ifso, the problem might be there.

Succes with your material system!
Rick

This topic is closed to new replies.

Advertisement