I can;t say what the leak will be from the code supply but I can say that
creating a dedicated viewer, rendering a frame, then destroying really
isn't an efficient way to go about generating a thumbnail image. Rather
than than debug a dubious approach I'd suggest you leave it and try another
Hi Robert,
I am using code extracted from the osgscreencapture example to generate
small thumbnails of loaded shapes.
It all work is very nicely except that it is leaking memory on each usage.
I have commented out our code and based on that and a few other tests I am
fairly convinced that the
sorry.My environment is win10 osg3.6.4 GTX1660Ti.
I tried to write a Gaussian blur computeshader,but I don't know why display
error.
[image: QQ图片20200623183156.png]
The following code can be run directly.
#include
#include
#include
#include
#include
#include
#include
#include
static
I fixed it.This needs to be changed to the following code.
osg::ref_ptr quad_coords = new osg::Vec3Array; // vertex
coords
// counter-clockwise
quad_coords->push_back(osg::Vec3d(0, 0, -1));
quad_coords->push_back(osg::Vec3d(tex_width, 0, -1));
hi, Sebastian
Is fog operating independently of light?
Cheers.
2020년 6월 23일 화요일 오후 4시 47분 48초 UTC+9, OpenSceneGraph Users 님의 말:
>
> Hi,
>
>
>
> As there is no concept of day/night in OSG you need to adapt the color
> based on the time passed (you can use the osg-time for this or use a
>
hi,
I don’t change the color to make it dark
I want to express that it darkens naturally as time passes by the influence
of light.
2020년 6월 23일 화요일 오후 3시 55분 40초 UTC+9, OpenSceneGraph Users 님의 말:
>
> Hi, ?
>
>
>
> Simply set the fog-color to a darker color?
>
>
>
> *From:* osg-users > *On