Random Tiles

General discussion about Indigo Materials - material requests, material developement, feedback, etc..
User avatar
bubs
2nd Place Winner
Posts: 620
Joined: Fri Jul 22, 2011 8:46 pm
Location: UK

Random Tiles

Post by bubs » Wed Jun 04, 2014 3:52 am

Was just wondering... Ono's material http://www.indigorenderer.com/materials/materials/1182 which I copied the ISL from to use for random floor tiles http://www.indigorenderer.com/materials/materials/1222 - Can the ISL gurus change this code to offset the tiles by a certain amount, rather than just a regular grid? For example if the tiles could be offset by 1/2 a tile we could use this in conjunction with individual hi-res textures to create non-repeating brick walls, timber floor boards etc... This would work a bit like (I assume) the 'mighty tiles' plugin for 3ds max does. Just wondering because for us ArchViz'ers this would be pretty awesome...

User avatar
OnoSendai
Developer
Posts: 6241
Joined: Sat May 20, 2006 6:16 pm
Location: Wellington, NZ
Contact:

Re: Random Tiles

Post by OnoSendai » Wed Jun 04, 2014 5:40 am

Yup, it's very easy to offset by half a tile.

User avatar
bubs
2nd Place Winner
Posts: 620
Joined: Fri Jul 22, 2011 8:46 pm
Location: UK

Re: Random Tiles

Post by bubs » Wed Jun 04, 2014 7:50 am

I think this is potentially pretty exciting... At the minute SketchUp users, such as myself, are stuck with having to make huge texture images in an attempt to avoid visible repetition. Brick in pparticular is a killer on any large building...f, it's not too much hassle and you get a minute to post the code, I'd be happy to have a play and post any useful results.

User avatar
OnoSendai
Developer
Posts: 6241
Joined: Sat May 20, 2006 6:16 pm
Location: Wellington, NZ
Contact:

Re: Random Tiles

Post by OnoSendai » Wed Jun 04, 2014 8:11 am

Here yo go:
Attachments
Random Parquet with offset.pigm
(99.7 KiB) Downloaded 330 times

User avatar
bubs
2nd Place Winner
Posts: 620
Joined: Fri Jul 22, 2011 8:46 pm
Location: UK

Re: Random Tiles

Post by bubs » Wed Jun 04, 2014 9:50 am

Thanks! :D

User avatar
bubs
2nd Place Winner
Posts: 620
Joined: Fri Jul 22, 2011 8:46 pm
Location: UK

Re: Random Tiles

Post by bubs » Wed Jun 04, 2014 9:58 pm

Right... I'm out of my depth here... :oops: I'm afraid I just don't know ISL at all...

I've managed to get the diffuse sort of working with 6 different maps, although some of the images are stretched / distorted for some reason... with non square tiles, we would want to just have the mirror on x & y and no rotation.

Also it would fantastic if the same sort of code could be used to link each randomly selected diffuse map to it's corresponding bump / exponent etc.

If anyone who actually knows what they're doing wants to have a go at this I think it has great potential. I've attached below individual diffuse and bump / exponents for anyone who fancies a crack at it...
Attachments
test.jpg
Brick01.jpg
Brick02.jpg
Brick03.jpg
Brick04.jpg
Brick05.jpg
Brick06.jpg
Brick01_b.jpg
Brick02_b.jpg
Brick03_b.jpg
Brick04_b.jpg
Brick05_b.jpg
Brick06_b.jpg

User avatar
OnoSendai
Developer
Posts: 6241
Joined: Sat May 20, 2006 6:16 pm
Location: Wellington, NZ
Contact:

Re: Random Tiles

Post by OnoSendai » Thu Jun 05, 2014 12:10 am

Here ya go:
Attachments
Random brick.pigm
(3.24 MiB) Downloaded 316 times

User avatar
bubs
2nd Place Winner
Posts: 620
Joined: Fri Jul 22, 2011 8:46 pm
Location: UK

Re: Random Tiles

Post by bubs » Thu Jun 05, 2014 12:29 am

Fantastic!!! :D As a sketchup user I think this is really very exciting! Thanks Ono!

User avatar
bubs
2nd Place Winner
Posts: 620
Joined: Fri Jul 22, 2011 8:46 pm
Location: UK

Re: Random Tiles

Post by bubs » Thu Jun 05, 2014 12:34 am

Some of the diffuse maps still seem to be getting distorted, any idea what might be causing that?

edit

* sorry my fault, forgot to delete the old unpacked files... works fine!
Last edited by bubs on Thu Jun 05, 2014 12:37 am, edited 1 time in total.

User avatar
OnoSendai
Developer
Posts: 6241
Joined: Sat May 20, 2006 6:16 pm
Location: Wellington, NZ
Contact:

Re: Random Tiles

Post by OnoSendai » Thu Jun 05, 2014 12:35 am

Can you post a pic?
Works fine for me.

User avatar
OnoSendai
Developer
Posts: 6241
Joined: Sat May 20, 2006 6:16 pm
Location: Wellington, NZ
Contact:

Re: Random Tiles

Post by OnoSendai » Thu Jun 05, 2014 12:37 am

Here's what it looks like here:
Attachments
Random brick.jpg

User avatar
bubs
2nd Place Winner
Posts: 620
Joined: Fri Jul 22, 2011 8:46 pm
Location: UK

Re: Random Tiles

Post by bubs » Thu Jun 05, 2014 12:38 am

sorry see above :oops:

User avatar
OnoSendai
Developer
Posts: 6241
Joined: Sat May 20, 2006 6:16 pm
Location: Wellington, NZ
Contact:

Re: Random Tiles

Post by OnoSendai » Thu Jun 05, 2014 1:08 am

Hi bubs, can I upload this one to the MatDB?

User avatar
bubs
2nd Place Winner
Posts: 620
Joined: Fri Jul 22, 2011 8:46 pm
Location: UK

Re: Random Tiles

Post by bubs » Thu Jun 05, 2014 1:17 am

It was really only a test, if you could drop in a similar piece of code for the exponent slot I'll sort this out with better maps and try for 10 or 12 variations. Then it's all yours!

User avatar
OnoSendai
Developer
Posts: 6241
Joined: Sat May 20, 2006 6:16 pm
Location: Wellington, NZ
Contact:

Re: Random Tiles

Post by OnoSendai » Thu Jun 05, 2014 4:37 am

Here's a version with an exponent shader as well:
Attachments
Random brick.pigm
(3.24 MiB) Downloaded 313 times

Post Reply
29 posts

Who is online

Users browsing this forum: No registered users and 6 guests