PDA

View Full Version : I need GUI interface method...


chingching
04-20-2006, 08:48 AM
Hi all, I'm trying to do GUI interface for my walk-thru program...I need a method of that...coz what I have in hand was weird...coz when I called GUI method to draw interface...then all my models' textures disappear(models left no color texture)...really wonder why...so anyone have the way to do GUI interface...kindly tell me ya...
A lot of thanks!!!:worthy:

Wernaeh
04-20-2006, 08:56 AM
Most probably, you're using GL (you didn't tell us), and you disable texturing somewhere in your GUI code. For the next frame, texturing still is disabled, and your models also will not properly be textured.

I don't know what you mean by "GUI method" anyways. I do hope though you are not using a single function call for your entire GUI rendering. There are quite some out-of-the-box solutions available freely, though. Maybe you should check out CrazyEddie's GUI, google for it.

Cheers,
- Wernaeh

Neken
04-20-2006, 06:03 PM
Oh come on ... way better making your own GUI engine than using someone else's ... :P

chingching
04-20-2006, 08:38 PM
Thanks you guys....
Ya...I'm using GL...But if like you said...the disable texture in GUI code may disable all my models' textures...but how can don't want to disable texture in GUI code wor...? Sigh...I'm nervous...:sad:

chingching
04-20-2006, 09:07 PM
Thanks you Werneah....I comment the code disable texturing in GUI....ya....my models' textures can be seen....really thanks you guy...thanks you very much...:worthy:

Reedbeta
04-20-2006, 09:32 PM
chingching, what you probably want to do is disable texturing before you draw the GUI, and then enable it again afterwards. This way the GUI will be drawn without textures (as it should be) and the models will be drawn with textures. Understand?

kennyurge
04-24-2006, 05:04 AM
Thanks you guys....
Ya...I'm using GL...But if like you said...the disable texture in GUI code may disable all my models' textures...but how can don't want to disable texture in GUI code wor...? Sigh...I'm nervous...:sad:


Sorry~I don't understand what is the GL method for GUI....is there any GL method for OpenGL?is it GLUI? Thanks~

juhnu
04-24-2006, 05:37 AM
OpenGL doesn't include any functionality for creating a user interface. It's up to third party libraries, such as GLUT, to provide such functionality.