Hi!
I'm a complete newbie in computer graphics and I'm just asking for a simple answer…sometimes one answer is worth hours of web searches. Don't hang me please.
I starting a base CanvasImplementor and I started to imagine if in the future I'll need to have more than one renderer in the same scene…
For example, inside the main canvas I might want to render a Third Person View and in a Hud box (or even a canvas inside the a JMEDesktop element) have a First Person View (imagine a robot walking on mars with a camera incorporated on it). I started to go deed on the code and I can't figured out if I can have more than one renderer or if I can render two different cameras at the same time in the same renderer…
So, help me on this, please! How many DisplaySystems can I have? 1?! and how many renderers? 1?! Can I render two or more different parts of the world at the same time with different cameras?..I know It's a very basic question but I know it as also a simple answer.
Thanks in advance.
You can use RenderToTexture to fake more than one Canvas. DisplaySystems you can only have one, but you can change its renderer I think.
A good Example ist the TestCameraMan.java file
You can also see an example of 2 cameras (i thin its 2 cameras ) on Stardust. The source is available.
It features a missile camera that shows a picture in a small window in the corner in addition to the main HUD. Just check it out. jME forum thread is here
the missile cam is using also the Render to Texture feature like TestCameraMan
Thank you guys!