Ezequel
Member
|
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:
Uploaded with ImageShack.us
|
|
06-24-2012 05:47 PM |
|
dylantan
Member
|
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 |
|
Dwight
Member
|
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
|
|
06-25-2012 10:17 AM |
|
fatcoder
Member
|
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 |
|
Ezequel
Member
|
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 |
|
mystara
Member
|
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 |
|
ronalmb
Member
|
RE: Texture stretching
I absolutely agree with this request.
|
|
07-09-2012 02:22 PM |
|
MITVIZ
Member
|
RE: Texture stretching
has this been implimented in esenthel 2?
|
|
08-26-2013 11:34 PM |
|
Zervox
Member
|
RE: Texture stretching
Nope
|
|
08-27-2013 12:26 AM |
|
MITVIZ
Member
|
RE: Texture stretching
grrrrrr
|
|
08-27-2013 08:31 AM |
|
AndrewBGS
Member
|
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 |
|
Ezequel
Member
|
|
12-21-2013 10:11 PM |
|