D3D9

Discussions related to graphics (2D and 3D), animation and games programming
Ric
Posts: 208
Joined: Tue 17 Apr 2018, 21:03

D3D9

Post by Ric »

Hello all,
It has been a while :( Work is a wonderful thing!

In the manual there is a table :-

Code Size Data Comments
&002 12 XYZ position Always required
&010 12 Surface normal When lighting used
&040 4 Diffuse colour When neither texture nor material specified
&080 4 Specular colour For shiny objects
&100 8 UV texture coordinates When texture specified

but there are a few entries missing, Richard has sourced the code for each of the current entries, but despite scouring the net i can not find an equivalent table or reference anywhere.

Can anyone help me find the codes and data for the other entries?

I am particularly interested in :- D3DFVF_XYZRHW

Kind Regards

Ric
Kind Regards Ric.

6502 back in the day, BB4W 2017 onwards, BBCSDL from 2023
DDRM

Re: D3D9

Post by DDRM »

Hi Ric,

Not sure exactly what you are asking, but does this

https://docs.microsoft.com/en-us/window ... 3d9/d3dfvf

help?

Best wishes,

D
David Williams

Re: D3D9

Post by David Williams »

I Googled it:

D3DFVF_XYZRHW = 4

(I should remark that at least one source states that it's equal to 64, but most results state that it's equal to 4).
Ric
Posts: 208
Joined: Tue 17 Apr 2018, 21:03

Re: D3D9

Post by Ric »

Thanks guys
What did you Google David?
There should be 2 constants associated with it, a code and a length on bytes. The length is 16 bytes as it is four 4 byte floating point numbers. Does 4 relate to the code?
Ric

Sorry guys just found it!!!!!
The answer is 4 and 16👍
Kind Regards Ric.

6502 back in the day, BB4W 2017 onwards, BBCSDL from 2023