1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-07 18:30:55 +03:00
kgv 3c4b62a436 0026711: Visualization, TKOpenGl - support creation of multisampling off-screen FBOs
OpenGl_Texture::Init2DMultisample() - new method to initialize multisampled texture.
Graphic3d_RenderingParams::NbMsaaSamples - add option defining MSAA samples number.

RayTracing will keep using FBO without MSAA, however it is possible to combine
MSAA for rasterization and FSAA for RayTracing.

OpenGl_FrameBuffer constructor has been changed to do not take arguments.
OpenGl_FrameBuffer::Init() method has been extended with mandatory parameters
defining Color and Depth attachment formats
and optional parameter defining number of MSAA parameters.

Draw Harness, add option -msaa to vrenderparams.
2015-10-29 13:28:11 +03:00

25 lines
487 B
Plaintext

puts "========"
puts "Multisampling FBOs"
puts "========"
pload MODELING VISUALIZATION
box b 2 3 1
vclear
vclose ALL
vinit View1 w=512 h=512
vsetgradientbg 180 200 255 180 180 180 2
vsetdispmode 0
vdisplay b
vfit
vrotate 0.5 0 0
vzbufftrihedron
vrenderparams -msaa 0
vdump $::imagedir/${::casename}_0.png
vrenderparams -msaa 2
vdump $::imagedir/${::casename}_2.png
vrenderparams -msaa 4
vdump $::imagedir/${::casename}_4.png
vrenderparams -msaa 8
vdump $::imagedir/${::casename}_8.png