Overview of OSL Shaders in Octane

A forum where development builds are posted for testing by the community.
Forum rules
NOTE: The software in this forum is not %100 reliable, they are development builds and are meant for testing by experienced octane users. If you are a new octane user, we recommend to use the current stable release from the 'Commercial Product News & Releases' forum.
Post Reply
coilbook
Licensed Customer
Posts: 3032
Joined: Mon Mar 24, 2014 2:27 pm

paride4331 wrote:
coilbook wrote:can anyone make a sparkle shader like for snow? Or can otoy do it? I think it is a very necessary shader Thank you
Hi coilbook,
could flake osl to help?
viewtopic.php?f=27&t=66015
Regards
Paride
Ok I think I got it I used mix material for the base material osl flakes are inside the normal map.
By the way what is the proper flake normal orientation

and

anyway to add more sparkle? Increasing power in RGB image with osl makes also dark dots visible


? Thanks
Attachments
snow sparkle.zip
(1.64 MiB) Downloaded 303 times
flakes.jpg
Last edited by coilbook on Sat Apr 14, 2018 3:23 pm, edited 1 time in total.
ramone163
Licensed Customer
Posts: 253
Joined: Tue Aug 28, 2012 5:12 pm

Let's try to clarify things about Octane OSL. Does OSL is the universal language? Because now only 10% of all OSL that I found on the internet (also OSL form 3ds MAX 2019) work in 3ds MAX. Then what is the point? Who will rewrite all this OSL to work with Octane? OSL for c4d or Blender will not work for 3ds MAX and vice versa?
When 3ds MAX 2019 announce OSL support, they also made a lot of OSL files. What we have with OTOY? You announce OSL 1.5-2 years ago. Now we have it (but it does not work for 100%), after 2 years you still fix it. And we do not have OSL shaders from OTOY. Okay, we have Vray flakes (not made by OTOY), and we have from OTOY: osl_yellow, ed_slider, osl_mix_textures, Mandelbrot, oslCamera - are you serious? I don't really think we need OSL to change color, I can make it with Octane standard tools. If you announce powerful tool, so offer us some powerful OSL files to show what OSL shaders can do. Or we have to wait 2 years more? Or we have to wait when some programmers will write OSL shaders for us?

It isn't rather simple to present new technology, but you have to move it forward and make it better and comfortable to use.
Some examples:
1) Otoy announces 1,5 years ago Toon shader and so proud of it. What we have? Do you call this cool toon shader? Please look at Arnold 5.1 or 3ds max plugin Illustrate!. This I call real Toon Shader.
2) Otoy announces VDB support. Okay, cool. Thanks. But still, it is not so cool as has to be. Slow, bad support with Phoenix and FumeFX. We (3ds max users) still cant view our VDB with a point-cloud view, only as a box. You think this is so easy-to-use? This option has to be from the beginning. I don't really understand why you don't see that.
3)Same, announce OSL, but what we were waiting for 2 years, to be able to change the color with OSL? Show us more. We are not programmers, we are artists.

I understand that it is important to announce "COOL" things for your investors. But for us (customers), will be cool if you will complete the work.

P.S. I apologize for my english.
GPU: 980+1080+1080Ti; 3ds max;
Behance portfolio; Handmadefont.com;
SergKlyosov
Licensed Customer
Posts: 126
Joined: Wed Mar 01, 2017 9:33 am

Hi Roeland,

When you will have a chance could you please give me an answer about greyscale maps in that UDIM OSL?

Thank you
Win 10 64 | RTX 3090 | i9 9980XE | 64GB RAM
User avatar
Elvissuperstar007
Licensed Customer
Posts: 2507
Joined: Thu May 20, 2010 8:20 am
Location: Ukraine/Russia
Contact:

win 7 /64x C2Quad 6600 2.4/ Nvidia 9800 GX2 1gb 512 bit + Asus 480 GTX/ DDR2 8Gb / NVIDIA 460 GTX 2GB/2x NVIDIA 580 GTX 3GB
Page octane render " В Контакте " http://vkontakte.ru/club17913093
Rik
Licensed Customer
Posts: 423
Joined: Wed Jul 28, 2010 8:57 pm

Where is a brick osl?

Need one where you can use say n different maps for bricks and another map for mortar, plus set size for bricks and mortar gap.

Also need to be able to rotate 180, mirror horizontally and mirror vertically the brick images to minimise repetition.

Also need an example of how this would be applied.

Does such a thing exist for Octane?
J.C
Licensed Customer
Posts: 1857
Joined: Thu May 13, 2010 6:35 pm
Location: Wrocław

Latest Blender builds has a very good bevel shader at render time that makes sharp edges nicely rounded. There is an OSL script that might be used with Octane 3.08 but it fails to compile. If there is somebody that can adapt it that would be awesome.
https://pastebin.com/Z3Uk3n2d
CPU – i9 13900KF, 128GB RAM, GPU – RTX 4090
System – Windows 11
My Behance portfolio, Blender plugin FB support group
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

J.C wrote:Latest Blender builds has a very good bevel shader at render time that makes sharp edges nicely rounded. There is an OSL script that might be used with Octane 3.08 but it fails to compile. If there is somebody that can adapt it that would be awesome.
https://pastebin.com/Z3Uk3n2d
trace() will not work.

There's OSL texture manual and deep information in links
http://www.aoktar.com/octane/TEXTUREOSL1.html
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
milanm
Licensed Customer
Posts: 261
Joined: Tue Apr 30, 2013 7:23 pm

aoktar wrote:There's OSL texture manual and deep information in links
http://www.aoktar.com/octane/TEXTUREOSL1.html
That manual looks great Ahmet!

Question:

What's going on with point inputs and projection options for OSL texture in the plugin? In OctaneRender ( aka. Standalone), when we add a point input, a projection pin is created, but that doesn't happen in the plugin. Is that a plugin SDK thing? Is that going to change soon? I noticed a related question in the Blender plugin forum too. It's a serious limitation if we have to hardcode the projections ourselves.

Regards
Milan
Colorist / VFX artist / Motion Designer
macOS - Windows 7 - Cinema 4D R19.068 - GTX1070TI - GTX780
User avatar
pxlntwrk
Licensed Customer
Posts: 445
Joined: Sat Mar 23, 2013 2:21 pm
Location: France
Contact:

milanm wrote: What's going on with point inputs and projection options for OSL texture in the plugin? In OctaneRender ( aka. Standalone), when we add a point input, a projection pin is created, but that doesn't happen in the plugin. Is that a plugin SDK thing? Is that going to change soon? I noticed a related question in the Blender plugin forum too. It's a serious limitation if we have to hardcode the projections ourselves.
?
:::::::::::::::::
pxlntwrk.net
rohandalvi
Licensed Customer
Posts: 169
Joined: Tue Apr 20, 2010 7:39 am

I'm trying to build the photoshop blend modes in OSL. I have gotten a fair bit of them working but I'm stuck on the math for Overlay mode. Could someone help out?

That's the math for overlay

(Target > 0.5) * (1 - (1-2*(Target-0.5)) * (1-Blend)) + (Target <= 0.5) * ((2*Target) * Blend)

When I type (Input color < 0.5) it gives me an error saying "error: Not allowed: 'color > color'"

How exactly do I implement this.

This is where I am at the moment
blend modes.PNG
regards
Rohan
Attachments
blend modes.jpg
Post Reply

Return to “Development Build Releases”