Jump to content
  • Advertisement
Sign in to follow this  
catalin_pin

OpenGL please help me :(

This topic is 4703 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 trying to build my own 3D engine using D3D9 and I'm having a problem involving matrix stacks and lights. I want to make a light stay at a fixed location in my world, but it moves as I move :(( ... If I don't use a matrix stack I achieve this effect, but as soon as I switch back to the matrix stack the light moves along with me :(. I found some explanations at www.opengl.org about matrix stacks and lights but the rules do not seem to aply to D3D as I can't notice any difference. I've searched the net and found nothing envolving matrix stacks and lights under D3D. Does anyone have any experience with this topic?! Please help. I don't want code ... only an idee will do ... at least the mathematical explanation for matrix stacks and light positions ... I'll try to understand myself ... but I need somekind of a starting point ... than k u :)

Share this post


Link to post
Share on other sites
Advertisement
Have you tried searching MSDN for information pertaining to D3D9's matrices etc. I am a fan of OpenGL, but I know that Microsoft stores all of their documentation for D3D on the MSDN site for it. Click here to go to their main developers page for DirectX. You could also just search their library also. Sorry I couldn't be of more help, Good luck!

Share this post


Link to post
Share on other sites

This topic is 4703 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.

Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!