View Full Version : OpenGL solid models
03-17-2002, 10:30 PM
how to make OpenGL objects behave like solid models i.e. placing one on top of another,
not allowing two objects to be drawn at the same place? In other words how to give a physical character to the OpenGL objects?
thanx in advance.
03-17-2002, 10:42 PM
This is probably a stupid answer, but then, I haven't really understood the question. This is more a question of collision detection and management and has nothing to do with OpenGL.
03-17-2002, 11:17 PM
Try the Collision Detection Tutorial @ http://NeHe.GameDev.net (http://nehe.gamedev.net)
03-18-2002, 01:14 AM
that's pretty simple...just put this line at the beginning of your rendering code
hope this helps http://www.opengl.org/discussion_boards/ubb/smile.gif
03-18-2002, 01:22 AM
but in case that doesn't work on your hardware try bsp, quad, oct, any...tree partitioning space into small parts....
it's a bit difficult to do this dynamically (your tree changes), but it's still possible to have logN (N=number of triangles) complexity of your algorithm
03-18-2002, 01:49 AM
Mickey, don't throw the poor guy in the middle of the programming-ocean by talking about things you don't really need for collision detection..
Just learn how to do CD first, that's already though enough.
(assuming that he's a beginner)
Assume that your objects are completely made up of bosons. They are allowed to be at the same place at the same time. Then you don't have to care about it http://www.opengl.org/discussion_boards/ubb/wink.gif
You need collision detection.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.