v3.2.6 #52
harfang3dadmin
announced in
Announcements
v3.2.6
#52
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
[3.2.6] - 2023-06-05
This minor release provides several fixes and brings a functionning API to capture the framebuffer and save it as a picture.
Framework integration and source code maintenance
DisableCursor
on SDL (by @pmp-p).Rendering
SetCameraCenterOffset
andGetCameraCenterOffset
(by @RobEwbank1).uint32_t CaptureTexture(const PipelineResources &resources, const TextureRef &t, Picture &pic)
uint32_t CaptureTexture(bgfx::ViewId &view_id, const PipelineResources &resources, const TextureRef &t, const Texture &readback, Picture &pic)
GetPixelRGBA
andSetPixelRGBA
.picture = hg.Picture(512, 512, hg.PF_RGBA32)
draw to texture
TF_ReadBack
:tex_readback = hg.CreateTexture(512, 512, "readback", hg.TF_ReadBack | hg.TF_BlitDestination, hg.TF_RGBA8)
hg.SubmitSceneToPipeline(view_id, scene, hg.IntRect(0, 0, 512, 512), true, pipeline, res, frame_buffer.handle)
frame_count_capture, view_id = hg.CaptureTexture(view_id, res, tex_color_ref, tex_readback, picture)
frame
counter is greater or equal toframe_count_capture
, save the picture:hg.SavePNG(picture, "capture.png")
Misc bug fix
!=
color operator.minmax
transform to fix Object culling seems too aggressive #49.VertexLayoutPosFloatNormUInt8TexCoord0UInt8
).RBT_Static
wasn't saved properly in the scene file.GetAnimableNodePropertyFloat
andSetAnimableNodePropertyFloat
to handle the camera FOV.This discussion was created from the release v3.2.6.
Beta Was this translation helpful? Give feedback.
All reactions