Advertisement Jump to content


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


GL Feedback

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

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. 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!