OSL node in 3.08

Forums: OSL node in 3.08
Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderator: aoktar

OSL node in 3.08

Postby enko » Fri Dec 15, 2017 10:15 pm

enko Fri Dec 15, 2017 10:15 pm
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.
enko
Licensed Customer
Licensed Customer
 
Posts: 19
Joined: Sat Sep 28, 2013 5:39 am

Re: OSL node in 3.08

Postby aoktar » Fri Dec 15, 2017 10:35 pm

aoktar Fri Dec 15, 2017 10:35 pm
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.
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
User avatar
aoktar
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 15962
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye

Re: OSL node in 3.08

Postby enko » Fri Dec 15, 2017 11:24 pm

enko Fri Dec 15, 2017 11:24 pm
@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.
enko
Licensed Customer
Licensed Customer
 
Posts: 19
Joined: Sat Sep 28, 2013 5:39 am

Re: OSL node in 3.08

Postby aoktar » Sat Dec 16, 2017 12:01 am

aoktar Sat Dec 16, 2017 12:01 am
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.
Attachments
a1.jpg
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
User avatar
aoktar
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 15962
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye

Re: OSL node in 3.08

Postby enko » Sat Dec 16, 2017 1:59 am

enko Sat Dec 16, 2017 1:59 am
@aoktar, we're lucky to have you.
Thank you!
enko
Licensed Customer
Licensed Customer
 
Posts: 19
Joined: Sat Sep 28, 2013 5:39 am

Re: OSL node in 3.08

Postby enko » Tue Dec 19, 2017 1:05 am

enko Tue Dec 19, 2017 1:05 am
@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);

}
enko
Licensed Customer
Licensed Customer
 
Posts: 19
Joined: Sat Sep 28, 2013 5:39 am

Re: OSL node in 3.08

Postby aoktar » Tue Dec 19, 2017 1:54 am

aoktar Tue Dec 19, 2017 1:54 am
No! You can check these in OSL manual
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
User avatar
aoktar
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 15962
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye

Re: OSL node in 3.08

Postby enko » Tue Dec 19, 2017 2:30 am

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

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

https://docs.otoy.com/osl/index.html
enko
Licensed Customer
Licensed Customer
 
Posts: 19
Joined: Sat Sep 28, 2013 5:39 am

Return to Maxon Cinema 4D


Who is online

Users browsing this forum: No registered users and 19 guests

Fri Apr 19, 2024 11:38 pm [ UTC ]