Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-23-2010, 10:26 AM   #1 (permalink)
Divine avenger
 
Johanovski's Avatar
 
Join Date: Nov 2009
Location: Vic, Catalunya (Spain)
Posts: 320
Default OpenGL: The Eternal question

Hi there!

I'm working in a OpenGL 3D app and I've just beaten my face against moving: how can this be done? I mean, how can one "simulate" the camera effect as if he's moving through the scenario? I've read somewhere that there are no "cameras" in OpenGL so, instead of moving the camera one has to move the whole scene (that mean all 3D objects in the scene)... Scary, really creepy, but seems to be the only way (hope to hear "not the only way!", but I'm getting faithless about this ^_^), so which is the less painful way to do this?

Any help will be really appreciated, I've never worked with 3D OpenGL before and I find it's quite difficult! Thanks in advance!
Johanovski is offline   Reply With Quote
Old 02-23-2010, 01:38 PM   #2 (permalink)
Registered Member
 
Join Date: Feb 2010
Location: London
Posts: 52
Default

Quote:
Originally Posted by Johanovski View Post
Hi there!

I'm working in a OpenGL 3D app and I've just beaten my face against moving: how can this be done? I mean, how can one "simulate" the camera effect as if he's moving through the scenario? I've read somewhere that there are no "cameras" in OpenGL so, instead of moving the camera one has to move the whole scene (that mean all 3D objects in the scene)... Scary, really creepy, but seems to be the only way (hope to hear "not the only way!", but I'm getting faithless about this ^_^), so which is the less painful way to do this?

Any help will be really appreciated, I've never worked with 3D OpenGL before and I find it's quite difficult! Thanks in advance!
A 3D scene is made up of objects. Each object has a matrix applied to it to move it from the origin (0,0,0) to some location in space.

One approach is to think about it that a camera is in essence just another matrix which globally applies to all objects.

For example, if you wanted to create a camera to move forwards you apply a matrix to all the objects to move backwards.

There is an excellent book specifically about making camera classes for games:

Real-Time Cameras

Try finding it second hand
jackeveritt is offline   Reply With Quote
Reply

Bookmarks

Tags
3dimensions, camera, move, opengl es, scene

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 248
13 members and 235 guests
2WeeksToGo, ADY, BrianSlick, Dani77, Dattee, headkaze, kapps11, mer10, mgon987, sneaky, timle8n1, vigu360
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,879
Threads: 89,228
Posts: 380,744
Top Poster: BrianSlick (7,129)
Welcome to our newest member, mgon987
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:44 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0