OSL RandomBitmap

3D Studio Max Plugin (Export Script Plugins developed by [gk] and KilaD; Integrated Plugin developed by Karba)
Forum rules
Please post only in English in this subforum. For alternate language discussion please go here http://render.otoy.com/forum/viewforum.php?f=18
Post Reply
DartFrog
Licensed Customer
Posts: 149
Joined: Fri Oct 18, 2013 8:54 pm

I'm on 2020 1.5 / 10.20 for 3dsmax

I've been messing with the existing OSL shaders that come with max 2021. Some of the ones I want to work natively with Octane just error out. I'm trying to get a functioning Random Bitmap placer (like a decal placer that rotates and scales as it populates). I can get the 3dsmax one to work in the bitmap slot but its resolution is entirely dependent on the values you set in the RGB image since it's basically just baking it. Octane has a native OSL texture node but most things I've tried don't work with it. I commented out some code that was giving the error but I can't get RandomBitmap.osl to actually do anything I want once its open. Is there a decent library of OSL shaders out there for Octane?
User avatar
pxlntwrk
Licensed Customer
Posts: 445
Joined: Sat Mar 23, 2013 2:21 pm
Location: France
Contact:

Hi,
for random bitmap, you can use an Octane random texture node plugged to a Octane gradient node in complex mode.

Cheers
:::::::::::::::::
pxlntwrk.net
DartFrog
Licensed Customer
Posts: 149
Joined: Fri Oct 18, 2013 8:54 pm

I set it up like the attached image. Is this right? I want the rotation and position to be sort of randomized.
Attachments
Gradient.jpg
User avatar
pxlntwrk
Licensed Customer
Posts: 445
Joined: Sat Mar 23, 2013 2:21 pm
Location: France
Contact:

re,

for rotation and transform plugg the texture to an UVW transform node and plugg it to the gradient next slot and redo for more randomness...
Sorry I'm not in front of screen, I will post an example , but it will after summer break.

Cheers
:::::::::::::::::
pxlntwrk.net
DartFrog
Licensed Customer
Posts: 149
Joined: Fri Oct 18, 2013 8:54 pm

Okay - I'm still messing with it but I don't know how to randomize the UV placement. Whenever you get back, see if you can set something up.
User avatar
pxlntwrk
Licensed Customer
Posts: 445
Joined: Sat Mar 23, 2013 2:21 pm
Location: France
Contact:

Hi,
sorry for the latency, I struggled to recover from vacation :)
Here is an example of how to randomize textures and rotation over clone scatter.
Image

Image

you can use the same method by adding translation and / or scale values in the values of the UVW-Transform node, and also add or remove transformation steps by changing the number of variations of the gradient.

I attach the Orbx file in case

Cheers
Attachments
Random_tex_Mat_Test.orbx
(188.39 KiB) Downloaded 104 times
:::::::::::::::::
pxlntwrk.net
Post Reply

Return to “Autodesk 3Ds Max”