Page 3 of 6

Re: Create random textures over instances

PostPosted: Wed Mar 22, 2017 9:02 am
by calus
smicha wrote:Huge wish to OTOY - please code it into Octane nodes, not LUA.

Sorry Smicha if this is not your issue but you can already have random textures on instances with Octane nodes:

Plug all textures at different value in a gradient node set to interpolation none,
then add a random node in the input texture of the gradient node,
that's it :)
(obviously this is not scanning automatically a folder, textures nodes still have to be created by hand)


Also LUA support /scripted graph support in the plugins, is coming in 3.06 or is maybe already here:
abstrax wrote:Switch from LuaJIT 5.1 to Lua 5.3
Since LuaJIT isn't developed anymore and still only uses 32bit memory management, we had to switch to "normal" Lua. The missing FFI functionality has been added via a separate FFI module that is available in Octane out-of-the-box. This will finally allow Lua script graphs to be used in Octane plugins on all platforms.

viewtopic.php?f=33&t=60014

Re: Create random textures over instances

PostPosted: Wed Mar 22, 2017 9:16 am
by smicha
calus wrote:
smicha wrote:Huge wish to OTOY - please code it into Octane nodes, not LUA.

Sorry Smicha if this is not your issue but you can already have random textures on instances with Octane nodes:

Plug all textures at different value in a gradient node set to interpolation none,
then add a random node in the input texture of the gradient node,
that's it :)
(obviously this is not scanning automatically a folder, textures nodes still have to be created by hand)


Also LUA support /scripted graph support in the plugins, is coming in 3.06 or is maybe already here:
abstrax wrote:Switch from LuaJIT 5.1 to Lua 5.3
Since LuaJIT isn't developed anymore and still only uses 32bit memory management, we had to switch to "normal" Lua. The missing FFI functionality has been added via a separate FFI module that is available in Octane out-of-the-box. This will finally allow Lua script graphs to be used in Octane plugins on all platforms.

viewtopic.php?f=33&t=60014


I am talking about a node that would replace the script I gave idea to.

Re: Create random textures over instances

PostPosted: Wed Mar 22, 2017 9:28 am
by calus
smicha wrote:I am talking about a node that would replace the script I gave idea to.

oh I get it, you want a scripted node graph with the exact same features as the script...

Re: Create random textures over instances

PostPosted: Wed Mar 22, 2017 9:29 am
by smicha
calus wrote:
smicha wrote:I am talking about a node that would replace the script I gave idea to.

oh I get it, you want a scripted node graph with the exact same features as the script...


Yes - that would work instantly when changing parameters - can you help?

Re: Create random textures over instances

PostPosted: Wed Mar 22, 2017 9:32 am
by calus
smicha wrote:Yes - that would work instantly when changing parameters - can you help?

Yes I can help, except I have no idea how to do the scanning path folder part in a scripted node...
Maybe Bepe can give us some advices here ?

Re: Create random textures over instances

PostPosted: Wed Mar 22, 2017 2:15 pm
by smicha
calus wrote:
smicha wrote:Yes - that would work instantly when changing parameters - can you help?

Yes I can help, except I have no idea how to do the scanning path folder part in a scripted node...
Maybe Bepe can give us some advices here ?



I PMed beppe. Let's see.

Re: Create random textures over instances

PostPosted: Wed Mar 22, 2017 5:34 pm
by bepeg4d
Hi guys,
sorry I'm very busy with Sketchup beta testing, about the scanning path folder part, maybe you can have a look at this other scripted graph for starting:
viewtopic.php?f=73&t=45692
if you can share a starting version of the script, I can have a look as soon as I can :)
ciao beppe

Re: Create random textures over instances

PostPosted: Thu Mar 23, 2017 3:16 am
by roeland
Yes we haven't implemented an input type for scripted graphs which can take multiple file names. Of course you can make multiple single-file inputs but I suspect that will be too cumbersome to use.

The script already fills up a node graph so with some modification it can be converted to a scripted graph. The biggest changes is removing the UI and adding input pin infos.

Here's a starting point, but I haven't converted all the settings to input pins yet:
random scatter graph.lua
(9.03 KiB) Downloaded 584 times


--
Roeland

Re: Create random textures over instances

PostPosted: Sun Mar 26, 2017 7:16 pm
by calus
roeland wrote:Here's a starting point, but I haven't converted all the settings to input pins

Thank roeland :) ,

I have added the input pins (grossly).

Also, as changing one input was randomizing all other inputs,
I have changed Randomseed to be the input seed value.

Here is the new script graph:
random scatter graph.zip
(3.16 KiB) Downloaded 644 times


and here is a test scene with the script node inside:
TextureScatterDemo.orbx
(87.95 KiB) Downloaded 614 times


octane_2017-03-26_20-41-53.jpg
Change the File List to textures path on your disk, as they can't be included in the the ORBX ...


@Smicha,
Still not in a easy usable state, but some preliminary feedback ?

_

Re: Create random textures over instances

PostPosted: Sat May 27, 2017 5:37 pm
by smicha
calus wrote:
roeland wrote:Here's a starting point, but I haven't converted all the settings to input pins

Thank roeland :) ,

I have added the input pins (grossly).

Also, as changing one input was randomizing all other inputs,
I have changed Randomseed to be the input seed value.

Here is the new script graph:
random scatter graph.zip


and here is a test scene with the script node inside:
TextureScatterDemo.orbx


octane_2017-03-26_20-41-53.jpg


@Smicha,
Still not in a easy usable state, but some preliminary feedback ?

_


Calus,

This is really awesome what you did!!! Fantastic job! Thank you so so much.

Marcus - we've asked about but has anything changed - any chances to see world coordinates for displacement to apply it to the script? Imagine random textures with working displacement :ugeek: