Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


Using pre-lit vertices in D3D 7


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 Cthulhu   Members   -  Reputation: 122

Like
Likes
Like

Posted 31 October 1999 - 12:56 AM

I want to draw triangles that consist of D3DLVERTEX'es (pre-lit but untransformed). I'm having problems with lighting, I can't draw triangles with different colored vertices (whole triangle will be gouraud shaded with those colors, of course). Only color applied to triangles is ambient lighting color. If it's 0, the triangle is black.

I've tried to assign different values and 0's to different lighting settings (material, ambient, vertex diffuse and specular). I'm using D3DFVF_LVERTEX as vertex type when calling DrawPrimitive(), is that ok?

Strange thing is I can draw triangles with per-vertex lighting with D3DLTVERTEX'es but I don't want to do transformations myself. Please help!

------------------
"Tank, I need an exit. Fast!"


Sponsor:

#2 mhkrause   Members   -  Reputation: 122

Like
Likes
Like

Posted 30 October 1999 - 02:17 PM

Disable D3D's lighting engine by setting D3DRENDERSTATE_LIGHTING to FALSE.

#3 Cthulhu   Members   -  Reputation: 122

Like
Likes
Like

Posted 31 October 1999 - 12:56 AM

Thank you! I was instead checking it was TRUE ;D

------------------
"Tank, I need an exit. Fast!"





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS