Pixel precise collision detection.

Programming Reality Factory and Genesis3D.
Post Reply
User avatar
zany_001
Posts: 1047
Joined: Fri Mar 02, 2007 8:36 am
Location: Aotearoa

Pixel precise collision detection.

Post by zany_001 »

Is RF1 or rf2 got pixel precise collision detection?Or is it just got bounding box collision detection?
Once I was sad, and I stopped being sad and was awesome instead.
True story.
User avatar
scott
Posts: 1151
Joined: Tue Jul 05, 2005 1:59 am
Location: United Kingdom

Post by scott »

what would you do with pixle precise collision detection?
*GD*
User avatar
Spyrewolf
Posts: 450
Joined: Tue Jul 05, 2005 4:53 am
Location: Wellington::New Zealand

Post by Spyrewolf »

I'm pretty sure it's bounding box, we use to have per poly collision but it had too many bugs,

static meshes use per poly or pixel i think but im not to certain

@scott. pixel precise collisions are great! (but expensive on frames) it mean that if any pixel collides with another it is register as a collision, imagine a head shot that you could specify a tooth shot.

currently we have bounding box meaning that collisions are least accurate, collision currently is decided if one bounding box meets another.
User avatar
scott
Posts: 1151
Joined: Tue Jul 05, 2005 1:59 am
Location: United Kingdom

Post by scott »

well wouldnt that be per poly collision, per pixle colision seems a little pointelss, the only thing i can think that you would use it for is to get a location of the mouse pointer but there are alot more efficient ways i belive of doing that.
*GD*
Jay
RF Dev Team
Posts: 1232
Joined: Fri Jul 08, 2005 1:56 pm
Location: Germany

Post by Jay »

I just thought that maybe pixle precise collisions are a way of also getting the Texture coordinates from a, let's say shot in the wall? This way you could make it so that you can shoot holes into a metal barrel - and then even shoot THROUGH that holes!
Everyone can see the difficult, but only the wise can see the simple.
-----
User avatar
scott
Posts: 1151
Joined: Tue Jul 05, 2005 1:59 am
Location: United Kingdom

Post by scott »

a more efficient way if doing that would be to have some code saying something like

if shot = position of decal then
disable collision/pass bullet through
create new decal at final location

else
create new decal at current possition

if you used pixle precise collision, then if you run the game at minimum resolution, 800x600 that = 480000 now substitute that for polygons because thats basicly what you would be making it.

if you mean texels, then that would depend on size of walls, a standard cube is 512x512 that = 262144 for one standard wall, i cant see th point in having this function as the cpu requiremnet would be imposible, rf strugles with just standard pollygons.
*GD*
User avatar
zany_001
Posts: 1047
Joined: Fri Mar 02, 2007 8:36 am
Location: Aotearoa

Post by zany_001 »

okay,i realioze now that what rf has is close enough to pixel precise that it doesnt matter,i just thoyught,cos doom3 has got pixelprecise.
Once I was sad, and I stopped being sad and was awesome instead.
True story.
User avatar
QuestOfDreams
Site Admin
Posts: 1520
Joined: Sun Jul 03, 2005 11:12 pm
Location: Austria
Contact:

Post by QuestOfDreams »

No game uses pixel precise collision detection, not even doom3. The only thing where you can talk about pixel-precise operations is menu screens and stuff like that, but every game uses that even Reality Factory is pixel precise in the menu. :roll:
User avatar
zany_001
Posts: 1047
Joined: Fri Mar 02, 2007 8:36 am
Location: Aotearoa

Post by zany_001 »

well then the article i read lied,it must have been similiar to what rf uses
Once I was sad, and I stopped being sad and was awesome instead.
True story.
Post Reply