Best way to fill up inner 3D mesh from camera view


I’m trying to get an effect to apply inside a 3D line shape.
I have a line which is drawn in space - 3d points - and I would like to draw a different color / apply a shader to the pixels inside the shape from the viewport of the camera.

See demo here - bare bone.

My hint would be to use a shader which applies to the whole scene and process every point of my line and check if the pixel is inside or outside the line?

I’m not sure how to proceed, :(.



You can do this using a Shape. See the following example - the very back row of thin shapes is what you’re looking for.

1 Like

Hi @looeee,

Thanks, I think i will try that even though that’s not quite right.
I have a generative 3D typography which looks like this :


It’s a 3d outline in space. - this is why I simplified it in the demo with 3d points on a circle with different depths … -
I want to apply a shader to the inside of the outline, but I believe the quickest way / less computationally intensive is to make a mesh in the first place rather than processing the inside after its creation.

Best approach to fill up an outline is to use this, or that from here? or something else?



For triangulation you need the normal for each point of the 3D surface.

The original algorithm for implicit surfaces is based on this.
Addon for triangulation of implicit surfaces/ forms with holes

For sphere and cylinder the normal is very easy to determine.

But it would also be enough to determine the normal somehow approximate.

But also note the documented errors if the outline is too jagged. In your example I see sharp points, much more problematic than in my star example.