Jump to content


I need GUI interface method...


7 replies to this topic

#1 chingching

    Member

  • Members
  • PipPip
  • 38 posts

Posted 20 April 2006 - 03:48 PM

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:

#2 Wernaeh

    Senior Member

  • Members
  • PipPipPipPip
  • 368 posts

Posted 20 April 2006 - 03:56 PM

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

#3 Neken

    New Member

  • Members
  • Pip
  • 7 posts

Posted 21 April 2006 - 01:03 AM

Oh come on ... way better making your own GUI engine than using someone else's ... :P

#4 chingching

    Member

  • Members
  • PipPip
  • 38 posts

Posted 21 April 2006 - 03:38 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:

#5 chingching

    Member

  • Members
  • PipPip
  • 38 posts

Posted 21 April 2006 - 04:07 AM

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:

#6 Reedbeta

    DevMaster Staff

  • Administrators
  • 4979 posts
  • LocationBellevue, WA

Posted 21 April 2006 - 04:32 AM

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?
reedbeta.com - developer blog, OpenGL demos, and other projects

#7 kennyurge

    Member

  • Members
  • PipPip
  • 30 posts

Posted 24 April 2006 - 12:04 PM

chingching said:

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~

#8 juhnu

    Valued Member

  • Members
  • PipPipPip
  • 292 posts

Posted 24 April 2006 - 12:37 PM

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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users