PDA

Click to See Complete Forum and Search --> : DX8 - Specular


danday1974
Sep 23rd, 2002, 05:05 PM
Hi all

Ive just seen specular materials at work and Im well impressed. Ill post a little prog I made wen I have finished it so u can all have a look and be impressed too (for those of u who havent seen specular materials at work). Two things though:

(1) When I scale the mesh using D3DXMatrixScaling it mucks up the specular stuff - not too important but just in case some1 is aware of this and knows why this is making things go wrong I would be interested. (I got around this using conv3ds -m -s0.1 to scale the mesh to 1/10th of its original size).

(2) I havent used specular values with vertices. I assume wen u provide a vertex value for specular that is the specular power of the vertex?

Thanks :)

Dan

Zaei
Sep 23rd, 2002, 05:25 PM
You are at about the point where you need to start reading the SDK Docs, and googling before posting =).

Never had a reason to use specular lighting, so I am not going to be much help to you. Read the docs, and do some searching, and you should find your answer =).

Z.

danday1974
Sep 23rd, 2002, 05:35 PM
Z

From u I wiil take that as a compliment :).

Cheers

Dan