Re: [osg-users] How to constantly render a very far object?
Hi Robert, Thank you for response. There is a little problem. I'm currently doing a simulation project. All parameters ( including camera position and fovy, object position and size, and even texture size ) are assigned based on the real-world situation. And my job is to track the target pixel out of many other noise pixels. So zooming camera or object my not be a very good idea. I'd like to try to enable antialising and see what happens. Thanks. Mengyu robertosfield wrote: > 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. > -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=55755#55755 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] How to constantly render a very far object?
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 osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org