Skip to main content
gamedev.net
🔒 Locked

Plotting with OpenGL

Started by lazE Mar 9, 2004 at 11:43 PM 0 replies 200+ views
Original Post
lazE
lazE
Hey, I''m trying to plot some data with OpenGL/GLUT. I''m using an orthographic projection which I think is the best way to go but, my graph looks kinda funny. The outputs are all somewhat similar values (off by about 1000 from one another) so when I plot them I pretty much get a straight line. Does anyone have any good ideas on how to make the slight differences have a more extreme representation? I''m still sort of new to OpenGL and so I''m not aware of any good way to do this. Thanks.
"We are what we repeatedly do. Excellence, therefore, is not an act, but a habit."-Aristotle
Trienco
Trienco
use a different projection. you often find examples using the screen resolution because its mapping 1 unit to 1 pixel. in your case, use smaller numbers (if only the height should change, only do that for the screen height) or use glScale(1,,1)
f@dzhttp://festini.device-zero.de

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.