|
87 | 87 | "from plotoptix.materials import m_clear_glass, m_matt_glass\n", |
88 | 88 | "import copy\n", |
89 | 89 | "\n", |
| 90 | + "m_env = copy.deepcopy(m_clear_glass)\n", |
| 91 | + "m_env[\"VarFloat3\"][\"refraction_index\"] = [1.0, 1.0, 1.0]\n", |
| 92 | + "\n", |
90 | 93 | "m_clear_glass_2 = copy.deepcopy(m_clear_glass)\n", |
91 | 94 | "m_clear_glass_3 = copy.deepcopy(m_clear_glass)\n", |
92 | 95 | "m_clear_glass_4 = copy.deepcopy(m_clear_glass)\n", |
|
126 | 129 | " u=[size_u, 0, 0], v=[0, -1, 0], w=[0, 0, size_w],\n", |
127 | 130 | " geom=\"Parallelepipeds\")\n", |
128 | 131 | "\n", |
129 | | - "optix.set_data(\"c_clear\", pos=[-3.5, 0, -5], u=[0.25, 0, 0], v=[0, 4, 0], w=[0, 0, 4], c=10, mat=\"glass\", geom=\"Parallelepipeds\")\n", |
130 | | - "optix.rotate_geometry(\"c_clear\", [0, 0, -np.pi/4])\n", |
131 | | - "optix.set_data(\"c_diffuse\", pos=[-0.5, 0, -5], u=[0.25, 0, 0], v=[0, 4, 0], w=[0, 0, 4], c=10, mat=\"glass_2\", geom=\"Parallelepipeds\")\n", |
132 | | - "optix.rotate_geometry(\"c_diffuse\", [0, 0, -np.pi/4])\n", |
133 | | - "optix.set_data(\"c_light\", pos=[2.5, 0, -5], u=[0.25, 0, 0], v=[0, 4, 0], w=[0, 0, 4], c=10, mat=\"light_1\", geom=\"Parallelepipeds\")\n", |
134 | | - "optix.rotate_geometry(\"c_light\", [0, 0, -np.pi/4])\n", |
| 132 | + "optix.set_data(\"c_glass\", pos=[-3.5, 0, -5], u=[0.25, 0, 0], v=[0, 4, 0], w=[0, 0, 4], c=10, mat=\"glass\", geom=\"Parallelepipeds\")\n", |
| 133 | + "optix.rotate_geometry(\"c_glass\", [0, 0, -np.pi/4])\n", |
| 134 | + "optix.set_data(\"c_glass_2\", pos=[-0.5, 0, -5], u=[0.25, 0, 0], v=[0, 4, 0], w=[0, 0, 4], c=10, mat=\"glass_2\", geom=\"Parallelepipeds\")\n", |
| 135 | + "optix.rotate_geometry(\"c_glass_2\", [0, 0, -np.pi/4])\n", |
| 136 | + "optix.set_data(\"c_light_1\", pos=[2.5, 0, -5], u=[0.25, 0, 0], v=[0, 4, 0], w=[0, 0, 4], c=10, mat=\"light_1\", geom=\"Parallelepipeds\")\n", |
| 137 | + "optix.rotate_geometry(\"c_light_1\", [0, 0, -np.pi/4])\n", |
135 | 138 | "\n", |
136 | 139 | "optix.set_data(\"s_light_2\", pos=[-3.1, 1.5, 1], r=1.5, c=10, mat=\"light_2\", geom=\"ParticleSetTextured\")\n", |
137 | | - "optix.set_data(\"s_diffuse\", pos=[0, 1.5, 1], r=1.5, c=10, mat=\"glass_2\")\n", |
138 | | - "optix.set_data(\"s_diffuse_colored\", pos=[3.1, 1.5, 1], r=1.5, c=10, mat=\"glass_3\")\n", |
| 140 | + "optix.set_data(\"s_glass_2\", pos=[0, 1.5, 1], r=1.5, c=10, mat=\"glass_2\")\n", |
| 141 | + "optix.set_data(\"s_glass_3\", pos=[3.1, 1.5, 1], r=1.5, c=10, mat=\"glass_3\")\n", |
139 | 142 | "\n", |
140 | | - "optix.set_data(\"s_matt\", pos=[-3.1, 1.5, 4.1], r=1.5, c=10, mat=\"matt_glass\")\n", |
141 | | - "optix.set_data(\"s_diffuse_less\", pos=[0, 1.5, 4.1], r=1.5, c=10, mat=\"glass_4\")\n", |
142 | | - "optix.set_data(\"s_diffuse_tex\", pos=[3.1, 1.5, 4.1], r=1.5, c=10, mat=\"glass_5\", geom=\"ParticleSetTextured\")\n", |
| 143 | + "optix.set_data(\"s_matt_glass\", pos=[-3.1, 1.5, 4.1], r=1.5, c=10, mat=\"matt_glass\")\n", |
| 144 | + "optix.set_data(\"s_glass_4\", pos=[0, 1.5, 4.1], r=1.5, c=10, mat=\"glass_4\")\n", |
| 145 | + "optix.set_data(\"s_glass_5\", pos=[3.1, 1.5, 4.1], r=1.5, c=10, mat=\"glass_5\", geom=\"ParticleSetTextured\")\n", |
143 | 146 | "\n", |
144 | 147 | "optix.set_data(\"s_matt_colored\", pos=[-3.1, 1.5, 7.2], r=1.5, c=10, mat=\"matt_glass_2\")\n", |
145 | 148 | "optix.set_data(\"s_light_1\", pos=[0, 1.5, 7.2], r=1.5, c=10, mat=\"light_1\")\n", |
146 | | - "optix.set_data(\"s_clear\", pos=[3.1, 1.5, 7.2], r=1.5, c=10, mat=\"glass\")" |
| 149 | + "optix.set_data(\"s_glass\", pos=[3.1, 1.5, 7.2], r=1.5, c=10, mat=\"glass\")" |
147 | 150 | ] |
148 | 151 | }, |
149 | 152 | { |
|
264 | 267 | ], |
265 | 268 | "metadata": { |
266 | 269 | "kernelspec": { |
267 | | - "display_name": "Python 3", |
| 270 | + "display_name": "Python 3 (ipykernel)", |
268 | 271 | "language": "python", |
269 | 272 | "name": "python3" |
270 | 273 | }, |
|
278 | 281 | "name": "python", |
279 | 282 | "nbconvert_exporter": "python", |
280 | 283 | "pygments_lexer": "ipython3", |
281 | | - "version": "3.7.4" |
| 284 | + "version": "3.10.6" |
282 | 285 | } |
283 | 286 | }, |
284 | 287 | "nbformat": 4, |
|
0 commit comments