Replies: 1 comment 1 reply
-
Please take a look at the example in #3970. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I'm trying to add point light to the scene and render it.
but it seems like the light is not added :(.
Where did I make a mistake?
`
box = o3d.geometry.TriangleMesh.create_box(width=1, height=1, depth=1).translate([0, 0, 1]).subdivide_midpoint(
3)
box2 = o3d.geometry.TriangleMesh.create_box(width=100, height=100, depth=0.1).translate([0, 0, 1]).subdivide_midpoint(
3)
box3 = o3d.geometry.TriangleMesh.create_box(width=.1, height=.1, depth=0.1).translate(
[1, 1, 4]).subdivide_midpoint(
3)
box.compute_vertex_normals()
box.paint_uniform_color([0.1, 0.1, 0.7])
box2.compute_vertex_normals()
box2.paint_uniform_color([0.1, 0.1, 0.7])
box3.compute_vertex_normals()
box3.paint_uniform_color([0.1, 0.1, 0.7])
...
)
Beta Was this translation helpful? Give feedback.
All reactions