code-google-com / bullet

Automatically exported from code.google.com/p/bullet
0 stars 0 forks source link

Inconsistent color values passed into btIDebugDraw::drawLine #323

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I noticed that the color values used when drawing the object simplex are 0-1, 
but the color values used when drawing the actual geometry are 0-255.  The 
patch attached simply makes the simplex values conform, as I thought there 
was less harm in assuming users had correctly rendering geometry and an 
incorrectly rendering simplex, rather than vice versa.

- Alex

Original issue reported on code.google.com by Alex.Sil...@gmail.com on 29 Dec 2009 at 9:58

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the patch, I'll look into applying it before 2.76 release.

Original comment by erwin.coumans on 5 Jan 2010 at 5:04

GoogleCodeExporter commented 9 years ago
I just did a quick search for drawLine and almost everywhere the values are in 
the 
range [0..1], which is what OpenGL expects.

Original comment by erwin.coumans on 19 Jan 2010 at 7:50