MantisBT
Mantis Bug Tracker Workflow

View Revisions: Issue #30476 All Revisions ] Back to Issue ]
Summary 0030476: Visualization, Path Tracing - Adaptive Screen Sampling leads to unstable results
Revision 2019-02-08 20:03 by kgv
Steps To Reproduce
pload VISUALIZATION
vclear;vclose ALL;vinit View1 -width 512 -height 512
test v3d raytrace dof_mono 1
vrenderparams -iss 1
#vrenderparams -issd 1
set aZoom 1
vfit;vzoom $aZoom
vdump a.png
vfps 10
vdump a10.png
vfps 50
vdump a50.png
vfit;vzoom $aZoom
vdump b.png
vfps 10
vdump b10.png
vfps 50
vdump b50.png
diffimage a.png b.png d.png
diffimage a10.png b10.png d10.png
diffimage a50.png b50.png d50.png



pload VISUALIZATION
#set aSize 256
#set aSize 409
#set aSize 512
set aSize 1024
vclear;vclose ALL;vinit View1 -width $aSize -height $aSize
test v3d raytrace dof_mono 1
vrenderparams -iss 1

set aZoom 1
vfit -noupdate; if { $aZoom != 1 } { vzoom $aZoom }
vinit -cloneActive View2
vfit -noupdate; if { $aZoom != 1 } { vzoom $aZoom }
for {set i 0} {$i < 50} {incr i} { puts "\n >> View1 $i"; vactivate View1; vdump a$i.png; 
puts " >> View2 $i"; vactivate View2; vdump b$i.png; set aDiff [diffimage a$i.png b$i.png 
d$i.png]; if { $aDiff != 0 } { break; } }



pload MODELING VISUALIZATION
vgldebug -glslWarn 1; vcaps -vsync 0
box bl 0 0 0 0.1 3 3
box br 0 3 0 3 0.1 3
box bt 0 0 3 3 3 0.1
box bg 0 0 0 3 3 0.1
box bn 2 2.5 1 0.1 0.1 0.1
#set aSizeX 409; set aSizeY 409
set aSizeX 1920; set aSizeY 1080
#set aSizeX 1024; set aSizeY 1024
#set aSizeX 2048; set aSizeY 1024
set aParamsIss0 "-rayTrace -gi -iss 0 -issAtomic 0"
set aParamsIss1 "-rayTrace -gi -iss 1 -issAtomic 0"
set aParamsIss2 "-rayTrace -gi -iss 1 -issAtomic 1"

vclear; vclose ALL; vinit v1 -width $aSizeX -height $aSizeY
vglinfo
set aVend [lindex [string tolower [vglinfo vendor]] 0]

set aResFolder1 ../${aVend}_${aSizeX}x${aSizeY}_iss0
set aResFolder2 ../${aVend}_${aSizeX}x${aSizeY}_iss1
set aResFolder3 ../${aVend}_${aSizeX}x${aSizeY}_iss2
if {[file exists "$aResFolder1"] == 1} { file delete -force $aResFolder1 }
if {[file exists "$aResFolder2"] == 1} { file delete -force $aResFolder2 }
if {[file exists "$aResFolder3"] == 1} { file delete -force $aResFolder3 }
file mkdir "$aResFolder1"
file mkdir "$aResFolder2"
file mkdir "$aResFolder3"

vlight -clear -add positional -global -head 0 -pos 0.5 1 1 -sm 0.06 -int 250.0
vdisplay -dispMode 1 bl br bt bg bn; vfit;
vaspects bl -setMaterial PLASTIC
vaspects br -setMaterial PLASTIC
vaspects bt -setMaterial GLASS
vaspects bg -setMaterial SILVER
vaspects bn -setMaterial NEON
vraytrace 1; vrenderparams -gi

#vrenderparams -iss 1

#proc myDump {img} { vdump ${img}_1.png; vdump ${img}_2.png; vfps 7; vdump ${img}_10.png; vfps 89; vdump 
${img}_100.png; vfps 99; vdump ${img}_200.png; vfps 99; vdump ${img}_300.png; vfps 99; vdump ${img}_400.png; 
vfps 99; vdump ${img}_500.png }
proc myDump {img} { vdump ${img}_1.png; vdump ${img}_2.png; vfps 7; vdump ${img}_10.png; vfps 89; vdump 
${img}_100.png; }
vrenderparams {*}$aParamsIss0; vfit; myDump $aResFolder1/image
vrenderparams {*}$aParamsIss1; vfit; myDump $aResFolder2/image
vrenderparams {*}$aParamsIss2; vfit; myDump $aResFolder3/image

vrenderparams {*}$aParamsIss0; vfit; chrono t1 restart; vfps -time 10; chrono t1 show
vrenderparams {*}$aParamsIss1; vfit; chrono t2 restart; vfps -time 10; chrono t2 show
vrenderparams {*}$aParamsIss2; vfit; chrono t3 restart; vfps -time 10; chrono t3 show
vmemgpu
meminfo
vstatprofiler geomMem textureMem frameMem
Revision 2019-02-06 19:27 by kgv
Steps To Reproduce
pload VISUALIZATION
vclear;vclose ALL;vinit View1 -width 512 -height 512
test v3d raytrace dof_mono 1
vrenderparams -iss 1
#vrenderparams -issd 1
set aZoom 1
vfit;vzoom $aZoom
vdump a.png
vfps 10
vdump a10.png
vfps 50
vdump a50.png
vfit;vzoom $aZoom
vdump b.png
vfps 10
vdump b10.png
vfps 50
vdump b50.png
diffimage a.png b.png d.png
diffimage a10.png b10.png d10.png
diffimage a50.png b50.png d50.png



pload VISUALIZATION
#set aSize 256
#set aSize 409
#set aSize 512
set aSize 1024
vclear;vclose ALL;vinit View1 -width $aSize -height $aSize
test v3d raytrace dof_mono 1
vrenderparams -iss 1

set aZoom 1
vfit -noupdate; if { $aZoom != 1 } { vzoom $aZoom }
vinit -cloneActive View2
vfit -noupdate; if { $aZoom != 1 } { vzoom $aZoom }
for {set i 0} {$i < 50} {incr i} { puts "\n >> View1 $i"; vactivate View1; vdump a$i.png; 
puts " >> View2 $i"; vactivate View2; vdump b$i.png; set aDiff [diffimage a$i.png b$i.png 
d$i.png]; if { $aDiff != 0 } { break; } }
Revision 2019-02-05 11:18 by kgv
Steps To Reproduce
pload VISUALIZATION
vclear;vclose ALL;vinit View1 -width 512 -height 512
test v3d raytrace dof_mono 1
vrenderparams -iss 1
#vrenderparams -issd 1
set aZoom 1
vfit;vzoom $aZoom
vdump a.png
vfps 10
vdump a10.png
vfps 50
vdump a50.png
vfit;vzoom $aZoom
vdump b.png
vfps 10
vdump b10.png
vfps 50
vdump b50.png
diffimage a.png b.png d.png
diffimage a10.png b10.png d10.png
diffimage a50.png b50.png d50.png


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker