Files
OCCT/tests/v3d/grid/gpu_visibility
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

21 lines
613 B
Plaintext

puts "=================================================================="
puts "GPU shader grid is visible without scene objects and without vfit"
puts "=================================================================="
pload MODELING VISUALIZATION
vclear
vinit View1 w=400 h=400
vaxo
# Empty view: shader grid must not depend on scene bounding boxes.
vgrid -type gpu -size 100 100 -drawAxis 0
vdump $imagedir/${casename}_empty.png
# Adding an object without vfit must not be required to make the grid visible.
box b 10 10 10
vdisplay b -dispMode 1
vdump $imagedir/${casename}_display_no_vfit.png
vgrid off