Files
OCCT/tests/v3d/grid/gpu_perspective_nomirror
Pasukhin Dmitry 239c41eeb0 Visualization - Fix V3d shader grid issues (#1295)
- Updated shader grid rendering to intersect the grid plane in view space and draw it with a single full-screen triangle.
- Added shader grid bounds to camera Z-fit, so the grid is visible in empty views and after object display without an extra vfit.
- Fixed shader grid echo to use the active shader grid plane, effective scale, bounds and clip-safe display point.
- Kept the viewer-managed CPU grid path separate from the per-view shader grid path and preserved CPU grid type/mode handling in vgrid.
- Added grid tests for empty/no-vfit visibility and perspective rendering without mirrored fragments.
2026-06-05 13:45:42 +01:00

23 lines
499 B
Plaintext

puts "=================================================================="
puts "GPU shader grid keeps foreground plane semantics in perspective view"
puts "=================================================================="
pload MODELING VISUALIZATION
vclear
vinit View1 w=400 h=400
vaxo
box b 10 10 10
vdisplay b -dispMode 1
vfit
vgrid -type gpu -size 100 100 -drawAxis 0
vcamera -persp
vdump $imagedir/${casename}_persp.png
vrotate 0 0 0.5
vdump $imagedir/${casename}_rotated.png
vgrid off