Archived

This topic is now archived and is closed to further replies.

thekid

Vertex Lighting

Recommended Posts

Hi, I am working in direct3D version 7 and I cannot do vertex lighting like the older versions do I was wondering If there is another way? I am using the D3DTLVERTEX vertex in d3d and I want to set its specular value and use it as lighting. If this is impossible then Is there an easy way to light in D3D 7?

Share this post


Link to post
Share on other sites
did you disable D3D lighting engine ? if you dindt look in there, otherwise please specify what exaclty doesnt work ....
http://msdn.microsoft.com/library/psdk/directx/imover_7cmc.htm

-kertropp

C:\Projects\rg_clue\ph_opt.c(185) : error C3142: 'PushAll' :bad idea
C:\Projects\rg_clue\ph_opt.c(207) : error C324: 'TryCnt': missing point

Share this post


Link to post
Share on other sites
Hi

The easýiest way doingthe lighting, is let Direct3D do it, for that you have to use the D3DVERTEX Structure for your Vertices.
But i think you are dooing your Transformations and Lighting by Hand, so you have to make shure that Lighting is disabled like Kertropp said. And to use Specular Lighting, u have to enable the Specular Renderstate. (They changed some of the default Values from 6 to 7)

Lars

Share this post


Link to post
Share on other sites