OSL node in 3.08

Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderators: ChrisHekman, aoktar

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

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.
User avatar
aoktar
Octane Plugin Developer
Posts: 16063
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

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
enko
Licensed Customer
Posts: 19
Joined: Sat Sep 28, 2013 5:39 am

@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.
User avatar
aoktar
Octane Plugin Developer
Posts: 16063
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

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
enko
Licensed Customer
Posts: 19
Joined: Sat Sep 28, 2013 5:39 am

@aoktar, we're lucky to have you.
Thank you!
enko
Licensed Customer
Posts: 19
Joined: Sat Sep 28, 2013 5:39 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);

}
User avatar
aoktar
Octane Plugin Developer
Posts: 16063
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

No! You can check these in OSL manual
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
enko
Licensed Customer
Posts: 19
Joined: Sat Sep 28, 2013 5:39 am

Thank you @aoktar.

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

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

Return to “Maxon Cinema 4D”