Idea For Project?

0 views
Skip to first unread message

komplikaded

unread,
Jun 29, 2010, 11:45:57 AM6/29/10
to PSUComputerGraphics
I wanted some feedback to see if this was good idea for a project.
I know that in OpenGL, if one wants to rotate the camera around the
scene (sort of the "bullet-time" effect), then he either has the
option of (1) rotating the entire scene or (2) rotating the camera
around the scene. I know that the latter is easier to do in a
graphics program like Blender, but the former is easier to do in
programming OpenGL.
I think it would be interesting to find more advantages and
disadvantages to both approaches, especially when it comes to the back-
end.

Dustin

unread,
Jul 8, 2010, 2:55:35 PM7/8/10
to PSUComputerGraphics
I found the OpenGL approach of rotating the scene confusing at first
but I think it makes sense. A program like blender is used to place
objects to be viewed later whereas OpenGL's goal is to show objects
that have already been placed so it might be said that the blender and
OpenGL are sort of inverses of one another. I think it is
conceptually easier to place a camera so based on some suggestion I
found on the web I wrote a camera class which allows me to specify
camera coordinates and orientation as one would in Blender. When the
opengl scene is rendered, before drawing any objects I first call a
method in my camera class which performs a gl translation and rotation
which are inverses of the camera's position and orientation. This way
my camera class allows me to conceptually simplify things. It does
get tricky performing the inverse rotation because the most meaningful
rotations of the camera (I call them yaw, pitch, and roll) are
relative to the camera whereas the inverse gl rotations are relative
to the world the camera belongs to. Or at least I think they are, I'm
still trying to sort that out! It's also important to keep in mind
that unlike 2D rotations, 3D rotations are not commutative; doing
rotation a then rotation b may yield completely different result from
rotation b then rotation a.

Abdelhalim Ragab

unread,
Jul 8, 2010, 3:34:15 PM7/8/10
to psucomput...@googlegroups.com
>  I think it is conceptually easier to place a camera so based on some suggestion I found on the web I wrote a camera class which allows me to specify camera coordinates and orientation as one would in Blender. 

Did you look to the gluLookAt API ?
--
You received this message because you are subscribed to the Google Groups "PSUComputerGraphics" group.
To post to this group, send email to psucomput...@googlegroups.com.
To unsubscribe from this group, send email to psucomputergrap...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/psucomputergraphics?hl=en.


Reply all
Reply to author
Forward
0 new messages