How do you remove/hide the end faces of the cylinder primitive?

Is it possible to remove the end faces of the cylinder primitive so that its hollow or will I need to create a model?

There’s no option in the API to remove the cylinder caps. However, you could just grab and modify the existing source to generate a cylinder:

This would mainly involve deleting generation of the cap triangles here:

But it might be quicker and easier to just open 3DS Max/Maya/Blender and create a tube. :slight_smile:

I think you can get access to buffers of model and change geometry there.

By the way, the easiest way to hide a face is custom shader.

Nice tutorial, which demonstrates how to hide part of model.

1 Like