Render Outline - Buggy

In the project I am working I am using render outline property of mesh to draw an outline of the mesh. However, I have noticed that for some meshes the result if not quite accurate. Instead of drawing an outline of the mesh, a bubble is formed. At times a circle is formed around the object. Could you please look into this issue? I won’t be able to share any images for reference.

Hey @Sidharth_Suresh, you should probably create example of that in playground, it would be good to see the code :wink:

I don’t mind writing the code but I won’t be able to recreate the issue without the right mesh. I am just setting renderOutline as true and changing the outlineWidth. Finally setting the color using outlineColor. Not much to show.

If you just trying to highlight selection you might wanna consider HighlightLayer.

Pulled import example from docs and just added it on imported mesh.
Check this out.

1 Like

Is this a behavior that occurs everytime on a same mesh (not randomly)? Like some of your meshes seem to highlight an object that is not your (rendered) mesh shape… do I understand this correctly?
If so, could it be that there are remaining invisible meshes/layers/polygons in your imported mesh…?

Highlight layers gives a glowing effect which I don’t need. While render outline serves my purpose.

that is correct. It occurs every time on the same mesh. And no the mesh is a single mesh and don’t have sub meshes.

It seems odd to give you this answer, but with the little I have here, all I can make is assumptions.
I assume that if it’s only one object/mesh and always the same having (constantly) the same issue, well, I’d say it’s likely that this object is the cause (or at least part of it).

Is there anyway you can either? 1) share your model/mesh or 2) reproduce similar in the PG.

If not and if I was you, I assume I would start with checking this model again: Make sure there is no selection of invisible polygons. No loose or invisible points. No other objects (props, lights,…). No other layers. Check the model normals. Check if no i.e. planes with PNG texture around the model (i.e. for a tree - I don’t even know what your model is (lol).
May be you could also start by posting a SS?…

Thanks for the answer. Again, I won’t be able to provide a SS. I will validate the mesh once again. As an alternative instead of using render outline for this particular mesh, I am using edge rendering to get a similar result.

You are making me/us wonder what you’re building…it seems all very secret;) :zipper_mouth_face: Will we have a chance to see the final version of your project? :eyes: GL anyways and have a great day.