How control model subsets of rendering
How control model subsets of rendering
for example: one mesh has two subsets,I want to render first subset and hidden the second subset.How can I do?
-
hybrid
- Admin
- Posts: 14144
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Hiding via setVisible() is only supported for whole meshes/scene nodes. So unless you split your mesh into two parts and load them separately, this is not an option. But you can change the SMaterial setting to disable writing to the framebuffer and/or to the depth buffer. This would avoid any rendering being done, though will have a slightly higher performance impact than using the setVisible method.
thanks.hybrid wrote:Hiding via setVisible() is only supported for whole meshes/scene nodes. So unless you split your mesh into two parts and load them separately, this is not an option. But you can change the SMaterial setting to disable writing to the framebuffer and/or to the depth buffer. This would avoid any rendering being done, though will have a slightly higher performance impact than using the setVisible method.
How can I change the Material setting to disable writing to the framebuffer and/or to the depth buffer.