Welcome, Guest! Log In | Create Account

Ticket #79 (assigned defect)

Opened 5 months ago

Last modified 2 weeks ago

RaySceneQueryResultEntry - worldFragment always null.

Reported by: jonny912 Owned by: borrillis
Priority: major Milestone: 0.8.0.0-RC1
Component: Plugin : Terrain SceneManager Version: 0.8.0.0 (crickhollow)
Keywords: Cc:

Description

When performing a RaySceneQuery?, the worldFragment variable is always null, even if the ray intersects the terrain.
Example:

Ray ray = m_Camera.GetCameraToViewportRay(x, y);
RaySceneQuery rsq = m_SceneManager.CreateRayQuery(ray);
var results = rsq.Execute();
foreach (RaySceneQueryResultEntry rsqre in results)
{
    // worldFragment is always null.
    if(rsqre.worldFragment != null)
    {
        Vector3 click = rsqre.worldFragment.SingleIntersection;
    }
}

Presumably this just hasn't been implemented in the TSM.

Attachments

TerrainRaySceneQuery.patch (7.3 KB) - added by jonny912 2 months ago.
TSM Patch
TerrainDemo.patch (0.9 KB) - added by jonny912 2 months ago.
Terrain Demo Patch

Change History

Changed 5 months ago by jonny912

  • owner changed from borrillis to jonny912
  • status changed from new to accepted

Changed 2 months ago by jonny912

TSM Patch

Changed 2 months ago by jonny912

Terrain Demo Patch

Changed 2 months ago by jonny912

  • owner changed from jonny912 to borrillis
  • status changed from accepted to assigned

Implemented the OGRE code, worldFragment.SingleIntersection? is always -1,-1,-1

Changed 2 weeks ago by borrillis

  • milestone set to 0.8.0.0-RC1
Note: See TracTickets for help on using tickets.