• Advertisement

Archived

This topic is now archived and is closed to further replies.

Lighting -> Fuzzy Spotlight

This topic is 5844 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, i''m a Student diong an internship, i have a research assignment where the goal is to make a OpenGL 3D reprisentation of 2D MRI scanner data. I am at the point that i have the model and all, but since the reprisentation is a hart chamber (left ventrikular) it''s in 1 color. The single color prevented seing depth, so i started working with lighting. I have ambient light (works fine), and a stationary spotlight to create a shade in order to get depth. This works good but when i rotate the object arround the x or y axis then i see that the other side does not get illuminated even though the light is shining directly on it. It does however work with rotations arround the Z axis (unless already dark). An example from another company of this viewing module can be found here : http://www.medis.nl/MainFrameProducts/Products/MriMass/MainFrameMASS.htm The bands of the model are made up out of triangle strips and fan''s. and i do not use culling or resize or anything like that that could invalidate the normals. Plz help me,.. i tried everything. I can''t find a solution

Share this post


Link to post
Share on other sites
Advertisement
add another light from the other direction!

http://uk.geocities.com/sloppyturds/gotterdammerung.html

Share this post


Link to post
Share on other sites
I did that, but it didn''t work.
Placing a light at the opposite direction caused the inside of the model to be lighted :S
Any idea what could be causing this ?

I heard something about normals rotating seperatly from verteces
Dunno if that''s the case here.

Share this post


Link to post
Share on other sites
Here is some of the source code :
All OpenGL related code is in these 2 files

http://asp2.net/ravenmaster/view.c
http://asp2.net/ravenmaster/LVA3DVMain.c

Share this post


Link to post
Share on other sites

  • Advertisement