mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
Introduced V3d_View::SkydomeAspect() property for generating skydome cubemap environment. Skydome features: day/night cycle, 2 types of clouds, atmosphere, water surface, stars, fog.
44 lines
963 B
Plaintext
44 lines
963 B
Plaintext
puts "============"
|
|
puts "0032606: Visualization - add a shader for sky"
|
|
puts "============"
|
|
puts ""
|
|
|
|
set THE_DIM 256
|
|
|
|
pload MODELING VISUALIZATION
|
|
psphere s 1
|
|
|
|
vinit View1 -width 768 -height 512
|
|
vcamera -persp -fovy 120
|
|
|
|
chrono t restart
|
|
vbackground -skydome -size $THE_DIM -cloud 0.3 -sunDir 1.0 0.5 0.0 -time 10 -fog 0.3
|
|
chrono t show
|
|
vaxo
|
|
vdump $imagedir/${casename}_day.png
|
|
|
|
chrono t restart
|
|
vbackground -skydome -size $THE_DIM -cloud 0.3 -sunDir 1.0 -0.5 0.0 -time -10 -fog 0.05
|
|
chrono t show
|
|
vaxo
|
|
vdump $imagedir/${casename}_night.png
|
|
|
|
chrono t restart
|
|
vbackground -skydome -size $THE_DIM -cloud 0.15 -sunDir 1.0 0.15 0.0 -time 10
|
|
chrono t show
|
|
vaxo
|
|
vdump $imagedir/${casename}_sunset.png
|
|
|
|
chrono t restart
|
|
vbackground -skydome -size $THE_DIM
|
|
chrono t show
|
|
vaxo
|
|
vdump $imagedir/${casename}_defaults.png
|
|
|
|
vdisplay -dispMode 1 s
|
|
vfit
|
|
vaspects s -material SILVER
|
|
vrenderparams -shadingModel pbr
|
|
vlight headlight -enabled 0
|
|
vdump $imagedir/${casename}_pbr.png
|