possible camera problem...

Problems building or running the engine, queries about how to use features etc.
User avatar
ghiboz
Goblin
Posts: 205
Joined: Wed Apr 25, 2007 9:47 pm
Location: Centallo (I)
x 2

possible camera problem...

Post by ghiboz »

hi all!
i have this problem...
i'm working on a car game... and when the camera moves, when is moved a bit (don't know how much), the scene go hidden, and if I move on the left or on the right the camera, the scene is shown again...

i have these 2 videos that shows the problem....

thanks very much!
video 1
video 2
User avatar
ghiboz
Goblin
Posts: 205
Joined: Wed Apr 25, 2007 9:47 pm
Location: Centallo (I)
x 2

Post by ghiboz »

sorry, i explain better...
the terrain is a static NxOgre body, that is an entity attached to the scenemanager

bye :wink:
User avatar
ghiboz
Goblin
Posts: 205
Joined: Wed Apr 25, 2007 9:47 pm
Location: Centallo (I)
x 2

Post by ghiboz »

also tried to change the scene type:

Code: Select all

mSceneMgr = mRoot->createSceneManager(ST_EXTERIOR_REAL_FAR);
but nothing change... :cry:
User avatar
johnhpus
Platinum Sponsor
Platinum Sponsor
Posts: 1186
Joined: Sat Apr 17, 2004 2:49 am
x 3

Post by johnhpus »

<total guess>
Looks like your terrain, which you said is one big entity, is being culled for some reason. Maybe because the center point of the entity, or the position of the node it's attached to, is off screen? (or a certain distance off screen?).

How have I been here so long without learning how Ogre (well, at least I know it's the SceneManager) does this? :)