Re: [osg-users] Problem with Producer::Rendersurface : transparent pictures
Hi Robert, Thank you for your help. In fact, the window size (of the RenderSurface) changes every frame. So I adapt the viewport (of the sceneView) size. The Model also changes. In fact I try to render the mesh to get a texture. I adapt the size of the viewport and window in function of the size of the model. But I found a solution, maybe it is not the best but it works : I create a Producer::RenderSurface with a size 1024*1024. Its size does'nt change whereas the size of the sceneView changes. The pictures I got are correct. It may be I mistake from myself but I do not know where it came from. Thank you. Hi Sebastien, What size is changing Window size? Model size? Viewport size??? The length of a piece of string? Robert. On Mon, May 5, 2008 at 5:27 PM, Sébastien Laigre [EMAIL PROTECTED] wrote: Hi ! In order to do rasterization, I create a Producer::RenderSurface and a osg::SceneView. The problem is that its size is changing very often (maybe 10 times/second). If I let the size constant, images are corrects but as soon as the size changes, images are correct on the bottom-left corner and the alpha channel is equal to zero else. Sizes of the RenderSurface and SceneView are the same. Have you got any idea of where it can com from ? How can I fix it ? Thank in advance. Sebastien ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Problem with Producer::Rendersurface : transparent pictures
Hi Sebastien, I'm afraid I don't really have a clue what exactly you are trying to do and why. You are using API's that are no longer used by the core OSG (Producer) and also OSG API's that I do recommend the use of (SceneView). All in all its a recipe for almost impossible support. I'd recommend that you use a modern version of the OSG, and use well support classes like osgViewer::Viewer, and where possible make it clear in your emails what you are doing and why. Robert. On Tue, May 20, 2008 at 4:19 PM, Sébastien Laigre [EMAIL PROTECTED] wrote: Hi Robert, Thank you for your help. In fact, the window size (of the RenderSurface) changes every frame. So I adapt the viewport (of the sceneView) size. The Model also changes. In fact I try to render the mesh to get a texture. I adapt the size of the viewport and window in function of the size of the model. But I found a solution, maybe it is not the best but it works : I create a Producer::RenderSurface with a size 1024*1024. Its size does'nt change whereas the size of the sceneView changes. The pictures I got are correct. It may be I mistake from myself but I do not know where it came from. Thank you. Hi Sebastien, What size is changing Window size? Model size? Viewport size??? The length of a piece of string? Robert. On Mon, May 5, 2008 at 5:27 PM, Sébastien Laigre [EMAIL PROTECTED] wrote: Hi ! In order to do rasterization, I create a Producer::RenderSurface and a osg::SceneView. The problem is that its size is changing very often (maybe 10 times/second). If I let the size constant, images are corrects but as soon as the size changes, images are correct on the bottom-left corner and the alpha channel is equal to zero else. Sizes of the RenderSurface and SceneView are the same. Have you got any idea of where it can com from ? How can I fix it ? Thank in advance. Sebastien ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Problem with Producer::Rendersurface : transparent pictures
Hi Sebastien, What size is changing Window size? Model size? Viewport size??? The length of a piece of string? Robert. On Mon, May 5, 2008 at 5:27 PM, Sébastien Laigre [EMAIL PROTECTED] wrote: Hi ! In order to do rasterization, I create a Producer::RenderSurface and a osg::SceneView. The problem is that its size is changing very often (maybe 10 times/second). If I let the size constant, images are corrects but as soon as the size changes, images are correct on the bottom-left corner and the alpha channel is equal to zero else. Sizes of the RenderSurface and SceneView are the same. Have you got any idea of where it can com from ? How can I fix it ? Thank in advance. Sebastien ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Problem with Producer::Rendersurface : transparent pictures
Hi ! In order to do rasterization, I create a Producer::RenderSurface and a osg::SceneView. The problem is that its size is changing very often (maybe 10 times/second). If I let the size constant, images are corrects but as soon as the size changes, images are correct on the bottom-left corner and the alpha channel is equal to zero else. Sizes of the RenderSurface and SceneView are the same. Have you got any idea of where it can com from ? How can I fix it ? Thank in advance. Sebastien ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org