AB4D Forum
RenderToBitmap only the 3D visuals and not the entire viewport border - Printable Version

+- AB4D Forum (https://forum.ab4d.com)
+-- Forum: Products Forums (https://forum.ab4d.com/forumdisplay.php?fid=4)
+--- Forum: Ab3d.PowerToys (https://forum.ab4d.com/forumdisplay.php?fid=9)
+--- Thread: RenderToBitmap only the 3D visuals and not the entire viewport border (/showthread.php?tid=4249)



RenderToBitmap only the 3D visuals and not the entire viewport border - Somanna - 03-15-2021

I wanted to if its possible to RenderToBitmap only the area on viewport that contains 3D visuals wraped together and not the whole Viewport border area?


RE: RenderToBitmap only the 3D visuals and not the entire viewport border - GraPhiX - 03-15-2021

(03-15-2021, 09:57 PM)Somanna Wrote: I wanted to if its possible to RenderToBitmap only the area on viewport that contains 3D visuals wraped together and not the whole Viewport border area?

HiĀ 
the way i did it was hide or switch everything else off then rendertobitmap(mymaincamera)


RE: RenderToBitmap only the 3D visuals and not the entire viewport border - abenedik - 03-16-2021

You can also:
1) save the current camera settings: TargetPositition, Offset, Heading, Attitude, Distance (may be different if you use some other type of camera and not TargetPositionCamera)
2) call camera.FitIntoView
3) call camera.RenderToBitmap
4) reset camera settings from saved values


RE: RenderToBitmap only the 3D visuals and not the entire viewport border - GraPhiX - 03-16-2021

(03-16-2021, 09:55 AM)abenedik Wrote: You can also:
1) save the current camera settings: TargetPositition, Offset, Heading, Attitude, Distance (may be different if you use some other type of camera and not TargetPositionCamera)
2) call camera.FitIntoView
3) call camera.RenderToBitmap
4) reset camera settings from saved values

LOL put better than how i said it, yes this is similar to my method.