Colored Collision Detection

Posted by tugrul büyükisik on Game Development See other posts from Game Development or by tugrul büyükisik
Published on 2012-09-01T09:16:51Z Indexed on 2012/09/01 9:50 UTC
Read the original article Hit count: 222

Filed under:
|

Several years ago, i made a fast collision detection for 2D, it was just checking a bullets front-pixel's color to check if it were to hit something. Lets say the target rgb color is (124,200,255) then it just checks for that color. After the collision detection, it paints the target with appropriate picture. So, collision detection is made in background without drawing but then painted and drawed.

How can i do this in 3D? Because, a vertex is not just exist like a 2D picture's pixel. I looked at some java3D and other programs and understood that 3D world is made of objects. Not just pictures. Is there a program that truly fills the world with vertices ? But it could be needing terabytes of ram even more.

Do you know an easy way to interpolate the color of a vertex in java3D or similar program?

Note: for a rgb color-identifier, i can make 255*255*255 different 2D objects in background.

© Game Development or respective owner

Related posts about java

Related posts about collision-detection