Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Bug #555: Look into - plz
Product:
TV3D SDK 6.5
Language:
Not Specified
Current State:
Closed
Resolution:
Fixed
Created On:
February 4th, 2006
Last Modified:
February 6th, 2006
Reported By:
Arimuth
(Link)

Please look into color triangles in 2d rendering.

If you have a rect color coords do this:

(col1)-------------(col2)
*----------------------*
|.\.....................|
|...\.....|
|.....................\.|
*----------------------*
(col4)--------------(col3)

traingle 1-2-3 seems fine
triangle 1-3-4 is blending bad

been a while - but - color coordinate wrapping seems different than in the past. You can see the problem in the screenshot (the gray frame in upper left foreground)

Arimuth

Comments:

Posted by Arimuth on February 4th, 2006 at 10:03 PM
link (I hope) : (Link)
Posted by Arimuth on February 4th, 2006 at 10:05 PM
argh: (Link)
Posted by Arimuth on February 4th, 2006 at 10:05 PM
(Link)
Posted by Arimuth on February 4th, 2006 at 10:43 PM
Her ya go...

(Link)
Posted by SylvainTV on February 5th, 2006 at 3:01 PM
Well i use something like that to draw colored rect :

Imm2D_V2D( imm2D_CurrentBufferPosition , x, y, 0, 0, color1 ); imm2D_CurrentBufferPosition++;
Imm2D_V2D( imm2D_CurrentBufferPosition , x1, y, 0, 0, color2 ); imm2D_CurrentBufferPosition++;
Imm2D_V2D( imm2D_CurrentBufferPosition , x1, y1, 0, 0, color3 ); imm2D_CurrentBufferPosition++;

Imm2D_V2D( imm2D_CurrentBufferPosition , x, y, 0, 0, color1 ); imm2D_CurrentBufferPosition++;
Imm2D_V2D( imm2D_CurrentBufferPosition , x1, y1, 0, 0, color3 ); imm2D_CurrentBufferPosition++;
Imm2D_V2D( imm2D_CurrentBufferPosition , x, y1, 0, 0, color4 ); imm2D_CurrentBufferPosition++;

It seems ok to me.

Maybe you could try to "invert" the thing on the Y axis like :

Instead of DrawFillectRect( x1, y1, x2, y2), use DrawFilledRect (x1, y2, x2, y1)

Because i don't see the problem, it's maybe linked to the order of the vertex in the triangle , i don't really know :)