using multiple cameras in a scene
how to use multiples cameras in a scene? Anyone knows any articles talking about it?
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).
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).
www.flashbang.se | www.thegeekstate.com | nehe.gamedev.net | glAux fix for lesson 6 | [twitter]thegeekstate[/twitter]
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement