MantisBT
Mantis Bug Tracker Workflow

View Revisions: Issue #27943 All Revisions ] Back to Issue ]
Summary 0027943: Visualization - fix broken shading by positional light for object with local transformation
Revision 2016-10-09 19:19 by kgv
Steps To Reproduce Test case 1:
set anX 0.001
pload MODELING VISUALIZATION
circle c 0 0 0 0.001
mkedge e c
wire   w e
plane  s
mkface f1 s w
mkface f2 s w
ttranslate f1 $anX -0.001 0
#ttranslate f2 $anX  0.001 0
vclear
vinit View1
vtop
vdisplay -dispMode 1 f1 f2
vsetlocation f2 $anX 0.001 0
vpoint vl $anX 0 0.001
vfit
vlight clear
vlight add positional pos $anX 0 0.001 color RED1
#vlight change 2 pos $anX 0 0.001 color RED1
#vrenderparams -shadingModel phong
vshaderprog phong


Test case 2:
pload MODELING VISUALIZATION
circle c 0 0 0 0.001
mkedge e c
wire   w e
plane  s
mkface f0  s w
mkface f10 s w
ttranslate f10 10 -0.001 0
vclear
vinit View1
vaxo
vdisplay -dispMode 1 f0 f10
vsetlocation f0 10 0.001 0
vfit
vrotate 1 0 0
vpoint v10 10 0 0.001
vlight add positional pos 10 0 0.001 color RED1
vlight change 2 pos 10 0 0.001 color RED1

# OK
vraytrace 1

# about OK
vcaps -ffp 1

# KO
vcaps -ffp 0

#vrenderparams -shadingModel phong
Revision 2016-10-09 16:13 by kgv
Steps To Reproduce
pload MODELING VISUALIZATION
circle c 0 0 0 0.001
mkedge e c
wire   w e
plane  s
mkface f0  s w
mkface f10 s w
ttranslate f10 10 -0.001 0
vclear
vinit View1
vaxo
vdisplay -dispMode 1 f0 f10
vsetlocation f0 10 0.001 0
vfit
vrotate 1 0 0
vpoint v10 10 0 0.001
vlight add positional pos 10 0 0.001 color RED1
vlight change 2 pos 10 0 0.001 color RED1

# OK
vraytrace 1

# about OK
vcaps -ffp 1

# KO
vcaps -ffp 0

#vrenderparams -shadingModel phong


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker