Home › Forums › Graphics / 3ds Max › Clip/Cutout objects by geometry
- This topic has 11 replies, 3 voices, and was last updated 3 years, 7 months ago by Yuri Kovelenov.
-
AuthorPosts
-
2020-10-02 at 3:44 pm #33756webCustomer
Does someone know if it is possible to clip geometry by certain objects/materials?
2020-10-03 at 3:26 am #33772GLiFTeKCustomerDoes someone know if it is possible to clip geometry by certain objects/materials?
FUNNY you should ask…
This has been a long standing venture of mine (and many others) here.Some advanced product configurators might require in-depth views of product details. Ie: cross sections of machinery, 3d printed objects, architecture etc…
This is where “clipping planes” comes in.
Here’s a code example of the clipping planes feature using “stencil”.
I don’t know if your needs are immediate for advanced use of this example or not,
but after many arduous weeks of learning about this with help from others, I’ve been able to work out a verge 3d compatible setup for clipping planes which allows for custom object loading to be clipped.
That is not ready to share just yet, but I will as soon as it is.
The object in the linked example is generated from its code there.
Check out this codepen Ivan helped me with to refine the process of having your own object loaded…
Mind you this one is using the THREE.js library, as its original codepen was as such.
I’ve since translated a project based on this to v3d.Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2020-10-05 at 8:54 am #33814webCustomerThx for your writeup.
Problem is that “clipping planes” isnt enough for me. I need a more complex clipping. Also I don’t really need a real geometry clipping. It would be sufficent for my use, if I could apply a material to an object which “clips” all the geometry in the scene. So that this geometry would just be treated as it would be a transparent background.
2020-10-06 at 7:29 am #33870Yuri KovelenovStaff2020-10-06 at 7:57 am #33877webCustomerSadly not. My problem is that the geometry is being overlapped by other geometry. I wanted to save myself time with keep that overlay instead of cutting the geometry by hand in 3d.
2020-10-07 at 1:17 am #33924GLiFTeKCustomerI’m trying to find this solution I came across while researching clipping planes that uses material properties for exactly what you’re describing.
I’ll post when I find it.
It’s very interesting.Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2020-10-07 at 1:37 am #33925GLiFTeKCustomerSadly not. My problem is that the geometry is being overlapped by other geometry. I wanted to save myself time with keep that overlay instead of cutting the geometry by hand in 3d.
hey web, here it is..
i followed a good deal of discussion on this technique a month ago from when it was discovered, (probably a few yrs ago) and was being played with by the three.js discussion community a few years ago. some of the examples people were showing were amazing. (I’ll try to dig up some of those links too)
I haven’t really dissected the code because i found what i needed in clipping planes.
hopefully you can use this.
if you do, I’d love to see how you implement it so i can learn more about it.
Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2020-10-07 at 1:52 am #33926GLiFTeKCustomerhere are some links to where user prisoner849 was sharing his technique…
first one – In the Orb (Shaders)more advanced with particles –
Clipping Solids (SDF functions)i guess the trick is you describe within the material, the actual bounding box that either hides or shows the material.
link to that post.check out what users were doing..
cool holographic city graphicthese are extreme uses of it (some I’d definitely find useful for my GUI etc) but the concept might be able to be used to do the transparent trick you’re looking for.
EDIT:
Also here is some talk on a different method using a post processing mask pass (which I assume you use an alpha pass from the transparent object)Glad I found out about that one. Been looking for a way to mask blurring to the corners of the screen for a cinematic vignette effect.
Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2020-10-08 at 10:58 am #33984webCustomerGreat, thank you. Will have a look at that.
2020-10-23 at 3:55 am #34511GLiFTeKCustomerGreat, thank you. Will have a look at that.
Any progress in that direction?
I’m curious, as I’m thinking of it’s usefulness in certain future compositing scenarios and haven’t messed with it.
“It” being the technique I’ve posted about here.Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2020-10-23 at 7:58 am #34514webCustomerHey GlifTek,
unfortunately not. Didn’t had the time and found another way for the current project.But I will set me a reminder to have a look.
2021-04-23 at 8:54 am #40452Yuri KovelenovStaffWe have just introduced the clipping planes feature: https://www.soft8soft.com/topic/verge3d-3-7-pre5-available/#post-40451
-
AuthorPosts
- You must be logged in to reply to this topic.