I am trying to write a c++ program in linux.In which i want to make a 3D image upside down. where i have the coordinates (x,y,z) of the image .
Example:
^ |
| to |
| V
How to do it?
I am trying to write a c++ program in linux.In which i want to make a 3D image upside down. where i have the coordinates (x,y,z) of the image .
Example:
^ |
| to |
| V
How to do it?
Use a transformation matrix. This answer doesn't get any better since I smell homework.
Well, "upside down" is just a rotational transformation. Since this is probably homework. Think about this, you'll apply some transformation matrix but remember you will be "revolving" about some theta.
This is also a pretty good book:
http://www.amazon.com/Computer-Graphics-Principles-Practice-Programming/dp/0201848406