Jump to content

API behavior change engine.render.renderImage2D


photo

Recommended Posts

Hello ,

 

Our app has to generate the preview from stored camera positions.

To generate the Image preview we are using code snippet

        Camera playerCamera = StoredCamera[i].getCamera();
        Image image = new Image();

        engine.render.renderImage2D( playerCamera, image, w, h, "", 0 );

Above code snippet worked fine with Unigine 1.0 and we were able to get the Image Preview from the specified camera position.

Which was used to match onscreen output if the both stored and current camera are having same value.

 

But with ungine 2.3.1 the background color is not getting rendered in image texture. We have transparent region instead of background color.

Can you suggest the fix for issue ?

Link to comment
×
×
  • Create New...