ZBrushCentral

Not-so-seamless tiling textures

I love the tilde key panning function, but something I can’t quite figure out: When I export my documents there is always a fine line around the edges of my picture, thus ruining my seamless texture. I think it’s only like 1 pixel.

What am I doing wrong, how can I get 100% seamless textures using the ~ key?

I searched around but I must be missing something basic.

(I’ve attached the jpg version so there might be more tiling problems due to conversion to jpg, but I started with a bmp!)

Attachments

tile christmas.JPG

Certain materials cause shadow artifacts at two of the edges. There is a ZScript that someone created to help fix this, but I can’t recall where off the top of my head.

Is this it?

http://www.zbrushcentral.com/zbc/showpost.php?p=97491&postcount=26

It’s only set up to work with 256x256 textures, but it should be a trivial matter to make it work with other resolutions.

I made a plugin last year that expands the document by X pixols thus allowing you to render/view a seamless document without the nasty border effect.

The plugin was posted in this thread: Cavity Shading causes dark lines in document edges . Unfortunately the download link does not seem to be working.

I’ll see if I can post a newer version before the weekend.

TVeyes suggestion looks like a more useful solution but in the meantime here is a version of Alan’s zscript which will handle any texture size up to 2048.

EDIT: I added a warning in the script for when there’s more than one layer.

EDIT 2 : new version in post below.

Gotta love this community. You guys rock. :slight_smile:

I realized I was being dim and missing the wrap layer button. :slight_smile: This version will export a seamless texture up to 4094x4094 (there have to be 2 pixels available in both directions).

Wow guys, thanks a lot for your help!!

Okay I can’t for the life of me figure out how to run or use this script!! (I haven’t done anything with scripts, other than the tutorial ones…)

to make it easy…copy it to your zscripts folder in your pixologic\zbrush folders.

either create a texure or fill a layer with one you want to make seamless. Now go to the zscript menu and select load and select the seamless texture2.txt file.

you will see a button on the lower left side of your screen that says…seamless texture, click on it and it will ask you to save a file name, name it ST01 (or whatever you want) and save it in a folder you can find it quickly. now clear the canvas choose a tool…let’s use the cube for the heck of it and draw it to the canvas and hit edit. Now go to texure menu and load the texture you just saved.

the cube should now have a seamlessly tiled version of your texture…rotate it around and check it out.

Thanks, I did that, but now I can’t find any hint of new buttons or anything…probably something obvious I am missing!

sorry please reread my last post…i just changed it.

you might need to grab the little arrows at the bottom of your canvas and move it up a little. if you still don’t see the button try grabbing the interface just under those arrows and try to scroll it and see if the button shows up.

Oh MAN, just perfect! Awesome script! Thanks!!!

Thanks for stepping in aminuts. :slight_smile:

Glad you like the script Quentin; happy pixoling. :slight_smile:

Any time Marcus!!

I’m having trouble with the script.
For some reason it removes all the effects and makes the texture much darker?

Here it is without the script:
without_script.jpg
What am I doing wrong?

Attachments

with_script.jpg

The script switches to Preview Render at the end. This may be affecting your canvas. Otherwise it shouldn’t affect the canvas in any way. Have you checked to see what the exported image is like?

That is the exported image…

So, how could I fix it so it doesn’t switch to preview mode?

In that case I think the problem may be that the script uses Best Render for the output and you’re doing all your work in Preview mode. Try this version (which doesn’t use Best Render). If that doesn’t work then perhaps you can send me the ZB document so I can see what’s happening.