Two Scenemanager and SceneQuery Topic is solved

Problems building or running the engine, queries about how to use features etc.
Post Reply
SLeopold
Gnoblar
Posts: 3
Joined: Mon Feb 05, 2018 7:43 am

Two Scenemanager and SceneQuery

Post by SLeopold » Thu Feb 15, 2018 1:11 pm

Hello,
I have two different Scenemanagers one is only used to Render a different Scene into a Texture. But on Querying the Scene by a CameraToViewportRay I have the problem the the objects are found in the first Scenemanager even if they are not displayed in the main scene. On the other Hand if I do the query in the second scene I do not get any Object.

Is there any reason for that?

regards
S.Leopold
0 x

SLeopold
Gnoblar
Posts: 3
Joined: Mon Feb 05, 2018 7:43 am

Re: Two Scenemanager and SceneQuery

Post by SLeopold » Thu Feb 15, 2018 5:03 pm

Problem solved. You can assign objects created in one scene manager into another. Hittesting is then performed in the scene manager the object is created and not in which the object is assigned to. I have used ST_GENERIC.
0 x

Post Reply