About Store Forum Documentation Contact



Post Reply 
Texture stretching
Author Message
Ezequel Offline
Member

Post: #1
Texture stretching
Hi,

In my world are some high cliffs (heightmap). As a result, the textures on the sides of the cliffs/mountains get stretched out. What can I do to overcome this texture stretching with the heightmap? My world would be more beautifull without the stretching.

Example:
[Image: capturelru.jpg]

Uploaded with ImageShack.us
06-24-2012 05:47 PM
Find all posts by this user Quote this message in a reply
dylantan Offline
Member

Post: #2
RE: Texture stretching
We are having the same issue as well. Might be interesting to find out how to solved this.
06-25-2012 09:42 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Dwight Offline
Member

Post: #3
RE: Texture stretching
To the extent of my knowledge there are 3 available options for you; of which 2 work 100%, and 1 is still untested (no. 3).

1. Make the slope less steep (might not look as you wanted it to though)
2. Create the layout in any modelling program and apply the textures from there, and place it on that position (will look exactly how you wanted it to)

3. Create a texture from the used texture that is anti-stretched (so really cropped, more concentrated horizontally). The stretching will cancel out the concentration. This is untested and just a random thought that came to mind.

Personally, my preferred option is option 2 smile
06-25-2012 10:17 AM
Find all posts by this user Quote this message in a reply
fatcoder Offline
Member

Post: #4
RE: Texture stretching
What you are looking for is called tri-planar texturing. You can't do it yourself as you need access to the terrain shader. I'm actually surprised EE doesn't already do it as it is super simple to implement into the exising terrain shader.

It works by projecting the texture on to the terrain using all three planes (x,y,z) instead of just y on its own. The normal of a point on the terrain is used to determine which plane to use.

You can read more about it and see the shader implementation in this GPU Gems article. Just ignore all the stuff about terrain generation and scroll straight down to section 1.5 Texturing and Shading.

http://http.developer.nvidia.com/GPUGems..._ch01.html
(This post was last modified: 06-25-2012 12:11 PM by fatcoder.)
06-25-2012 12:08 PM
Find all posts by this user Quote this message in a reply
Ezequel Offline
Member

Post: #5
RE: Texture stretching
@ Dwight: Thanks, option 2 is a good idea for objects who are not too big. But for huge mountains, is will not be easy. Imagine unwrapping a mountain.
I will test option 3, but the texture will have a very high resolution then.

@ fatcoder: interesting article, I didn't knew of tri-planar texturing. I hope EE will support it soon.
06-25-2012 04:55 PM
Find all posts by this user Quote this message in a reply
mystara Offline
Member

Post: #6
RE: Texture stretching
hrm, I'd also like to put in a request for this feature. I make use of lots of cliffs and drops, and frequently find the texture 'stretched'.
06-26-2012 01:06 PM
Find all posts by this user Quote this message in a reply
ronalmb Offline
Member

Post: #7
RE: Texture stretching
I absolutely agree with this request.
07-09-2012 02:22 PM
Find all posts by this user Quote this message in a reply
MITVIZ Offline
Member

Post: #8
RE: Texture stretching
has this been implimented in esenthel 2?
08-26-2013 11:34 PM
Find all posts by this user Quote this message in a reply
Zervox Offline
Member

Post: #9
RE: Texture stretching
Nope
08-27-2013 12:26 AM
Find all posts by this user Quote this message in a reply
MITVIZ Offline
Member

Post: #10
RE: Texture stretching
grrrrrr
08-27-2013 08:31 AM
Find all posts by this user Quote this message in a reply
AndrewBGS Offline
Member

Post: #11
RE: Texture stretching
So has anyone made a request for this yet? It seems like a very useful feature.
12-21-2013 08:16 PM
Find all posts by this user Quote this message in a reply
Ezequel Offline
Member

Post: #12
RE: Texture stretching
12-21-2013 10:11 PM
Find all posts by this user Quote this message in a reply
Post Reply