Hi Mengyu,

It's hard to say exactly why it's disappearing but my best guess would
be the aliasing of a sub pixel sized object is resulting to
appearing/disappearing.

The way I'd tackle it would be to render the object to a texutre wth
the camera zoomed into to render the object at a large than pixel
size.  Then render an oversize quad with this texture on and let
OpenGL mipmpa filtering of the texture handle the antialiasing for
you.  This would be a form of impostor/image based rendering.

Another approach would be to scale the object so it's not subpixel in sized.

Robert.

On 5 July 2013 10:24, Mengyu Yuan <[email protected]> wrote:
> Hi,
>
> I have an object in my scene far from my camera. So far away that I can only 
> see a single pixel on screen. And it is slowly approaching the camera. Now I 
> need the camera to constantly render that pixel in the first few seconds.
>
> The problem is: the pixel disappears once in a while.
>
> When the object gets closer (about two or three pixels), it doesn't disappear 
> again.
>
> I tried to adjust the znear/zfar of the camera manually, but it didn't work. 
> I tried to set the CullingMode to NO_CULLING, still didn't work. And I'm sure 
> the object didn't fly out of my view.
>
> The camera is a RTT camera, but I don't think it's the reason, because no 
> scaling is performed.
>
> So I don't know why it's happening.
>
> Help please?
>
> ...
>
> Thank you!
>
> Cheers,
> Mengyu
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=55151#55151
>
>
>
>
>
> _______________________________________________
> 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