Announcement

Collapse
No announcement yet.

Scatter texture?

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

  • Scatter texture?

    Lets say I have a procedural radial gradient ramp, that is set not to tile. I apply this to a plane. The radial shape is displayed on said plane once as I have set it not to tile.

    Now, what I would like to do is take that procedural radial shape and repeat it across x area at different sizes and opacity's in a procedural manner. Is this possible in 3ds Max? Script perhaps?

    Click image for larger version

Name:	Gradient.jpg
Views:	552
Size:	55.5 KB
ID:	1045525

    Click image for larger version

Name:	Gradient_Scat.jpg
Views:	629
Size:	568.6 KB
ID:	1045524

  • #2
    Try the OSL shader.

    https://github.com/ADN-DevTech/3dsMax-OSL-Shaders
    https://www.youtube.com/watch?v=bqS9ynW-TdU
    https://www.youtube.com/watch?v=b2k2eKCGeyg

    OakCorp Japan - Yuji Yamauchi
    oakcorp.net
    v-ray.jp

    Comment


    • #3
      Yeah, OSL I thought as much.

      Time to get stuck in...

      Comment


      • #4
        So I've spent a fair few hours looking into OSL. Very interesting.

        What I'm trying to do essentially is create a procedural water ripple normal/bump map (that I can animate as a goal eventually), but I'm struggling to blend in the randomized bitmaps over one another. The first thing that comes to mind is to blend one instance of the bitmap via add over the base bitmap, but I'm not sure how to do this in OSL.

        Any ideas?

        Click image for larger version  Name:	Ripples.jpg Views:	1 Size:	303.9 KB ID:	1045608

        Click image for larger version  Name:	Ripples_random.jpg Views:	1 Size:	445.0 KB ID:	1045609
        Click image for larger version

Name:	Ripples_Material.JPG
Views:	605
Size:	71.6 KB
ID:	1045612
        Last edited by DanSHP; 15-08-2019, 01:55 AM.

        Comment


        • #5
          Is the input bitmap a PNG? Because in the OSL sample about randomizing bitmaps, it's a PNG with alpha channel. My bet is you need to have an alpha channeled bitmap.
          A.

          ---------------------
          www.digitaltwins.be

          Comment


          • #6
            Originally posted by Vizioen View Post
            Is the input bitmap a PNG? Because in the OSL sample about randomizing bitmaps, it's a PNG with alpha channel. My bet is you need to have an alpha channeled bitmap.
            Good shout!

            Comment


            • #7
              Very cool. Good start.

              Click image for larger version

Name:	OSL_Ripples.jpg
Views:	457
Size:	232.6 KB
ID:	1045658
              Last edited by DanSHP; 15-08-2019, 07:01 AM.

              Comment


              • #8
                Cool, can you use an animated texture?
                A.

                ---------------------
                www.digitaltwins.be

                Comment


                • #9
                  Originally posted by Vizioen View Post
                  Cool, can you use an animated texture?
                  I've had a look.

                  I've been trying to load in a set of png's via the max bitmap loader node in slate (as a sequence), but I can't seen to connect this to the OSL randomizer node and get an output to my material bump slot. It just doesn't load in the Randomizer at all loading this way.

                  The only way i can load a bitmap into the randomizer node is to click on the file name radio dots and load it that way (filename00 etc). The problem with doing it that is that you cannot load in a sequence.

                  In the video he slots a bitmap node into the randmoizer input slot, but this this doesn't seem to work for me. I'm clearly missing something here.

                  Click image for larger version  Name:	OSL_Text_test_01.JPG Views:	1 Size:	410.1 KB ID:	1045662
                  Click image for larger version  Name:	OSL_Text_test_02.JPG Views:	1 Size:	721.7 KB ID:	1045663

                  Comment


                  • #10
                    I wonder can you use a gif with alpha channel? I don't have access to max 2019 or above so I can't test it.
                    A.

                    ---------------------
                    www.digitaltwins.be

                    Comment


                    • #11
                      I'll have another look tomorrow. In the mean time attached is the max 2019 file if anyone else wants a look!
                      Attached Files

                      Comment


                      • #12
                        Manged to achieve the effect I was looking for using a Blur Studio plugin called Rain. Super easy.

                        https://youtu.be/TFa3VcRWi6w
                        Last edited by DanSHP; 16-08-2019, 06:29 AM.

                        Comment


                        • #13
                          Should've used a zillion particle RealFlow sim!
                          https://www.behance.net/bartgelin

                          Comment

                          Working...
                          X