PLSM camera requirement

praetor

12-01-2006 22:02:41

So, the LOD method in PLSM requires a camera to have been created in the scene manager before setWorldGeometry is called. Ok then. This camera, does it have to be "the" camera that will be used in the application, or can it be just any camera? If any camera, does it have to have similar settings to the camera that is eventually used? I wonder this because my scenery must be set up before I create objects, it's just a requirement of my framework. I would like to be able to create a temporary camera when I call setWorldGeometry and then create my real cameras later. Is this a viable option?

tuan kuranes

13-01-2006 08:32:28

So, the LOD method in PLSM requires a camera to have been created in the scene manager before setWorldGeometry is called.
I'm not sure to understand ?
Plsm2 demo calls createcamera() after setWorldGeometry().

PLSM2 use a "PrimaryCamera" to get viewport height, which helps to get Screen Pixel Error in the LOD System, unless specified by user scenemanager::setOption(PrimaryCamera, mycam);, it is first camera created.

But The "PrimaryCamera" is only necessary and used just before first frame render.


I would like to be able to create a temporary camera when I call setWorldGeometry and then create my real cameras later. Is this a viable option?
if temporary camera is for Plsm2, it's not necesseary.