How can I have two things render independently

Started by
15 comments, last by clrscr 19 years, 7 months ago
It looks like your texturing the text as well. Wrap the code that prints the text with an enable/disable of textureing. In other words,
glDisable(GL_TEXTURE_2D);PrintBit(gbbase,amber_notes);glEnable(GL_TEXTURE_2D);

"Voilà! In view, a humble vaudevillian veteran, cast vicariously as both victim and villain by the vicissitudes of Fate. This visage, no mere veneer of vanity, is a vestige of the vox populi, now vacant, vanished. However, this valorous visitation of a bygone vexation stands vivified, and has vowed to vanquish these venal and virulent vermin vanguarding vice and vouchsafing the violently vicious and voracious violation of volition. The only verdict is vengeance; a vendetta held as a votive, not in vain, for the value and veracity of such shall one day vindicate the vigilant and the virtuous. Verily, this vichyssoise of verbiage veers most verbose, so let me simply add that it's my very good honor to meet you and you may call me V.".....V
Advertisement
So that almost works, the text is now just white so at least its readable, thank you, but it still wont pick up the color from glColor3(r,g,b)
-----------------------------When men speak of the future, the Gods laugh.An apology for the devil: it must be remembered that we have heard one side of the case. God has written all the books.Samuel Butler (1835 - 1902)
try this
glDisable(GL_TEXTURE_2D);glColor3f(r,g,b);PrintBit(gbbase,amber_notes);glEnable(GL_TEXTURE_2D);

Depending on how you want your text to look you may also want to disable/enable lighting for the text.
"Voilà! In view, a humble vaudevillian veteran, cast vicariously as both victim and villain by the vicissitudes of Fate. This visage, no mere veneer of vanity, is a vestige of the vox populi, now vacant, vanished. However, this valorous visitation of a bygone vexation stands vivified, and has vowed to vanquish these venal and virulent vermin vanguarding vice and vouchsafing the violently vicious and voracious violation of volition. The only verdict is vengeance; a vendetta held as a votive, not in vain, for the value and veracity of such shall one day vindicate the vigilant and the virtuous. Verily, this vichyssoise of verbiage veers most verbose, so let me simply add that it's my very good honor to meet you and you may call me V.".....V
That was my first thought as well but its like the call isn't even there its rather odd for OpenGL to just ignore a call I have lighting off at the moment should I turn it on? Before the cube the text was working fine without any lighting

[Edited by - clrscr on September 15, 2004 10:45:11 PM]
-----------------------------When men speak of the future, the Gods laugh.An apology for the devil: it must be remembered that we have heard one side of the case. God has written all the books.Samuel Butler (1835 - 1902)
So lighting is off now? (It wasn't in the code you posted). I'd leave lighting off, at least until you get the problem sorted. Another thing to check would be that PrintBit() isn't calling glColor, for example in earlier attempts to try and get the text working.
"Voilà! In view, a humble vaudevillian veteran, cast vicariously as both victim and villain by the vicissitudes of Fate. This visage, no mere veneer of vanity, is a vestige of the vox populi, now vacant, vanished. However, this valorous visitation of a bygone vexation stands vivified, and has vowed to vanquish these venal and virulent vermin vanguarding vice and vouchsafing the violently vicious and voracious violation of volition. The only verdict is vengeance; a vendetta held as a votive, not in vain, for the value and veracity of such shall one day vindicate the vigilant and the virtuous. Verily, this vichyssoise of verbiage veers most verbose, so let me simply add that it's my very good honor to meet you and you may call me V.".....V
I fixed it, apprently there was a later call to glColor that was setting it to white,it wasn't in PrintBit, but your idea made me go through and fine all the glColors and I deleted that one and it worked fine. Thank your for all your help.
-----------------------------When men speak of the future, the Gods laugh.An apology for the devil: it must be remembered that we have heard one side of the case. God has written all the books.Samuel Butler (1835 - 1902)

This topic is closed to new replies.

Advertisement