Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: how to draw UI over a 3d openGL space?  (Read 2898 times)

0 Members and 1 Guest are viewing this topic.

k014

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
how to draw UI over a 3d openGL space?
« on: May 31, 2012, 06:06:37 am »
Hello!

i have a project that uses opengl to show some 3d models, and you can navigate around them using a xbox 360 wireless controller

but i have no clue about how to make a 2d user interface that draws over the 3d space, i just want to show some labels and maybe some buttons...

the first thing i want to do is to create a label that says: "Loading model...", and then shows the model in 3d, but it will be nice to render the coordinates of the camera in a corner or something...

how to mix 2d context with my 3d project using SFML?

PS: i already read http://www.sfml-dev.org/tutorials/1.3/graphics-window.php, but i did not understood pretty well about mixing width opengl.
PS: after some googling, it seems like there is some GLUI libraries, but i dont know if SFML have a better way to do UI, show text, etc...
PS: sorry for my bad english

Acrobat

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Re: how to draw UI over a 3d openGL space?
« Reply #1 on: May 31, 2012, 01:17:53 pm »
after drawing 3d space, setup projection, view and draw your interface

 

anything