Isotropix Forums

Non Tiling Texture Script for large surfaces

Clarisse Scripting related topics

Non Tiling Texture Script for large surfaces

Unread postby redfox66 » Mon May 11, 2020 9:57 pm

Hi,

I have created a simple script to tile textures over large surfaces. The script creates a basic shader network that gets plugged into any image map file(s) you have selected. The tiling is controlled by a basic OSL texture. This allows for the scaling of the control texture and the break up of the pattern. This will need to be adjusted depending on the UV scale of the repeating texture. Ideally, it should be adjusted to be roughly the same size as the tiling of the texture you want to remove the repeating pattern from.

I've attached a couple of examples below.

Hope it comes in useful. Cheers!

nonTilingTexureScript2.jpg


nonTilingTexureScript1.jpg
Attachments
createNonTilingTexture.zip
Non Tiling Texture Script
(9.69 KiB) Downloaded 189 times
redfox66
 
Posts: 8
Joined: Fri Nov 23, 2018 12:51 pm

Re: Non Tiling Texture Script for large surfaces

Unread postby dboude » Tue May 12, 2020 4:10 pm

Works like a charm ! Thanks for sharing !
Démian
Isotropix
Technical Artist - Clarisse Specialist
User avatar
dboude
 
Posts: 1571
Joined: Mon Jul 03, 2017 10:51 am

Re: Non Tiling Texture Script for large surfaces

Unread postby dboude » Tue May 12, 2020 4:39 pm

One thing, is it possible to add an offset on the cell noise ? The projection does not match the planar projection of Clarisse :

2020-05-12 17_36_53-tmp.project_ - Isotropix Clarisse iFX 4.0 SP6 x64.png


By adding a quantize node after the cell noise set to 0.25 the rotation is each 90° like in my snapshot ;)

Cheers
Démian
Isotropix
Technical Artist - Clarisse Specialist
User avatar
dboude
 
Posts: 1571
Joined: Mon Jul 03, 2017 10:51 am

Re: Non Tiling Texture Script for large surfaces

Unread postby redfox66 » Tue May 12, 2020 5:57 pm

HI Démian,

Thanks for the feedback - nice ideas.
I have updated the script with a quantize node as suggested and also added an offset control on the OSL texture. The Quantize node is disabled initially when the nodes are created.

Cheers.

quantizeTiling.jpg


createNonTilingTextureQuantize.zip
(10.78 KiB) Downloaded 148 times
redfox66
 
Posts: 8
Joined: Fri Nov 23, 2018 12:51 pm

Re: Non Tiling Texture Script for large surfaces

Unread postby dboude » Tue May 12, 2020 7:52 pm

Excellent !

Thanks for sharing again ;)
Démian
Isotropix
Technical Artist - Clarisse Specialist
User avatar
dboude
 
Posts: 1571
Joined: Mon Jul 03, 2017 10:51 am

Re: Non Tiling Texture Script for large surfaces

Unread postby dboude » Wed May 13, 2020 2:35 pm

Hi,

You can subtract 0.125 after the offset in the osl code to perfect match the world projection.

Code: Select all
 Cell = noise("cell", P / CellSize + noise("usimplex", P * Distort, 1.0) + Offset - 0.125);
     


2020-05-12 17_36_53-tmp.project_ - Isotropix Clarisse iFX 4.0 SP6 x64.png


Cheers ;)
Démian
Isotropix
Technical Artist - Clarisse Specialist
User avatar
dboude
 
Posts: 1571
Joined: Mon Jul 03, 2017 10:51 am

Re: Non Tiling Texture Script for large surfaces

Unread postby redfox66 » Wed May 13, 2020 3:43 pm

Hi Démian,

I've updated the script with your suggestion.
I have also added the ability to choose Object or World space, plus it also works with a grid node for testing purposes.
You can choose Object or World position in the shader output setting.

Cheers.

createNonTilingTextureQuantize_v2.zip
(10.92 KiB) Downloaded 167 times
redfox66
 
Posts: 8
Joined: Fri Nov 23, 2018 12:51 pm

Re: Non Tiling Texture Script for large surfaces

Unread postby purchasemediamonks » Thu May 14, 2020 12:39 pm

Really nice script! Thanks!
purchasemediamonks
 
Posts: 28
Joined: Wed Jan 25, 2017 10:03 am

Re: Non Tiling Texture Script for large surfaces

Unread postby Alvaro » Sat May 16, 2020 7:49 am

Love it!
Alvaro
 
Posts: 60
Joined: Fri Oct 21, 2016 6:51 pm

Re: Non Tiling Texture Script for large surfaces

Unread postby jeroendesmet » Sat May 16, 2020 11:41 am

this is brilliant. Thanks for sharing!
jeroendesmet
 
Posts: 17
Joined: Sat Nov 15, 2014 9:08 pm

Next

Return to Scripting