Random Texture Transforms over Instances

Forums: Random Texture Transforms over Instances
Forum for OctaneRender Lua scripting examples, discussion and support.

Re: Random Texture Transforms over Instances

Postby abstrax » Mon Aug 04, 2014 9:49 pm

abstrax Mon Aug 04, 2014 9:49 pm
One more thing: I hope to sneak in an additional non-interpolation mode to the gradient texture node, which would also help with this problem: viewtopic.php?f=9&t=41451
In theory there is no difference between theory and practice. In practice there is. - Yogi Berra
User avatar
abstrax
OctaneRender Team
OctaneRender Team
 
Posts: 5483
Joined: Tue May 18, 2010 11:01 am
Location: Auckland, New Zealand

Re: Random Texture Transforms over Instances

Postby smicha » Mon Aug 04, 2014 9:51 pm

smicha Mon Aug 04, 2014 9:51 pm
Great. Thank you for your time and effort. This is all I need (except of more speed at PMC :))
3090, Titan, Quadro, Xeon Scalable Supermicro, 768GB RAM; Sketchup Pro, Classical Architecture.
Custom alloy powder coated laser cut cases, Autodesk metal-sheet 3D modelling.
build-log http://render.otoy.com/forum/viewtopic.php?f=9&t=42540
User avatar
smicha
Licensed Customer
Licensed Customer
 
Posts: 3151
Joined: Wed Sep 21, 2011 4:13 pm
Location: Warsaw, Poland

Re: Random Texture Transforms over Instances

Postby smicha » Mon Aug 04, 2014 10:01 pm

smicha Mon Aug 04, 2014 10:01 pm
abstrax wrote:One more thing: I hope to sneak in an additional non-interpolation mode to the gradient texture node, which would also help with this problem: viewtopic.php?f=9&t=41451


To solve the problem it is just enough to create plain colored textures/images and use the LUA script :geek:
3090, Titan, Quadro, Xeon Scalable Supermicro, 768GB RAM; Sketchup Pro, Classical Architecture.
Custom alloy powder coated laser cut cases, Autodesk metal-sheet 3D modelling.
build-log http://render.otoy.com/forum/viewtopic.php?f=9&t=42540
User avatar
smicha
Licensed Customer
Licensed Customer
 
Posts: 3151
Joined: Wed Sep 21, 2011 4:13 pm
Location: Warsaw, Poland

Re: Random Texture Transforms over Instances

Postby abstrax » Mon Aug 04, 2014 10:08 pm

abstrax Mon Aug 04, 2014 10:08 pm
smicha wrote:
abstrax wrote:One more thing: I hope to sneak in an additional non-interpolation mode to the gradient texture node, which would also help with this problem: viewtopic.php?f=9&t=41451


To solve the problem it is just enough to create plain colored textures/images and use the LUA script :geek:

You can just use a gradient texture node directly with some colors, but how I understand it, he wants to have only 2 colours (no interpolation), which you can't do right now. Providing a non-interpolation mode (basically a step function), you could achieve this though. It would also be useful in your case where you may not want interpolation between two consecutive textures.
In theory there is no difference between theory and practice. In practice there is. - Yogi Berra
User avatar
abstrax
OctaneRender Team
OctaneRender Team
 
Posts: 5483
Joined: Tue May 18, 2010 11:01 am
Location: Auckland, New Zealand

Re: Random Texture Transforms over Instances

Postby smicha » Mon Aug 04, 2014 10:13 pm

smicha Mon Aug 04, 2014 10:13 pm
Will you add the step function option to the code? (just asking, it is not urgent now)
3090, Titan, Quadro, Xeon Scalable Supermicro, 768GB RAM; Sketchup Pro, Classical Architecture.
Custom alloy powder coated laser cut cases, Autodesk metal-sheet 3D modelling.
build-log http://render.otoy.com/forum/viewtopic.php?f=9&t=42540
User avatar
smicha
Licensed Customer
Licensed Customer
 
Posts: 3151
Joined: Wed Sep 21, 2011 4:13 pm
Location: Warsaw, Poland

Re: Random Texture Transforms over Instances

Postby abstrax » Mon Aug 04, 2014 10:19 pm

abstrax Mon Aug 04, 2014 10:19 pm
smicha wrote:Will you add the step function option to the code? (just asking, it is not urgent now)

It needs to be added to the gradient texture node of Octane. I think it would be useful and not too hard to implement - when we get to it.
In theory there is no difference between theory and practice. In practice there is. - Yogi Berra
User avatar
abstrax
OctaneRender Team
OctaneRender Team
 
Posts: 5483
Joined: Tue May 18, 2010 11:01 am
Location: Auckland, New Zealand

Re: Random Texture Transforms over Instances

Postby smicha » Mon Aug 04, 2014 10:21 pm

smicha Mon Aug 04, 2014 10:21 pm
Marcus,

One more question/wish:
random flip vertical, flip horizontal - are these possible? I think it is all about negative scaling, isn't it?
3090, Titan, Quadro, Xeon Scalable Supermicro, 768GB RAM; Sketchup Pro, Classical Architecture.
Custom alloy powder coated laser cut cases, Autodesk metal-sheet 3D modelling.
build-log http://render.otoy.com/forum/viewtopic.php?f=9&t=42540
User avatar
smicha
Licensed Customer
Licensed Customer
 
Posts: 3151
Joined: Wed Sep 21, 2011 4:13 pm
Location: Warsaw, Poland

Re: Random Texture Transforms over Instances

Postby abstrax » Mon Aug 04, 2014 10:25 pm

abstrax Mon Aug 04, 2014 10:25 pm
smicha wrote:Marcus,

One more question/wish:
random flip vertical, flip horizontal - are these possible?

Yup, should be possible via a negative UV scale.
In theory there is no difference between theory and practice. In practice there is. - Yogi Berra
User avatar
abstrax
OctaneRender Team
OctaneRender Team
 
Posts: 5483
Joined: Tue May 18, 2010 11:01 am
Location: Auckland, New Zealand

Re: Random Texture Transforms over Instances

Postby smicha » Fri Apr 17, 2015 6:53 am

smicha Fri Apr 17, 2015 6:53 am
Marcus,

Could you please add the new feature to the script - selecting material files instead of a folder?
3090, Titan, Quadro, Xeon Scalable Supermicro, 768GB RAM; Sketchup Pro, Classical Architecture.
Custom alloy powder coated laser cut cases, Autodesk metal-sheet 3D modelling.
build-log http://render.otoy.com/forum/viewtopic.php?f=9&t=42540
User avatar
smicha
Licensed Customer
Licensed Customer
 
Posts: 3151
Joined: Wed Sep 21, 2011 4:13 pm
Location: Warsaw, Poland

Re: Random Texture Transforms over Instances

Postby smicha » Wed Dec 30, 2015 7:13 am

smicha Wed Dec 30, 2015 7:13 am
smicha wrote:Marcus,

Could you please add the new feature to the script - selecting material files instead of a folder?



Any help with this ?
3090, Titan, Quadro, Xeon Scalable Supermicro, 768GB RAM; Sketchup Pro, Classical Architecture.
Custom alloy powder coated laser cut cases, Autodesk metal-sheet 3D modelling.
build-log http://render.otoy.com/forum/viewtopic.php?f=9&t=42540
User avatar
smicha
Licensed Customer
Licensed Customer
 
Posts: 3151
Joined: Wed Sep 21, 2011 4:13 pm
Location: Warsaw, Poland
PreviousNext

Return to Lua Scripting


Who is online

Users browsing this forum: No registered users and 5 guests

Thu Mar 28, 2024 2:45 pm [ UTC ]