Jump to content

OBD:M3GM: Difference between revisions

391 bytes removed ,  7 February 2008
"generates its own"? "ignored"? what the?!
m (altered IDXA links)
("generates its own"? "ignored"? what the?!)
Line 26: Line 26:
;Vertex normals
;Vertex normals
:The first VCRA stores the normals for every vertex (same entries as in PNTA and TXCA).
:The first VCRA stores the normals for every vertex (same entries as in PNTA and TXCA).
:Vertex normals are supposed to be used by Gouraud shading (directional lighting).
:Vertex normals are used by Gouraud shading (directional lighting).
:The precomputed normals are apparently ignored by Oni, which generates its own...
;Face normals
;Face normals
:The second VCRA stores the normals for every face (groups defined by the second IDXA).
:The second VCRA stores the normals for every face (groups defined by the second IDXA).
:Face normals may be used for env-mapping (but vertex normals could also work there).
:Face normals are used for backface culling.
:The precomputed face normals are apparently ignored by Oni too... didn't check much.
;Triangle strips
;Triangle strips
:The first IDXA lists the triangles as strips. The IDs are the ones in PNTA and IDXA.
:The first IDXA lists the triangles as strips. The IDs are the ones in PNTA and IDXA.
Line 38: Line 36:
;Face groupings
;Face groupings
:The second IDXA groups the triangles into faces (oriented by the second VCRA).
:The second IDXA groups the triangles into faces (oriented by the second VCRA).
:Even if the normals are computed at runtime, the group assignment might be used.
:(e.g., if a face normal is defined as the average of the normals of the triangles)




{{OBD_File_Footer | type=M3GM | prev=M3GA | next=Mtrl | name=Geometry | family=Generic | align=center}}
{{OBD_File_Footer | type=M3GM | prev=M3GA | next=Mtrl | name=Geometry | family=Generic | align=center}}
708

edits