sio2FontPrint should disable color/normal array
2 posters
sio2FontPrint should disable color/normal array
My font was rendered in weird colors. I found out that it was because I was rendering a texture with client state GL_COLOR_ARRAY before. Therefore, sio2FontPrint should make sure that color and normal arrays are disabled before rendering.
Best,
Matt
Best,
Matt
Re: sio2FontPrint should disable color/normal array
Sorry but no... if you are using an sio2 API to draw use its reset function to reset all the states, if you are drawing manually it is your job to turn back off everything that you have set... its like allocating / freeing memory the one that allocate it is responsible of freeing it
Basic programming 101 rules
Cheers,
Basic programming 101 rules
Cheers,
Re: sio2FontPrint should disable color/normal array
So...
Just kidding. You're right of course. It was my fault not to disable the color array in one of my own functions.
Best,
Matt
...if I've enabled GL_VERTEX_ARRAY, I shall disable it afterwards? Then SIO2 keeps black ;-)sio2interactive wrote:it is your job to turn back off everything that you have set
Just kidding. You're right of course. It was my fault not to disable the color array in one of my own functions.
Best,
Matt
Re: sio2FontPrint should disable color/normal array
GL_VERTEX_ARRAY should always be ON since its the only way to draw on the device...
Similar topics
» Applying a texture to a vertex array
» Changing a material's color
» SIO2 Engine v1.4 is out!
» Is Normal Maopping possible?
» Dot3 Normal Bump Mapping + Per Pixel Lighting
» Changing a material's color
» SIO2 Engine v1.4 is out!
» Is Normal Maopping possible?
» Dot3 Normal Bump Mapping + Per Pixel Lighting
Permissions in this forum:
You cannot reply to topics in this forum