|
Posted by Walter125
at Oct 3, 2023, 2:48:12 PM
|
Re: Light refraction and mirror effect rendering.
@Keet
Thanks for the files, I will have a look a it.
My model still have some problems, maybe related to normals. Because I'm using the same .mtl definition for the curved cover, and for the flat cover at the beginning and the end of the greenhouse.
The curved cover is rendered correctly. I have created it from a curved wall in SweetHome3D, exported to .obj.
But the flat cover has been created from a room that fit the curved wall, also exporting the room to .obj.
This flat cover doesn't render correctly, the light change direction when it goes into it.
I tried some basic normals changes in the .obj file, and the light took other directions, but it didn't solve the problem.
If someone have the time to test and help me, here is the .mtl file of the flat cover:
newmtl cover illum 1 Ka 1.000000 1.000000 1.000000 Kd 0.392157 0.584314 0.929412 Ks 0.0 0.0 0.0 Ns 1.0 Ni 1 d 0.75
And .obj file, that needs to be rotated to vertical, when importing it:
mtllib greenhouse-end.mtl g room_1_1 usemtl cover v 143.92583 0.1 146.97046 v 122.97447 0.1 149.85016 v 102.61039 0.1 155.55591 v 83.21291 0.1 163.98143 v 65.14338 0.1 174.96976 v 48.73839 0.1 188.31621 v 34.30354 0.1 203.77216 v 22.10772 0.1 221.0497 v 12.378101 0.1 239.82701 v 5.2959633 0.1 259.75424 v 0.99321324 0.1 280.46024 v -0.45 0.1 301.55927 v -0.45 0.1 371.55927 v 309.55 0.1 371.55923 v 309.45 0.1 301.55908 v 308.00677 0.1 280.4602 v 303.70404 0.1 259.75424 v 296.6219 0.1 239.82697 v 286.89227 0.1 221.04968 v 274.69644 0.1 203.77214 v 260.2616 0.1 188.3162 v 243.85661 0.1 174.96974 v 225.78708 0.1 163.98141 v 206.3896 0.1 155.55591 v 186.0255 0.1 149.85016 v 165.07416 0.1 146.97046 vn 0.0 1.0 0.0 f 25//1 26//1 1//1 f 25//1 1//1 2//1 f 25//1 2//1 3//1 f 25//1 3//1 4//1 f 25//1 4//1 5//1 f 25//1 5//1 6//1 f 25//1 6//1 7//1 f 25//1 7//1 8//1 f 25//1 8//1 9//1 f 25//1 9//1 10//1 f 25//1 10//1 11//1 f 25//1 11//1 12//1 f 25//1 12//1 13//1 f 25//1 13//1 14//1 f 25//1 14//1 15//1 f 25//1 15//1 16//1 f 25//1 16//1 17//1 f 25//1 17//1 18//1 f 25//1 18//1 19//1 f 25//1 19//1 20//1 f 25//1 20//1 21//1 f 25//1 21//1 22//1 f 25//1 22//1 23//1 f 25//1 23//1 24//1 g room_1_2 usemtl cover v 143.92583 0.0 146.97046 v 122.97447 0.0 149.85016 v 102.61039 0.0 155.55591 v 83.21291 0.0 163.98143 v 65.14338 0.0 174.96976 v 48.73839 0.0 188.31621 v 34.30354 0.0 203.77216 v 22.10772 0.0 221.0497 v 12.378101 0.0 239.82701 v 5.2959633 0.0 259.75424 v 0.99321324 0.0 280.46024 v -0.45 0.0 301.55927 v -0.45 0.0 371.55927 v 309.55 0.0 371.55923 v 309.45 0.0 301.55908 v 308.00677 0.0 280.4602 v 303.70404 0.0 259.75424 v 296.6219 0.0 239.82697 v 286.89227 0.0 221.04968 v 274.69644 0.0 203.77214 v 260.2616 0.0 188.3162 v 243.85661 0.0 174.96974 v 225.78708 0.0 163.98141 v 206.3896 0.0 155.55591 v 186.0255 0.0 149.85016 v 165.07416 0.0 146.97046 vn 0.0 1.0 0.0 f 52//2 51//2 27//2 f 27//2 51//2 28//2 f 28//2 51//2 29//2 f 29//2 51//2 30//2 f 30//2 51//2 31//2 f 31//2 51//2 32//2 f 32//2 51//2 33//2 f 33//2 51//2 34//2 f 34//2 51//2 35//2 f 35//2 51//2 36//2 f 36//2 51//2 37//2 f 37//2 51//2 38//2 f 38//2 51//2 39//2 f 39//2 51//2 40//2 f 40//2 51//2 41//2 f 41//2 51//2 42//2 f 42//2 51//2 43//2 f 43//2 51//2 44//2 f 44//2 51//2 45//2 f 45//2 51//2 46//2 f 46//2 51//2 47//2 f 47//2 51//2 48//2 f 48//2 51//2 49//2 f 49//2 51//2 50//2
|