Jump to content
  • Advertisement
Sign in to follow this  
giugio

OpenGL nice opengl axis

This topic is 2956 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hy.
I would rappresent the 3 axis in opengl , I'm search on google , but i can't find a nice graphical rappresentation of the axis (3 arrow).
I'm search for example a cone(arrow) with a line or somethings of nice.
Is also a good solution draw a little model of the arrow in 3ds and rotate it?
Thanks.

Share this post


Link to post
Share on other sites
Advertisement
This is a basic model that any cg artist could create in under 1minute... but you will find out that royalty-free models are hard to find on google. You mostly have to make them yourselves.

Share this post


Link to post
Share on other sites
If you can't find someone to make the model for you, you could easily generate it procedurally in code. (The math for generating cylinder and cone mesh geometry is very straightforward.)

Share this post


Link to post
Share on other sites
I couldn't resist your italian accent...



Axis_Left.3DS - Left-handed.
Axis_Right.3DS - Right-handed.

The difference between them is just that the X-axis is mirrored.

See if that's good enough.

[Edited by - Kryzon on July 18, 2010 4:56:54 PM]

Share this post


Link to post
Share on other sites

glDisable(GL_DEPTH_TEST);
glBegin(GL_LINES);

glColor4ub(255, 0, 0, 255);
glVertex3f(0.0f, 0.0f, 0.0f);
glVertex3f(1024.0f, 0.0f, 0.0f);

glColor4ub(0, 255, 0, 255);
glVertex3f(0.0f, 0.0f, 0.0f);
glVertex3f(0.0f, 1024.0f, 0.0f);

glColor4ub(0, 0, 255, 255);
glVertex3f(0.0f, 0.0f, 0.0f);
glVertex3f(0.0f, 0.0f, 1024.0f);

glColor4ub(255, 255, 255, 255);

glEnd();
glEnable(GL_DEPTH_TEST);

Share this post


Link to post
Share on other sites
Quote:
Original post by thefrost
*** Source snippet removed ***
The OP asked for an arrow model of some sort (e.g. with a cone on the end), not just a line for each axis. (See previous posts...)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!