[osg-users] Transform matrix as Uniform to shaders

2017-10-04 Thread Nikolai Christensen
Hi, I need a matrix for the transform from root scene node to the node where the mesh the shaders currently are operating on is in. Does OSG pass such a matrix automatically to the shaders? If yes, is there other uniforms passed and is there a list of them somewhere? Sorry if my question is dum

Re: [osg-users] Possible PolytopeIntersector bug?

2017-10-04 Thread Jordi Torres
Hi again, Clearly an error in my side. Sorry for the noise :(. Cheers. 2017-10-04 14:48 GMT+02:00 Jordi Torres : > Hi robert, > > Thanks for your input, maybe the error is in my side. I will try to > provide a minimal repro case. > > Thanks! > > El 4 oct. 2017 2:31 p. m., "Robert Osfield" > es

Re: [osg-users] Possible PolytopeIntersector bug?

2017-10-04 Thread Jordi Torres
Hi robert, Thanks for your input, maybe the error is in my side. I will try to provide a minimal repro case. Thanks! El 4 oct. 2017 2:31 p. m., "Robert Osfield" escribió: > Hi Jordi, > > On 4 October 2017 at 10:49, Jordi Torres wrote: > >> Sorry I sent the mail without finishing it. >> >> As

Re: [osg-users] Possible PolytopeIntersector bug?

2017-10-04 Thread Robert Osfield
Hi Jordi, On 4 October 2017 at 10:49, Jordi Torres wrote: > Sorry I sent the mail without finishing it. > > As I was saying... > > In previous versions it was some code checking that. > https://github.com/openscenegraph/OpenSceneGraph/ > blob/OpenSceneGraph-3.4/src/osgUtil/PolytopeIntersector.cp

Re: [osg-users] Possible PolytopeIntersector bug?

2017-10-04 Thread Jordi Torres
Sorry I sent the mail without finishing it. As I was saying... In previous versions it was some code checking that. https://github.com/openscenegraph/OpenSceneGraph/blob/OpenSceneGraph-3.4/src/osgUtil/PolytopeIntersector.cpp#L300 Am I missing something? Thanks! 2017-10-04 11:48 GMT+02:00 Jord

[osg-users] Possible PolytopeIntersector bug?

2017-10-04 Thread Jordi Torres
Hi Robert, I'm not sure PolytopeIntersector has en error here: https://github.com/openscenegraph/OpenSceneGraph/blob/master/src/osgUtil/PolytopeIntersector.cpp#L186 I think it returns false when the whole polytope goes through a triangle. In previous versions it was some code checking that. -