Announcement

Collapse
No announcement yet.

BoxMask-3D Rotation Question

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

    BoxMask-3D Rotation Question

    Hi,

    I have been playing around with the BoxMask-3D node in the material editor but cant seem to figure out what I am doing wrong when trying to rotate at on all 3 axis.

    What I am trying to do is have a cube object that "cuts" into the geometery of another object. Hopefully these images will help explain...
    Click image for larger version

Name:	BoxMask01.jpg
Views:	1
Size:	112.5 KB
ID:	1196508
    Click image for larger version

Name:	BoxMask02.jpg
Views:	1
Size:	113.7 KB
ID:	1196509
    Click image for larger version

Name:	BoxMask03.jpg
Views:	1
Size:	121.0 KB
ID:	1196510
    Hopefully this shows the idea and the problem I am running into. I have a feeling that its todo with either the way I am getting the rotation from the object (through the param collection/blueprint) or the way I am adding the RotateAboutAxis results.

    BoxMask-3d Material setup...
    Click image for larger version

Name:	Material_Setup.jpg
Views:	1
Size:	419.1 KB
ID:	1196511

    Parameter Collection Setup...
    Click image for larger version

Name:	MaterialParamSetup.jpg
Views:	1
Size:	258.4 KB
ID:	1196512

    Sorry for all the images, but due to my lack of knowledge thought it best to give as much info as possible.

    Thanks for taking the time to look any advice or help would be much appreciated!!


    I used this video to get an idea of how it Mask3d works...
    https://www.youtube.com/watch?v=CkEueafOvFg
    Looked at this thread (and another I can't find now sadly) but never managed to get it to work with 3 axis...
    https://forums.unrealengine.com/show...x-Mask-3D-Node

    #2
    Rotate About Axis is the wrong operation to use for that. You would want to transform the positions using the transform position node and go from world to local I believe. And then you need to specify the axes themselves by getting them from the BP.
    Ryan Brucks
    Principal Technical Artist, Epic Games

    Comment


      #3
      Hi Ryan, Thanks very much for taking the time to reply, I know you will be very busy so I really appreciate it.

      Sadly I am new to this I managed to get what I had above by watching a few tutorials, looking at some posts and then basically trial and error, which probably explains why it was the wrong approach. I really am not sure how to use the transform position node or how to link everything together. I understand that the boxmask-3d has inputs for the pivot location (input B), Size of the Cube/box (Bounds) and hardness of edges (Edge falloff) but I don't fully understand what Input A does and how to manipulate it correctly.

      I of-course realise you will not have the time to talk me through this step by step but if you happen to have any links to websites (videos/articles,etc) that might allow me to learn more about Boxmask-3d or any other relevant info, that would be fantastic!

      Comment


        #4
        Dear CarvedPixel,

        Did you have any success with this? I'm trying to achieve the same effect and would appreciate any pointers!
        Michael Wentworth-Bell
        Espire 1: VR Operative: Espire1.com
        Melbourne, Australia

        Comment


          #5
          Hi Michael,

          I ended up figuring it out though lots of trial and error, took me days, lol and I am definitely not a programmer, so my way is probably not the best way at all. Also I did this so long ago that I am struggling to remember all the reasons for what I ended up doing but I remember that the order of the rotations had to be a particular way to get it to work correctly. I am 100% sure what Ryan said would be better but here is a screengrab of what I did anyway...


          Click image for larger version

Name:	Rotations_Blueprint.jpg
Views:	1
Size:	155.9 KB
ID:	1126238

          This goes into A of the BoxMask3D.

          Comment


            #6
            CarvedPixel, huge thank-you for sharing your solution on this! Just revisited this after a few months, did a google search and found your response. Much appreciated, works like a charm! Sure there's a better way but this is working great for now. Thankyou for posting back, cheers!
            Michael Wentworth-Bell
            Espire 1: VR Operative: Espire1.com
            Melbourne, Australia

            Comment


              #7
              Your very welcome, good luck with your VR project looks good!

              Comment


                #8
                4.22
                this was my solution, now ill be trying with multiple boxes

                Comment


                  #9
                  Multiple box solution:

                  Comment

                  Working...
                  X