mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0025556: Visualization - support stereo pair formats recognized by consumer display devices
Graphic3d_StereoMode - add new enumeration for stereoscopic outputs: - Graphic3d_StereoMode_QuadBuffer - Graphic3d_StereoMode_Anaglyph - Graphic3d_StereoMode_RowInterlaced - Graphic3d_StereoMode_ColumnInterlaced - Graphic3d_StereoMode_ChessBoard - Graphic3d_StereoMode_SideBySide - Graphic3d_StereoMode_OverUnder Graphic3d_RenderingParams - add new options controlling stereo output: - StereoMode - ToReverseStereo - AnaglyphFilter OpenGl_ShaderManager - add predefined GLSL programs for new stereo outputs. OpenGl_Workspace::Redraw() - do not implicitly disable stereo to allow stereo dump as is. OpenGl_Caps - add flag swapInterval to control VSync. OpenGl_Workspace::BufferDump() - handle cases with non-applicable GL_PACK_ROW_LENGTH. CALL_DEF_WINDOW - drop unused fields; add fields "left" and "top" to reverse stereo pair for interlaced output depending on window position. Draw Harness, ViewerTest: - Extend syntax of command vstereo to setup stereo. - Extend vdump command to allow dump of stereoscopic pair in different formats. - Extend command vcaps with option vsync. - Use mouse scroll to zoom and adjust ZFocus in WinAPI. - Use "/" and "*" to adjust IOD. v3d/glsl/stereo - add test case for stereo modes. Cocoa_LocalPool, OSD_EnvironmentIterator - fix compilation issues on OS X Snow Leopard.
This commit is contained in:
33
tests/v3d/glsl/stereo
Normal file
33
tests/v3d/glsl/stereo
Normal file
@@ -0,0 +1,33 @@
|
||||
puts "========"
|
||||
puts "Stereo output modes"
|
||||
puts "========"
|
||||
|
||||
restore [locate_data_file occ/fuse.brep] f
|
||||
vinit View1
|
||||
vclear
|
||||
vsetdispmode 1
|
||||
vaxo
|
||||
vdisplay f
|
||||
vfit
|
||||
vrotate -0.5 0.0 0.0
|
||||
|
||||
vstereo -mode anaglyph
|
||||
vfit
|
||||
vdump $::imagedir/${::casename}_anaglyph.png -stereo blend
|
||||
|
||||
vstereo -mode columnInterlaced
|
||||
vdump $::imagedir/${::casename}_col.png -stereo blend
|
||||
|
||||
vstereo -mode chessBoard
|
||||
vdump $::imagedir/${::casename}_chess.png -stereo blend
|
||||
|
||||
vstereo -mode rowInterlaced
|
||||
vdump $::imagedir/${::casename}_row.png -stereo blend
|
||||
|
||||
vstereo -mode sideBySide
|
||||
vdump $::imagedir/${::casename}_sbs_anamorph.png -stereo blend
|
||||
|
||||
vstereo -mode overUnder
|
||||
vdump $::imagedir/${::casename}_overunder_anamorph.png -stereo blend
|
||||
|
||||
vdump $::imagedir/${::casename}_sbs.png -stereo sbs
|
Reference in New Issue
Block a user