octane doesnt understand RGB channel from texture ?

Forums: octane doesnt understand RGB channel from texture ?
A public forum for discussing and asking questions about OctaneVR.

octane doesnt understand RGB channel from texture ?

Postby masterzh » Tue Feb 06, 2018 8:27 am

masterzh Tue Feb 06, 2018 8:27 am
Hi everyone, as title say i am looking for very simple way to extract RGB channels from texture. "Colorizer *input* " show in the small texture preview picture correctly however in preview its ignored ? Made a video explaining the problem: https://youtu.be/qCdmD6HLmdg

Cinema4D R19

Octane 3.07

Obviously looking for a way to display this in "octane" as it works nicely in cinema4D default renderers. So far i was using "clamping" and "RGB spectrum from black to Xcolor" done 3 times however results using this are very inaccurate and i assume very wrong.

Thanks ahead for any tips !
masterzh
 
Posts: 1
Joined: Mon Jan 01, 2018 8:51 pm

Re: octane doesnt understand RGB channel from texture ?

Postby aoktar » Tue Feb 06, 2018 9:39 am

aoktar Tue Feb 06, 2018 9:39 am
Octane is using very limited amount of some C4D textures with partial support. You should go with native Octane nodes for accurate results. We have OSL nodes in 3.08 and it's perfect for what you are trying.
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: 15958
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye

Re: octane doesnt understand RGB channel from texture ?

Postby dylan.mc » Mon Apr 23, 2018 3:30 pm

dylan.mc Mon Apr 23, 2018 3:30 pm
Hey aoktar - I'm looking to achieve something very similar to masterzh, but within C4D.

The goal is to use the individual RGB channels of a texture to control the opacity of various shaders.

I've got 3.08 running, but I'm not well versed in OSL. Any chance you can point me in the direction of how to split out the RGB channels?

Cheers!
dylan.mc
Licensed Customer
Licensed Customer
 
Posts: 4
Joined: Tue Nov 15, 2016 10:37 am

Re: octane doesnt understand RGB channel from texture ?

Postby bepeg4d » Tue Apr 24, 2018 7:33 am

bepeg4d Tue Apr 24, 2018 7:33 am
Hi,
please, have a look at this other discussion with octane nodes or with OSL solution:
viewtopic.php?f=23&t=64061&p=326390&hilit=subtract+rgb+color#p326390
ciao Beppe
User avatar
bepeg4d
Octane Guru
Octane Guru
 
Posts: 9954
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy

Re: octane doesnt understand RGB channel from texture ?

Postby dylan.mc » Tue Apr 24, 2018 11:41 am

dylan.mc Tue Apr 24, 2018 11:41 am
Amazing. Thanks, bepeg4d. That OSL script works a treat.

On a side note, if you change the values in the square brackets to anything other than [0], [1] or [2] it causes C4D to crash. Not sure if that is expected behaviour with a bad script.

Cheers!

Dylan
dylan.mc
Licensed Customer
Licensed Customer
 
Posts: 4
Joined: Tue Nov 15, 2016 10:37 am

Re: octane doesnt understand RGB channel from texture ?

Postby aoktar » Tue Apr 24, 2018 1:01 pm

aoktar Tue Apr 24, 2018 1:01 pm
dylan.mc wrote:Amazing. Thanks, bepeg4d. That OSL script works a treat.

On a side note, if you change the values in the square brackets to anything other than [0], [1] or [2] it causes C4D to crash. Not sure if that is expected behaviour with a bad script.

Cheers!

Dylan

As i know that some core syntax errors could give crashes at level of osl-core. It should be avodiable by users.
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: 15958
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye

Return to OctaneVR Questions & Discussion


Who is online

Users browsing this forum: No registered users and 13 guests

Fri Apr 19, 2024 10:33 am [ UTC ]