Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

D3D Question

4: Adsense

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   

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

#2 blaze   Members   

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   

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   

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   

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.