Page 1 of 1

OSL node in 3.08

Posted: Fri Dec 15, 2017 10:15 pm
by enko
I am having a bit of fun with OSL node in 3.08 Test 6

A question:

What is the intended workflow? Is it intended to be edited/developed in the C4D editor? Or is this mainly just copy paste the code from elsewhere once its stable?

The reason I am asking is whenever I make a mistake - it takes down C4D. Is this how its supposed to work?

Amazing release btw. Loving it.
Best.

Re: OSL node in 3.08

Posted: Fri Dec 15, 2017 10:35 pm
by aoktar
It's intended to workin in editbox of osl nodes or editor. It's crashing sometimes because of some missing parts on ui controls for parameters or bug in plugin. Also there's some things that be avoided because of implementation of osl in octane.
For example using "time" parameter or using of other generalised parameters. I've fixed some issues on osl parts and i'm waiting new test sdk. Atm you can check your codes in standalone, because it's more stable or you can understand what's causing crashes with less troubles. Btw congratz for that you're using it.

Re: OSL node in 3.08

Posted: Fri Dec 15, 2017 11:24 pm
by enko
@aoktar

I see. Its very intuitive and easy to use overall. And the examples are great too.

Other things:
Sometimes it doesn't sync parameters in node to ones in code definition (maybe it something specific to how I am using it).
Plugging incompatible nodes to say input Color parameter - will always crash it.

It would be awesome if this is all one needed to code up an OSL storm in C4D. So exciting.

Re: OSL node in 3.08

Posted: Sat Dec 16, 2017 12:01 am
by aoktar
enko wrote:@aoktar

I see. Its very intuitive and easy to use overall. And the examples are great too.

Other things:
Sometimes it doesn't sync parameters in node to ones in code definition (maybe it something specific to how I am using it).
Plugging incompatible nodes to say input Color parameter - will always crash it.

It would be awesome if this is all one needed to code up an OSL storm in C4D. So exciting.
I'm fixing issues like you said that for sync. issues or missing types, etc... Here's a sample for writing a "layer" node. I'll publish new versions after weekend.

Re: OSL node in 3.08

Posted: Sat Dec 16, 2017 1:59 am
by enko
@aoktar, we're lucky to have you.
Thank you!

Re: OSL node in 3.08

Posted: Tue Dec 19, 2017 1:05 am
by enko
@aoktar,

sorry if this is stupid, but are surfaces and closures currently supported?

I cannot get this to work:

Code: Select all

#include "stdosl.h"

surface mirror( output closure color c = 0 ){

	c = reflection(Ng);

}

Re: OSL node in 3.08

Posted: Tue Dec 19, 2017 1:54 am
by aoktar
No! You can check these in OSL manual

Re: OSL node in 3.08

Posted: Tue Dec 19, 2017 2:30 am
by enko
Thank you @aoktar.

For anyone reading this in the future, manual is here:

https://docs.otoy.com/osl/index.html