Skip to main content
GameDev.net gamedev.net
🔒 Locked

using multiple cameras in a scene

Started by franc82 Nov 23, 2006 at 4:42 AM 1 replies 4.8k views
Original Post
franc82
franc82
how to use multiples cameras in a scene? Anyone knows any articles talking about it?
lc_overlord
lc_overlord
I don't know any articles, but it is a pretty common effect in games for like security cameras and such.
What you do is that you render the extra cameras to textures(FBO works best), then you can use those textures in the final scene(with the main camera) in any way you like.
You can get a small FBO tut from my site (link is in my signature below).
stroma
stroma
just build a camera class which has a function to generate look at matrix from its properties,or uses gluLookAt().. if multible of cameras will not be active at a time(just like security cam screens, or any viewports), you dont need any FBO or render to texture. just update the camera that you are using at that moment.
+-+-+-+-+-STR

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.