I have this mesh rendered like this(see screenshot) and it is basically triangles only.
How do I actually render it like this?
I am completely new to mesh and rendering. Is there an exmaple for it?
9 messages · Page 1 of 1 (latest)
I have this mesh rendered like this(see screenshot) and it is basically triangles only.
How do I actually render it like this?
I am completely new to mesh and rendering. Is there an exmaple for it?
I’m not sure exactly what do you want… are you asking how to remove the white outline? That’s a plugin you must’ve added because wireframe is disabled by default.
Or are you asking how to change the base color to orange? If so see this example
There is a lot of white lines(espeically at the corners) in my screenshot. I would like to remove them, have the same look and feel as
The White lines are wireframe of the mesh. It doesn’t show by default you have to enable it. When you spawned the mesh you likely added “Wireframe” component to it. Remove it. That should be it
How do I render a mesh with the same lighting(the Orange color varius depends on the angle/surface). I tried using SpotLight/PointLight and I don't think I am in the right direction. SpotLight/PointLight gives me shadow and it is not what I want.
Depends on how you’re spawning the mesh. You need to give it Orange material and non smooth shading in whatever program you made it
My model is in STL format and it doesn't have the concept of shading, just vertices, triangles and normals.
How do you import it in bevy?
I read it as a mesh via https://docs.rs/stl_io/latest/stl_io/fn.read_stl.html
Then I convert it to bevy mesh like https://github.com/bevyengine/bevy/blob/main/examples/3d/generate_custom_mesh.rs#L108