Couple of doubts regarding camera

View previous topic View next topic Go down

Couple of doubts regarding camera

Post  vikthered on Sat Sep 05, 2009 7:52 pm

Hi,

1. Can i have multiple cameras in one scene? Can i render them simultaneously? I'm trying to implement a rear view camera for my racing game similar to this one. http://tinypic.com/view.php?pic=241nu60&s=3

2. How do i zoom in/out my camera?

Thank you

vikthered

Posts : 25
Join date : 2009-06-25

View user profile

Back to top Go down

Re: Couple of doubts regarding camera

Post  sio2interactive on Sun Sep 06, 2009 3:49 pm

1. Can i have multiple cameras in one scene?

>> Yes

Can i render them simultaneously?

>> No

I'm trying to implement a rear view camera for my racing game similar to this one.

>> You'll have to do 2 pass for that...

2. How do i zoom in/out my camera?

>> Change the FOV or change the position...

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: Couple of doubts regarding camera

Post  vikthered on Sun Sep 06, 2009 6:13 pm

Can you please tell me how to do a 2 pass? Havent heard about it before Very Happy

vikthered

Posts : 25
Join date : 2009-06-25

View user profile

Back to top Go down

Re: Couple of doubts regarding camera

Post  sio2interactive on Sun Sep 06, 2009 7:23 pm

Well it means render 2 times per frame... 1 time from the back, then get the color buffer as a texture, then render from the front and apply the texture that you get from the back on your object.

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: Couple of doubts regarding camera

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum