SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 13-07-2003, 08:09 PM   #1
BabyDuck
Subscriber
 
BabyDuck's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 1,170
Thanks: 3
Thanked 12 Times in 12 Posts
Default how to: non repeating brick

here is my experience with (almost) nonrepeating brick texture. i always wondered why there was no easy solution to it. and i managed today to create something that was exactly what i want

after a little bit playing i created 2 128x128 file textures with some noise in it. depending on what shade of grey is in it i activate the correct brick. for that i used stencils. each stencil took an equal part of value range (in hsv color space) with key mapping and positive key. the image it produces is pretty much useless for transparency - as it still has many shades in it. but stencil provides an out alpha that has exactly what i need. now i connected the outalpha to tranparency r g and b of the layer in layerd texture that includes my brick. and voila done.

problems: the file texture that feeds the stencils must not be filtered, so that the border from one brick to next is sharp. then to have bricks that are not like a checker needed a little workaround. i mentioned 2 testures with noise as one is for the even rows and the other for the uneven rows. to mix them together i created with 3 checker textures a alpha channel for one of the noise textures. i know i know - i could just have created a 1x2 file texture that has a white and a black pixel in it and just let it repeat. oh well - now i like i got around that with 3 checker textures - here was also important to switch off the filtering, so the edges are sharp.

the example (next post) uses 3 bricks. each is 256x128 pixel big. for not need to place it for even and uneven row seperately, the brick texture has 256x256 pixel - the brick cut in half and change left and right did the trick.

oh i know, the bricks look a bit repeating. but that will be taken care off when i use more than 3 bricks. but for only 3 small brick textures, the result is great - and if you did not notice yet - it is not repeating. well after 128 bricks it is. just imagine a brick about a foot long - and the pattern on the wall repeats after 128 feet. most walls are not that long. and you are not able to see the bricks big enough to make out the pattern anyway. also nobody forces you to use only 128x128 files for the brick distribution ...


here is the shading network:
Attached Thumbnails
Click image for larger version

Name:	work.jpg
Views:	104
Size:	36.9 KB
ID:	9025  
BabyDuck is offline   Reply With Quote
Old 13-07-2003, 08:13 PM   #2
BabyDuck
Subscriber
 
BabyDuck's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 1,170
Thanks: 3
Thanked 12 Times in 12 Posts
Default example wall

this plane uses the brick texture as color on a lambert. note that no bump map is aplied. and it uses only 3 bricks in total - so you are likely to find the same brick over and over again.

how did i get the bricks? digital cam and then cutted out 3 bricks.
Attached Thumbnails
Click image for larger version

Name:	brickwall.jpg
Views:	101
Size:	102.9 KB
ID:	9027  
BabyDuck is offline   Reply With Quote
Old 13-07-2003, 11:40 PM   #3
schmick
Registered User
 
Join Date: Apr 2002
Posts: 222
Thanks: 0
Thanked 0 Times in 0 Posts
Default

That's lookin nice BabyDuck
schmick is offline   Reply With Quote
Old 07-08-2003, 11:13 PM   #4
fredriksson
Subscriber
 
fredriksson's Avatar
 
Join Date: Jun 2003
Location: Sweden
Posts: 571
Thanks: 0
Thanked 1 Time in 1 Post
Default

Would you mind sharing that shader ducky?
Looks interesting, but you lost me in the text
__________________
Björn 'santa' Fredriksson

<A href=http://www.bjornfredriksson.com>Site Online.</A>

Check out our 1on1on1 battle for the SandCrawlers.
fredriksson is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.