Hi Rabbi,
As Jason points out if your are doing the write image from the main
loop and the view is multi-threaded then the main loop will be running
in a parallel with the rendering.
The way to do it properly is to use a final draw callback to capture
the image and then write it to the disk, or i
Rabbi Robinson wrote:
Hi,
I attach the image to the camera and use PRE_RENDER for the camera. I just use the osgDB to write the image to file.
I also notice that the chance of getting an image for calling viewer.frame()
once is zero. What I do now is calling frame() for 10 times before savin
Hi,
I attach the image to the camera and use PRE_RENDER for the camera. I just use
the osgDB to write the image to file.
I also notice that the chance of getting an image for calling viewer.frame()
once is zero. What I do now is calling frame() for 10 times before saving the
image. Still, the
Hi Rabbi,
I'm afraid this still isn't enough information. Exactly how are you
doing the copy? Attaching an osg::Image to the osg::Camera? Using a
camera post draw callback? Doing your own gl code to do the copy in
some place in your application
Robert.
On Fri, Aug 14, 2009 at 4:02 PM, Ra
Hi,
I add a camera to the scene that renders the texture I want and set the camera
to use pixel buffer. I am trying to do some preprocessing for the texture map
beforehand. The viewer is used only to render one frame or two before it
deconstructs.
The result is random, sometimes the rendered
Hi Rabbi,
You don't say how you are trying to copy the image, so there is really
very little one can add, you need to explain far more about your
viewer setup and how you are going about your copy image.
Robert.
On Tue, Aug 11, 2009 at 3:29 PM, Rabbi Robinson wrote:
> Hi,
>
> I have a code that
Try glFinish after frame()
2009/8/11 Rabbi Robinson :
> Hi,
>
> I save it in a file. The problem is with frame(). If I call viewer.run() and
> hit Esc to quit the viewer the image is complete.
>
> Thank you!
>
> Cheers,
> Rabbi
>
--
http://www.ssTk.co.uk
Hi,
This problem is far over my little knowledges, I'm sorry I can't help you.
Good luck.
Cheers,
Maxime
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=16126#16126
___
osg-users mailing list
osg-u
Hi,
I save it in a file. The problem is with frame(). If I call viewer.run() and
hit Esc to quit the viewer the image is complete.
Thank you!
Cheers,
Rabbi
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=16092#16092
_
wrote:
> Hi,
>
> I have a code that creates a temporary viewer and uses it to render one frame
> and copy from the color buffer to an image. When I call viewer.frame() the
> rendered image is only half done. Is there anyone to tell the viewer to
> complete a frame, save it and close itself?
>
Hi,
I have a code that creates a temporary viewer and uses it to render one frame
and copy from the color buffer to an image. When I call viewer.frame() the
rendered image is only half done. Is there anyone to tell the viewer to
complete a frame, save it and close itself?
Thank you!
Cheers,
R
11 matches
Mail list logo