Jump to content
  • Advertisement
Sign in to follow this  
jojygv

How Tp Draw Converging Parallel Lines?

This topic is 4855 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

Hi All Thanks in advance for your time. I am new to this forum and new to OpenGL programming. I am trying to draw a converging parallel line. Here is the code which writes the lines in windows environment: void drawOutline(void) { glBegin(GL_LINES); glVertex3f(-0.7f, -0.1f,0.9f); glVertex3f(-0.7f, -0.1f,-0.9f); glEnd(); glBegin(GL_LINES); glVertex3f(0.7f, -0.1f,0.9f); glVertex3f(0.7f, -0.1f,-0.9f); glEnd(); } Now as you can see this is a set of parallel lines along Z-axiz. Now how do I render these something like two rail lines (using projection)? Any help is appreciated. george

Share this post


Link to post
Share on other sites
Advertisement

This topic is 4855 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.

Guest
This topic is now closed to further replies.
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!