Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Don't forget to read Tuesday's email newsletter for your chance to win a free copy of Construct 2!


D3D Question


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
4 replies to this topic

#1 Paco   Members   -  Reputation: 122

Like
Likes
Like

Posted 03 January 2000 - 02:08 PM

Hi My question is: if I specify a color for each vertex of a triangle (for gradients), how can I affect those colors with the current material. I''ve try the LIGHTSTATE_COLORVERTEX btu it doesnt work. Thanks, Paco

Sponsor:

#2 blaze   Members   -  Reputation: 122

Like
Likes
Like

Posted 03 January 2000 - 03:40 PM

Don''t use materials if you want to specify colors on a per-vertex basis. By doing this, you are, in effect, doing your own custom materials.

--Shannon Schlomer, BLAZE Technologies, Inc.

#3 Paco   Members   -  Reputation: 122

Like
Likes
Like

Posted 03 January 2000 - 03:57 PM

Thanks

So, you mean I must do the lighting calculations by myself?
there''s no way to illuminate those vertex??

Thanks again, Paco

#4 mhkrause   Members   -  Reputation: 122

Like
Likes
Like

Posted 03 January 2000 - 04:47 PM

Lighting is no longer done based on vertex format, it''s done on the D3DRENDERSTATE_LIGHTING state (which is why a lot of people got black triangles when switching from DX6 to DX7, didn''t specify light and a default of black lights was used) , so I think just specify the vertex colors, and it should do it.

I haven''t tried this though.

#5 Paco   Members   -  Reputation: 122

Like
Likes
Like

Posted 03 January 2000 - 07:21 PM

Thanks, mhkrause

Im not using DX7, but its not a problem. So in DX6 i cant achive that??? weird, but it can be fixed easily. Thanks a lot guys!!

Paco




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