Pixel Grid Testing

I have made several improvements to the Pixel grid, as you might have notice on the previous test, there where two visual errors on the final grid,

1)Different colors where showing up on the final grid.
-The reason this was happening was that on openGL you call a function called glColor3f(float Red, float Green, float Blue);

and the problem was that the array generated by my flash program returns values from 0-255.

The function above takes floats, but it ranges from 0-1.0f, therefore my colors where messed up because they where almost always above 1, so to fix it I divided each color I get by 255.


2) the second problem was some weird holes, those holes where being caused by the outline of the track..


here is the latest screenshot...

No comments:

Post a Comment