Sign in to follow this  

hello, i need a simply explanation

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

Ok, so ive done a lot of research on Homogeneous Coordinates. and im still not sure what they are. ironically, im currently taking geometry (im in highschool) but don't really remember a lot of the functions and stuff. so, i need a simplyfied explanation of these. ive always thought that there would simply be an x,y, and z cordiante, and from my udnerstanding thats all that there is, so why is there a w. does it modify the location of an object. Im learning OpenGL, if that matters, but id assume that all libraries and stuffs have that concept.

Share this post


Link to post
Share on other sites
For most basic purposes, you can ignore W. The reason it is there is that OpenGL is based on matrix maths, and for an n-dimensional system you need to allow square matrices of size (n+1) to be able to represent translations. That is the reason that PostScript has a 3x3 transformation matrix (being a 2D environment) and the reason OpenGL has a 4x4 one (being 3D).

Now, once you have a 4x4 system you open the door to having the 4th coordinate (w) set to things other than 1, which can be very useful in certain circumstances (often to do with reflective texture mapping and 'environment mapping'). However, if all you are wanting to do is draw objects in a scene with static (or no) textures you can ignore w.

Share this post


Link to post
Share on other sites

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this