Hi Gianni,

The issue sounds vaguely familiar, but I'm afraid I can't recall all
details off the top of my head, or whether it was osgQt specific even.
 My guess it'll be an issue with the camera projection matrix being
scaled to 0,0 to fit to zero sized viewport and then once an attempt
to rescale it back up to valid size that erroneous matrix is re-scaled
and of course fails.   Adding some debugging in the code that sets the
projection matrix would allow you to spot whether this is happening or
not.  One could disable the automatic adjustment of the camera
projection matrix too to see if this is the root of the issue, see
osg::Camera::setProjectionResizePolicy(osg::ProjectionResizePolicy)
method :

>From include/osg/Camera:

        enum ProjectionResizePolicy
        {
            FIXED, /**< Keep the projection matrix fixed, despite
window resizes.*/
            HORIZONTAL, /**< Adjust the HORIZONTAL field of view on
window resizes.*/
            VERTICAL /**< Adjust the VERTICAL field of view on window resizes.*/

        };

        /** Set the policy used to determine if and how the projection
matrix should be adjusted on window resizes. */
        inline void setProjectionResizePolicy(ProjectionResizePolicy
policy) { _projectionResizePolicy = policy; }


Robert.

On 11 April 2014 11:13, Gianni Ambrosio <[email protected]> wrote:
> Hi,
> in my Qt application I'm experiencing some issues when the viewer is reduced 
> to 0 height. I reduce the viewer size to 0 height then I increase its height 
> again and when I try to interactively rotate the (no more visible - see 
> below) scene with mouse (through a trackabll manipulator) I get the following 
> dump on screen:
>
> CullVisitor::apply(Geode&) detected NaN,
>     depth=-1.#IND, center=(35 0 -2.14577e-006),
>     matrix={
>         1.#QNAN 1.#QNAN 1.#QNAN 1.#QNAN
>         1.#QNAN 1.#QNAN 1.#QNAN 1.#QNAN
>         1.#QNAN 1.#QNAN 1.#QNAN 1.#QNAN
>         0 0 -98 1
> }
>
> Moreover my 3D scene is not visualized anymore.
>
> So I tried with osgviewerQt example and the 3D scene disappears here too. Is 
> it a known issue? I'm investigating on it to understand the point but if 
> someone already found the cause or a solution please let me know.
>
> Regards
> Gianni
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=58881#58881
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to