Use entity with PostProcessStage.selected

I would like to use the silhouette post process stage with geometry from an entity. The documentation for PostProcessStage.selected isn’t clear about what data types it takes. I have tried entity and entity.ellipsoid but neither works. Any suggestions?

See sandcastle for code.

It appears that primitives, not entities are the expected data types, as they are exposed from the picking API.

Do you mind telling us a bit more about your use case? Maybe we can suggest a different route.

Thanks for that additional info @Gabby_Getz .

I’m trying to render the outline of a ellipsoid (not the wireframe, just the silhouette). I’m doing this to highlight a 3d volume of space. I was using the ellipsoid (instead of a 2d ellipse) because I wanted to have it viewable from multiple angles. It is also possible that it may be trying to highlight a vertical surface like a wall instead of the ground.

For example to create the red highlight of the vertical edge of the building:

Got it. Is the ellipsoid going to be static? If so, would you be able to create the ellipsoid with the Primitive API instead?

Static works for now as this is just a proof of concept to see how it looks when the camera moves.

I tried using a primitive and still am not having success. See sandcastle