Page 1 of 2

Random Tiles

Posted: Wed Jun 04, 2014 3:52 am
by bubs
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...

Re: Random Tiles

Posted: Wed Jun 04, 2014 5:40 am
by OnoSendai
Yup, it's very easy to offset by half a tile.

Re: Random Tiles

Posted: Wed Jun 04, 2014 7:50 am
by bubs
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.

Re: Random Tiles

Posted: Wed Jun 04, 2014 8:11 am
by OnoSendai
Here yo go:

Re: Random Tiles

Posted: Wed Jun 04, 2014 9:50 am
by bubs
Thanks! :D

Re: Random Tiles

Posted: Wed Jun 04, 2014 9:58 pm
by bubs
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...

Re: Random Tiles

Posted: Thu Jun 05, 2014 12:10 am
by OnoSendai
Here ya go:

Re: Random Tiles

Posted: Thu Jun 05, 2014 12:29 am
by bubs
Fantastic!!! :D As a sketchup user I think this is really very exciting! Thanks Ono!

Re: Random Tiles

Posted: Thu Jun 05, 2014 12:34 am
by bubs
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!

Re: Random Tiles

Posted: Thu Jun 05, 2014 12:35 am
by OnoSendai
Can you post a pic?
Works fine for me.

Re: Random Tiles

Posted: Thu Jun 05, 2014 12:37 am
by OnoSendai
Here's what it looks like here:

Re: Random Tiles

Posted: Thu Jun 05, 2014 12:38 am
by bubs
sorry see above :oops:

Re: Random Tiles

Posted: Thu Jun 05, 2014 1:08 am
by OnoSendai
Hi bubs, can I upload this one to the MatDB?

Re: Random Tiles

Posted: Thu Jun 05, 2014 1:17 am
by bubs
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!

Re: Random Tiles

Posted: Thu Jun 05, 2014 4:37 am
by OnoSendai
Here's a version with an exponent shader as well: