Skip to main content
gamedev.net
🔒 Locked

GPU Collision Detection

Started by Nairb 1 reply 1.3k views
Original Post
Nairb
Nairb
I posted on my blog about an idea I had for GPU collision detection. I'm not sold on the idea, and I wouldn't consider myself a graphics expert, so I was curious if you had any thoughts on the post/topic in general. I'm not going to copy it here, as it's a tad long, so sorry for the inconvenience. Cheers, ---Brian
Scuppy
Scuppy
I've done this:

You render from the point of the moving object, looking where you want to go and drawing a depth map. I read the depth at the centre of the render target and make a new view matrix based on the normal for that point. Rinse and repeat until the distance moved is greater than how far you wanted to go. This system only works as a point with no bounding volume. Just make sure the near clip isn't past the surface you are 'touching'.

It works, was a little jittery, but most of my attempts at collision detection are :(

Krokhin
Krokhin
I render a little depth cubemap,restore depth into the set of points around camera,and check collisions with this points ,
"> it
works.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.