All Content
Blogs
Forums
News
Tutorials
Log In
Sign Up
Login
Username / Email
Password
Remember me
Forgot password?
Login
or
Don't have a GameDev.net account?
Sign up
Forgot your password?
Email Address
Reset Password
Please contact us if you have any trouble resetting your password.
Home
Blogs
Forums
News
Portfolios
Projects
Tutorials
26
users logged in
New?
Learn about game development
.
Before posting, review our
community guidelines
.
Follow Us
Chat in the
GameDev.net Discord!
Mastodon
Back to For Beginners
LH / RH Coord System
For Beginners
Started by
McKoy
September 11, 2001 08:01 PM
0
comments, last by
McKoy
22 years, 7 months ago
McKoy
122
Author
September 11, 2001 08:01 PM
OpenGL seams to default to a RH coordinate system but my text book is all in LH coord sys. Does anyone know how to set the correct projection matrix for a LH coordinate system ??
Cancel
Save
Advertisement
deadlinegrunt
123
September 12, 2001 01:16 AM
9.150 Can I make OpenGL use a left-handed coordinate space?
OpenGL doesn''t have a mode switch to change from right- to left-handed coordinates. However, you can easily obtain a left-handed coordinate system by multiplying a negative Z scale onto the ModelView matrix. For example:
glMatrixMode (GL_MODELVIEW);
glLoadIdentity ();
glScalef (1., 1., -1.);
/* multiply view transforms as usual... */
/* multiply model transforms as usual... */
YAP-YFIO
-deadlinegrunt
Cancel
Save
~deadlinegrunt
This topic is closed to new replies.
Advertisement
Popular Topics
The promise of freedom in story games
Game Design and Theory
Facebook Ads for sales on steam, does it work?
Games Business and Law
New Generated Constructor & JIT Issue
AngelCode
Inheriting from application registered class
AngelCode
Advertisement
Recommended Tutorials
Pointers: Beginning to Intermediate
General and Gameplay Programming
Introversion Software
Interviews
How to Make an iMessage Game (and why)
Business and Law
When Your Best Isn't Good Enough: A Tale of Failure (Part I)
Career Development
Oddlabs
Interviews
Reticulating splines
About GameDev.net
Community Guidelines
Terms of Service
Privacy Policy
Contact Us
Copyright (c) 1999-2024 GameDev.net, LLC
Back to Top