Announcement

Collapse
No announcement yet.

Cone shaped 3D Mask in Material?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Cone shaped 3D Mask in Material?

    I want to preface this by saying that I am not a programmer or even good at math, so please bear with me.

    My goal is to get a cone shaped 3D mask that I can manipulate inside a material, but I'm having a lot of trouble figuring out how to go about it.

    Click image for larger version

Name:	cone1.jpg
Views:	1
Size:	10.8 KB
ID:	1514735
    ‚ÄčI looked everywhere for solutions and the best I could find was to create one using distance functions: https://iquilezles.org/www/articles/...tfunctions.htm


    Click image for larger version

Name:	DistanceFieldCylindersMath.JPG
Views:	1
Size:	56.6 KB
ID:	1514736


    The capped cylinder mask seems to work perfectly fine.

    Click image for larger version

Name:	cylinder1.JPG
Views:	1
Size:	113.1 KB
ID:	1514737
    Click image for larger version

Name:	cylinder2.JPG
Views:	1
Size:	33.4 KB
ID:	1514738


    But I am having trouble getting the capped cone to work.


    Click image for larger version

Name:	cone6.jpg
Views:	1
Size:	496.8 KB
ID:	1514739
    Click image for larger version

Name:	cone3.JPG
Views:	1
Size:	47.2 KB
ID:	1514740


    As you can see it's a complete mess. I'm not sure where I am going wrong with this and it's probably something really dumb. For instance I don't really know the difference between "exact" and "bound" and what that means in this case. I would greatly appreciate some help on how to create this mask. If there are possible alternatives to this I would also love to hear them.

    Thank you!
Working...
X