Documentations and procedures that could be interesting

Everything related to the code /
Tout ce qui touche au code
Post Reply
User avatar
Corsaire
Posts: 68
Joined: Sun Feb 25, 2007 6:44 pm

Documentations and procedures that could be interesting

Post by Corsaire » Mon Nov 26, 2007 9:18 am

I dunno if this can be of any use, but I ran into this :

"I've been wondering for some time how the newer id Software games (Doom 3, Quake 4, ETQW, etc) create interactive GUI surfaces in the world.

I peeked inside the ETQW beta SDK and found they are using barycentric coordinates http://mathworld.wolfram.com/Barycentri ... nates.html .
I found almost identical (but much more complete) code in Christer Ericson's Real-Time Collision Detection book http://realtimecollisiondetection.net/ .

So I finally know how it's done, and since the code is published in a book, it should be fair game. :-)"

User avatar
AF
Administrateur - Site Admin
Posts: 139
Joined: Thu Dec 28, 2006 8:19 pm
Location: NW UK
Contact:

Post by AF » Mon Nov 26, 2007 10:58 am

http://en.wikipedia.org/wiki/Barycentri ... ematics%29

It sounds interesting, although it might get a little complex if its applied to 3d instead of 2d objects.

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Mon Nov 26, 2007 2:29 pm

Complexity doesn't matter, I can handle it very well. I already used barycentric coordinates in a raytracer engine I made when I was younger, and it's used in the unit collision detector to test if a ray intersects with a triangle from the model (to test if a point lies in the triangle or not). 3D isn't hard if you have all the geometric tools (the vector.h & matrix.h files have everything we need).
=>;-D Penguin Powered

User avatar
Balthazar
Moderator
Posts: 2055
Joined: Wed Nov 01, 2006 4:31 pm
Location: Russian Federation
Contact:

Post by Balthazar » Mon Nov 26, 2007 2:55 pm

ZUZUF DA BEST :D :D :D

User avatar
AF
Administrateur - Site Admin
Posts: 139
Joined: Thu Dec 28, 2006 8:19 pm
Location: NW UK
Contact:

Post by AF » Mon Nov 26, 2007 3:24 pm

Hooray for zuzuf!

Post Reply

Who is online

Users browsing this forum: No registered users and 39 guests