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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - k014

Pages: [1]
1
Graphics / 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

2
General / xbox 360 wireless issue
« on: May 21, 2012, 01:29:57 am »
Hello!

hello!, i am implementing a camera using opengl, and i want to control it using a box360 wireless controller

i am having an issue with AxisR using a xbox360 wirelles controller

some revelant code:


std::cout
        << "(AxisR) = ("
        << Input.GetJoystickAxis(0, sf::Joy::AxisR)
        << ")"
        << std::endl;

 

and this is the console output

Code: [Select]
...
(AxisR) = (0)
(AxisR) = (0)
(AxisR) = (0)
(AxisR) = (0)

that is not touching the controller, but when i sightly touch the R Axis (RT button) and then release, now the output is

Code: [Select]
...
(AxisR) = (-100)
(AxisR) = (-100)
(AxisR) = (-100)
(AxisR) = (-100)

is like, in first place, values are from [0,100], but when input is updated, jumps to [-100, 100], and this is causing some problems in my application

this is normal, or there's a way to make this work properly?

some information:

i am using sfml on ubuntu, instaled via repositories this way: sudo aptitude install libsfml-dev

if you need more code, i can share a public repo in github :)

[attachment deleted by admin]

Pages: [1]