Color To Float and Float To Color Utility.

Forums: Color To Float and Float To Color Utility.
Sub forum for feature requests etc

Moderator: juanjgon

Color To Float and Float To Color Utility.

Postby fantome » Tue Nov 08, 2016 12:38 pm

fantome Tue Nov 08, 2016 12:38 pm
Hi Guys,

Maybe i have miss a strategic node, but i can't separate RGB output of a node and access each channel individually to remap them.

So having a
- Color to Float
- Float to Color

Tool Utility node would be nice.

Cheers
Emmanuel
User avatar
fantome
Licensed Customer
Licensed Customer
 
Posts: 224
Joined: Wed Dec 16, 2015 3:38 pm

Re: Color To Float and Float To Color Utility.

Postby juanjgon » Tue Nov 08, 2016 4:30 pm

juanjgon Tue Nov 08, 2016 4:30 pm
Yes, I agree that more math tools nodes are needed. I suppose that with the future OSL support, add these nodes should be easy.

Some workarounds are possible now, like for example use the texture multiply and mix nodes to extract components and later mix them again, but anyway could be better have real math nodes.

Thanks,
-Juanjo
Computer Graphics Software Developer
Octane plugin development and support: LightWave and Houdini
User avatar
juanjgon
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 8186
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Re: Color To Float and Float To Color Utility.

Postby fantome » Tue Nov 08, 2016 4:50 pm

fantome Tue Nov 08, 2016 4:50 pm
Thanks for your answer Juanjo.

So basically with the support of OSL we will get :
- native support of geometry attribute
- more math tools
That will make me a happy camper !

The release of 3.1 is still plan for 2016 ? Or are there any delay ?

Cheers
E
User avatar
fantome
Licensed Customer
Licensed Customer
 
Posts: 224
Joined: Wed Dec 16, 2015 3:38 pm

Re: Color To Float and Float To Color Utility.

Postby juanjgon » Tue Nov 08, 2016 4:52 pm

juanjgon Tue Nov 08, 2016 4:52 pm
I am not sure yet, sorry, but I suppose that we should get some news about new features soon, now that the 3.0 version seems stable enough.

Thanks,
-Juanjo
Computer Graphics Software Developer
Octane plugin development and support: LightWave and Houdini
User avatar
juanjgon
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 8186
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Re: Color To Float and Float To Color Utility.

Postby fantome » Tue Nov 08, 2016 4:54 pm

fantome Tue Nov 08, 2016 4:54 pm
Thanks again for your answer. :)
User avatar
fantome
Licensed Customer
Licensed Customer
 
Posts: 224
Joined: Wed Dec 16, 2015 3:38 pm

Re: Color To Float and Float To Color Utility.

Postby fantome » Mon Oct 15, 2018 2:15 pm

fantome Mon Oct 15, 2018 2:15 pm
I would like to know if someone has find a good way to have :
- RGB to Float
- Float to Color
With the OSL tools or an other tricks ?

I have play with OSL texture a little but it look that you must output a color.

Code: Select all
shader rgbToFloat(
    color A = 0,
    output color B = 0)
{
    B = luminance(A);
}

This one compile

Code: Select all
shader rgbToFloat(
    color A = 0,
    output float B = 0)
{
    B = luminance(A);
}

This one return me an error

I would like to plug a falloff in to the power parameter of a texture emission node, but i can't get it working.
When i plug it in the slot it does nothing. It looks that there are no auto conversion like in mantra ( luminance(RGB) ).
Octane simply doesn't understand my RGB input.

For the moment i plug it in the texture slot , but i would love to handle color and power with the respective correct slots.

If you have any idea that would be great !
User avatar
fantome
Licensed Customer
Licensed Customer
 
Posts: 224
Joined: Wed Dec 16, 2015 3:38 pm

Re: Color To Float and Float To Color Utility.

Postby juanjgon » Mon Oct 15, 2018 3:24 pm

juanjgon Mon Oct 15, 2018 3:24 pm
The Octane OSL nodes inside Houdini implemented as VOP nodes work is not finished yet, so perhaps this is why they don't work on your end. Now that the Houdini 17 plugin and Octane 4.00 builds have been released, finish all the OSL stuff in this plugin is a top priority.

Thanks,
-Juanjo
Computer Graphics Software Developer
Octane plugin development and support: LightWave and Houdini
User avatar
juanjgon
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 8186
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Re: Color To Float and Float To Color Utility.

Postby fantome » Mon Oct 15, 2018 4:01 pm

fantome Mon Oct 15, 2018 4:01 pm
Thanks a lot for your very fast answer Juanjo !

So for being sure i have not omit anything, cause i'm quite new to octane.
At the moment you can't convert an RGB value to a Float Value, and this look to be a octane standalone restriction not a houdini plugin problem ?

The only thing i will be able to plug into the power slot of a texture emission node inside houdini is a float value node ?

Thanks again for your time.
Cheers
E
User avatar
fantome
Licensed Customer
Licensed Customer
 
Posts: 224
Joined: Wed Dec 16, 2015 3:38 pm

Re: Color To Float and Float To Color Utility.

Postby juanjgon » Mon Oct 15, 2018 4:02 pm

juanjgon Mon Oct 15, 2018 4:02 pm
Yes, I think that Octane doesn't have these kinds of native nodes even in the Standalone, but someone could correct me if I'm wrong ...

Thanks,
-Juanjo
Computer Graphics Software Developer
Octane plugin development and support: LightWave and Houdini
User avatar
juanjgon
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 8186
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Re: Color To Float and Float To Color Utility.

Postby roeland » Mon Oct 15, 2018 8:41 pm

roeland Mon Oct 15, 2018 8:41 pm
That’s correct, you can’t send a color output to a float input pin, Octane expects a constant value for these pins. So probably you have to use a multiply node with your color and power textures.

There are alternatives for some use cases. An image texture node has a power input which accepts a texture. To create things like spotlights and projectors the usual way is to connect some kind of falloff texture to the distribution input of the emission node.
User avatar
roeland
OctaneRender Team
OctaneRender Team
 
Posts: 1769
Joined: Wed Mar 09, 2011 10:09 pm
Next

Return to User Requests


Who is online

Users browsing this forum: No registered users and 1 guest

Thu Apr 22, 2021 11:08 am [ UTC ]