OSL RandomBitmap

Forums: 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 viewforum.php?f=18

OSL RandomBitmap

Postby DartFrog » Wed Aug 04, 2021 4:37 am

DartFrog Wed Aug 04, 2021 4:37 am
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?
DartFrog
Licensed Customer
Licensed Customer
 
Posts: 148
Joined: Fri Oct 18, 2013 8:54 pm

Re: OSL RandomBitmap

Postby pxlntwrk » Wed Aug 04, 2021 10:21 am

pxlntwrk Wed Aug 04, 2021 10:21 am
Hi,
for random bitmap, you can use an Octane random texture node plugged to a Octane gradient node in complex mode.

Cheers
:::::::::::::::::
pxlntwrk.net
User avatar
pxlntwrk
Licensed Customer
Licensed Customer
 
Posts: 436
Joined: Sat Mar 23, 2013 2:21 pm
Location: France

Re: OSL RandomBitmap

Postby DartFrog » Wed Aug 04, 2021 11:27 am

DartFrog Wed Aug 04, 2021 11:27 am
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
DartFrog
Licensed Customer
Licensed Customer
 
Posts: 148
Joined: Fri Oct 18, 2013 8:54 pm

Re: OSL RandomBitmap

Postby pxlntwrk » Wed Aug 04, 2021 1:40 pm

pxlntwrk Wed Aug 04, 2021 1:40 pm
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
User avatar
pxlntwrk
Licensed Customer
Licensed Customer
 
Posts: 436
Joined: Sat Mar 23, 2013 2:21 pm
Location: France

Re: OSL RandomBitmap

Postby DartFrog » Wed Aug 04, 2021 6:31 pm

DartFrog Wed Aug 04, 2021 6:31 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.
DartFrog
Licensed Customer
Licensed Customer
 
Posts: 148
Joined: Fri Oct 18, 2013 8:54 pm

Re: OSL RandomBitmap

Postby pxlntwrk » Mon Sep 13, 2021 2:16 pm

pxlntwrk Mon Sep 13, 2021 2:16 pm
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 83 times
:::::::::::::::::
pxlntwrk.net
User avatar
pxlntwrk
Licensed Customer
Licensed Customer
 
Posts: 436
Joined: Sat Mar 23, 2013 2:21 pm
Location: France

Return to Autodesk 3Ds Max


Who is online

Users browsing this forum: No registered users and 12 guests

Fri Apr 19, 2024 1:29 am [ UTC ]