Stupid NooB questions

Discussion about everything. New games, 3d math, development tips...
Post Reply
Anteater

Stupid NooB questions

Post by Anteater »

Hi. I was wondering...
What are 16/32 bit Indices? Just what is an index in relation to a 3D engine?

How do you make a light be a directional light?
Ronin
Posts: 116
Joined: Wed Mar 03, 2004 6:23 pm
Location: Germany

Post by Ronin »

A model consists of triangles. To define a triangle, you need 3 vertices (points) out of your vertex list. But if you save 3 vertices for each triangle a lot of vertices are redundant, because a vertex can belong to more than one triangle. So you have a vertex list, with all your vertexes and you save your triangles as indices. An index tells you, where in the vertex list you find a certain vertex for a certain triangle.
YASS - Yet Another Space Shooter - www.yass-engine.de
omaremad_

Post by omaremad_ »

0_0 ithought he meant 16/32 bit colors

any way tri fans tri strips are cool
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

adding to that, with 16 bits you can have 2^16 possible values - a range of 0 to 65,535. With 32 bit indices you've got 2^32 = 0 to 4,294,967,295. So with 32 bit index list you can have a lot more points in one mesh buffer.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Pr3t3nd3r
Posts: 186
Joined: Tue Feb 08, 2005 6:02 pm
Location: Romania
Contact:

Post by Pr3t3nd3r »

but if i use low poly models (like games for example ..) 16 bit will be more advantageous. NO ?
Conquistador
Posts: 340
Joined: Wed Sep 28, 2005 4:38 pm
Location: Canada, Eh!

Post by Conquistador »

16 bit integers use 2 bytes, 32 bits use 4 bytes, so there will be a very slight reduction in memory used by 16 bit indicies.
Royal Hamilton Light Infantry - http://www.rhli.ca
Paris/Port Dover Pipes'n Drums - http://www.parisdover.ca
pr3t3nd3r_guest

Post by pr3t3nd3r_guest »

computers use 32 bits so will be an faster speed improvement
loool ....
i don't know ... meybe is true ...

but 16 less memory faster transfer ... could be ...
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

My computer uses 64 bits, and running 32 bit applications is just as fast on my 64 bit machine, with 64 bit OS, as it is on a 32 bit machine with 32 bit OS. So the "faster speed improvement" is not true.
Image
Maize
Posts: 163
Joined: Sat Oct 29, 2005 12:12 am
Location: In a cave...
Contact:

Post by Maize »

Well played Spintz :)
Post Reply