Jump to content
  • Advertisement

Archived

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

Qurbi

GL Feedback

This topic is 5280 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

Hello, I have drawn a pyramid inside an irregular ''stone''. In order to determine the ''best fit'', I increase the size (of the pyramid) gradually, rotating it 360x360x360 degrees, and check for collision against all stone faces. If not, I repeat, incrementing the size. This is done mathematically (sine, cos, cross product, etc.). Obviously, this consumes a lot of time. I seek help in :- 1) I believe GL_Feedback could retrieve the coordinates of the lines, at every rotation. However, the example in the redbook (feedback.c) does not give me the coordinates, if they are negative. I can rotate and translate vertexes by glRotatef(), glTranslatef(). But I can''t get the resulting coordinate of vertexes. I need these to check for collision. 2) Do I have to go through collision detection, to ensure that the pyramid doesnt go out of the stone?? Since I''ve used blending, when part of the pyramid goes out of the stone, that part''s color changes slightly. Could I use any OPENGL function to check this, and avoid the mathematical collision-detection routines?? Any help, whatsover, would be highly appreciated. I''m coding in VB6, but VC++ answers are welcome too!! Thanks a lot, in advance. Regards.. Q mithil@hotmail.com

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!