Skip to main content
GameDev.net gamedev.net
🔒 Locked

Different blending when batching?

Started by barakus Dec 20, 2005 at 8:43 AM 1 replies 350+ views
Original Post
barakus
barakus
For some reason, my function with the batching using DrawIndexedPrimitive gives off wrong blending colours, making the rendered object too dark. However, the same object with the same alpha colour values drawn individually with a function such as DrawPrimitiveUP or even in a vertex buffer using DrawPrimitive gives off the correct values. Ive checked my code over and over again, debugged like anything, so im pretty sure that the right colour values are being set. Anyone know why this may be happening?
DrunkenHyena
DrunkenHyena
Are you sure that the drawing order you set up with the indexed primitives is the same as when you draw individually? Blending is order-dependant (well, not additive blending but that's a special case) so if things are being drawn in a different order the resulting blend will be different.
Stay Casual,KenDrunken Hyena</FON

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.