Bug 90 : tint() is broken in P3D / PGraphics3
Last modified: 2007-10-22 19:22




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P2
Severity:
normal

 

Reporter:
fry
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2005-07-27 16:13
tint() honoring alpha but not colored tint. maybe not setting fill color when drawing textures.

guessing it's an implementation issue between sami's renderer which was done before the
fill() and tint() separation happened.

check with the a_Displaying example and tint(255, 0, 0, 100);
Additional Comment #1 From davbol 2007-04-11 19:07
Hope this helps: If you haven't tracked it down yet... it's in PTriangle, when a flat-
shaded textured triangle is drawn, then the rgb of the tint isn't used. So, for
example, if the triangle renderer branches to drawsegment_texture32() the tint rgb
won't be used, whereas if it branches to drawsegment_gouraud_texture32() then the
tint rgb WILL be used. Alpha gets used from tint, because all alpha has to do is be !
= 255, but for rgb to get used they values have to differ among vertices (which won't
happen via the image() routine for example). The quick fix might be to insert an
additional test in setIntensities() to check if parent.tint is true, and if so then force
gouraud shading, INTERPOLATE_RGB=true.
Additional Comment #2 From fry 2007-04-12 15:21
yeah, thanks for checking on it.. it's just one of those things i needed to
track down and take care of (and then test across different situations in
P3D and OPENGL modes). much appreciated...
Additional Comment #3 From fry 2007-10-22 19:22
fixed for release 0132.