Tiling part of an atlas

Node-based Shader Editor
Post Reply
cepeka
Posts: 5
Joined: Thu Jan 31, 2019 12:24 pm

Tiling part of an atlas

Post by cepeka »

Hi !

I'm trying to tile part of an atlas texture. I somehow managed to do it with a flipbook node
(as said on this topic : http://amplify.pt/forum/viewtopic.php?f=23&t=796)
but I've got a small margin on the result. Is there any other/better way to do something like this ?

Edit : Maybe I've asked a little quickly without thinking further, i'm trying to save some drawcalls by atlasing textures and still have the ability to tile parts of the atlas.
I didn't thought of a way (in this case) to change the Start Frame value without another material. Maybe a way to retrieve some values with vertex colors ? Or a simple script which assign a Int value... Don't know, I will meditate more.

Here's my graph :
Image

And here's the result :
Image
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Tiling part of an atlas

Post by Amplify_Borba »

Hey there!

Can you confirm if your texture's Wrap Mode is set to Clamp?
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
cepeka
Posts: 5
Joined: Thu Jan 31, 2019 12:24 pm

Re: Tiling part of an atlas

Post by cepeka »

Hi, i've remade the exact same shader on a new file and the margin is more subtle but still there.
(I don't know why it's less big than before tho...)

Setting the texture to Clamp does affect it a veeeery little bit, but it stay basically the same.

Image
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Tiling part of an atlas

Post by Amplify_Borba »

I was able to replicate the behavior you've reported, and in my test setting the texture to Repeat and filter mode to Point seems to have solved the lines at the edges of the texture:

Image

Please let me know if this helps!
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Post Reply