Hi Carsten,
sorry for the the delay,
On Wed, Nov 18, 2009 at 11:01 PM, Carsten Neumann
<[email protected]>wrote:
> Hello Pablo,
>
> Pablo Carneiro Elias wrote:
> > On Wed, Nov 18, 2009 at 5:24 PM, Hall, Theodore <[email protected]
> > <mailto:[email protected]>> wrote:
> > The main reason that lead me to believe its not my mistake is that this
> > code used to work before we upgrading to the lastest svn version.. (our
> > older version was from 02/16/2009), and it still works now under linux.
>
> have you checked whether it actually gets to execute your
> IntersectAction callback in both cases (can you isolate the problem to
> be in the ia->getLine().intersect() call) or does it perhaps not even
> get there (because tests against the bounding volumes fail higher up the
> tree)?
>
I've checked and actually all callbacks gets executed and also all
getLine().intersect() calls get executed and return true. So, in all cases,
when a pick is performed over my custom geometry,
many triangles get hit (intersect() returns true), and the setHit() call is
performed. The setHit() checks whether the t parameter (which is calculated
by the intersect() method and represent the ray scale at which the
intersection occurred) is greater then zero, to grant that the intersection
occurred in front of the camera. The problem is that this 't' parameter is
being calculated as < 0 by the intersect() method, even with the geometry
being visible. So, even after many setHit() calls, the didHit() returns
false because no hit was actually set. This problem happens now after we
have upgraded to the latest osg version. I've downgraded to the old version
and the problem stopped happening.
> > Another thing is that this particularly method setHit, which now has the
> > following API:
> >
> > void setHit (Real32 t,
> > Node *obj,
> > Int32 triIndex,
> > Vec3f &normal,
> > Int32 lineIndex );
> >
> >
> > has been modified since the last version we're using.. it didn't have
> > the lineIndex parameter... so, after that alter the code stopped working
> > under windows...
> >
> > I can't see any possible difference between two algorithms (win x
> > linux).. so thats a strange problem to me.
>
> it is quite strange and I'm a little sceptical if this really is a
> platform issue, it's possible, but I think it rather unlikely...
>
> Cheers,
> Carsten
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
>
Any hints?
Thanks
Pablo
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users