Paul.Withers Posted October 2, 2019 Posted October 2, 2019 Hi, Is there anyway to define arbitrary clipping planes when rendering an object? Not just the camera front and back planes, but 6 or more planes in the same way glClipPlane does it. Cheers!
silent Posted October 2, 2019 Posted October 2, 2019 Hi Paul, I believe you can achieve the similar or very close effect by writing a custom shader. We can suggest an approach if you can tell us how the final output should look like. Do you need custom clip objects (like sphere or cube)? How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
Paul.Withers Posted October 3, 2019 Author Posted October 3, 2019 I have 2 cases. 1st, I want all rendering to be clipped to a cube. 2nd, I want only objects between 2 planes to be rendered. Writing a shader what i was going for, but wondering if there was already support for this feature in the engine.
silent Posted October 3, 2019 Posted October 3, 2019 Hi Paul, Yep, a custom shader is the best solution. We don't have such functionality available out of the box. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
Recommended Posts