The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates.

godotengine.org | Twitter

0 votes

Hi !

I have a problem you certainly view a lot of time, but I don't find any good solution for me...

I want "repeat texture" when I scale (in reality I want extrude the wall) a mesh (like a wall).
But I don't know how to do that. I've tried to to import the texture image with "Repeat" flag to "Enabled" but it didn't change anything.

This is what I have :

enter image description here

And this is what I want :

enter image description here

The solution describe in this post doesn't correspond to my needed because if I want a wall of size 1m and other of 100m the texture will not the same size for the player (and I wan't create multiple materials for the same texture)

There is a same functionnality in blender with this option in blender :

Also in source engine :

https://www.youtube.com/watch?v=4Hq-bLhe4JQ&t=89s

We can see when he finished to scale the wall, the texture is not scaled. I fact the wall is not scaled but this is like an extrusion, and that what I want for my walls in Godot.

Thanks you all !

Note : Sorry for my very bad english. I hope my message is understandable.

Godot version 3.3.2
in Engine by (12 points)

1 Answer

+2 votes

You can either create one material per mesh of different size, or enable triplanar mapping in the material. However, triplanar mapping has a significant performance cost, so its use is only recommended for prototyping (outside of terrain).

by (12,878 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.