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 / convert object fvf ???

Author
Message
nruser
16
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 17th Nov 2011 01:51
can someone explain to me what is the purpose of this function and what does
do when applied to object?
zenassem
21
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 17th Nov 2011 02:03
http://msdn.microsoft.com/en-us/library/windows/desktop/bb147173(v=vs.85).aspx

Mapping FVF Codes to a Direct3d9 Declaration

~ZENassem
revenant chaos
Valued Member
17
Years of Service
User Offline
Joined: 21st Mar 2007
Location: Robbinsdale, MN
Posted: 18th Nov 2011 00:17
FVF stands for "Flexible Vertex Format", and defines "what kind of" and "how much" data each vertex has. I am no expert on the subject, however I do know that

FVF_XYZ = the vertices have position coordinates
FVF_NORMAL = the vertices have normals
FVF_PSIZE = this is used by shaders to define the sizes of point sprites
FVF_DIFFUSE = the vertices have a diffuse color
FVF_SPECULAR = the vertices have a specular level
FVF_TEX0 = the object has no UV coordinates
FVF_TEX1 = the object has 1 set of UV coordinates
FVF_TEX2 = the object has 2 sets of UV coordinates
and so on...

All normal models need a position at the very least, and would be applied as:


but if you wanted normals, and a set of UV coordinates as well then it would be:

Login to post a reply

Server time is: 2024-05-17 09:58:47
Your offset time is: 2024-05-17 09:58:47