Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Using Flexible Vertex Formats with Matrix1Utils?

Author
Message
Da_Rhyno
15
Years of Service
User Offline
Joined: 25th May 2011
Location:
Posted: 10th Feb 2012 06:01
Hey!

I'm making a 3D object loader using the Matrix1Utils, and the main parts of the object file I'm worried about are:

1.) Vertices
2.) Vertex normals
3.) 2D Texture Coordinates
4.) Face data (made up of the above three things)

So as far as the FVF format is concerned, I know for the vertices I'll need FVF_XYZ and for the vertex normals I'll need FVF_NORMAL. But what about texturing, since I'm using 2D coordinates for that and there are 8 different texture formats?
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 10th Feb 2012 07:48
Quote: "But what about texturing, since I'm using 2D coordinates for that and there are 8 different texture formats?"

D3DFVF_TEX1 - if you have 1 set of tex coords
D3DFVF_TEX2 - if you have 2 sets of tex coords
etc...

For example:
Lets say you have an object with textures and lightmaps - you need 2 sets - one set for base texture and one set for lightmaps

Da_Rhyno
15
Years of Service
User Offline
Joined: 25th May 2011
Location:
Posted: 11th Feb 2012 02:02
Thanks! I get it now...

Login to post a reply

Server time is: 2026-07-10 21:17:10
Your offset time is: 2026-07-10 21:17:10