78607702 |
1 | puts "========" |
2 | puts "0031275: Visualization, TKOpenGl - handle normal-map texture with Path-Tracing" |
3 | puts "========" |
4 | |
5 | pload XDE OCAF MODELING VISUALIZATION |
395d00e0 |
6 | Close D -silent |
78607702 |
7 | ReadGltf D [locate_data_file bug31275_SphereWithNormalMap.glb] |
8 | |
9 | vclear |
10 | vinit v -w 1024 -h 1024 |
11 | vbackground -cubemap [locate_data_file Circus_CubeMap_V.png] |
12 | vcamera -persp |
13 | vlight -clear |
14 | vlight -add ambient |
15 | XDisplay -dispmode 1 D |
16 | vback |
17 | vfit |
18 | |
19 | vrenderparams -ignoreNormalMap on |
20 | vrenderparams -ray -gi -rayDepth 10 |
21 | vfps 200 |
22 | vdump ${imagedir}/${casename}_without_normal_map.png |
23 | |
24 | vrenderparams -ignoreNormalMap off |
25 | vfps 200 |
26 | vdump ${imagedir}/${casename}_with_normal_map_back.png |
27 | |
28 | vfront |
29 | vfps 200 |
30 | vdump ${imagedir}/${casename}_with_normal_map_front.png |
31 | |
32 | vlight -add positional -pos 0 0 0 -head 1 -intensity 10 |
33 | vfps 200 |
34 | vdump ${imagedir}/${casename}_point_light.png |