Jump to content

Oblique Frustum plane without cutting all objects


photo

Recommended Posts

Hi Fabre,

Current cross-section functionality implementation is limited and it has no control on the objects that you need to cut. We hope to improve this part in the nearest future if it would not require a lot of changes in implementation that would break the backwards compatibility.

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment

Hi Fabre,

We decided to provide you a custom material that you can use with 2.12.0.2 SDK (in theory it also should work after 2.13 update). Basically, it's a mesh_base copy with additional option that allow to customize which oblique plane can be used to cut the specific object:

In attachment you can find the test project and custom shader. You need to unpack the contents of attached archive to your current project's data directory, so the core directory would be located in the root of the data directory:

image.png

In the cross_section_example directory you can find slightly modified cross section sample with 2 cutting planes and 2 materials that works independently (red cube is being cut by a projection plane that defined in code, green cube is cut by the plane that can be controlled via UI).

The new algorithm works with material groups, so if you want add more cutting planes for different objects, you need to create an additional child of the mesh_base_cross_section material:

image.png

Hope that would help :)

multi_cross_section.zip

  • Like 3

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment
×
×
  • Create New...