smoothen cube texture edges

E1bddb31000e459fb3ee5593fe067486
0
paul0n0n 101 Nov 15, 2009 at 06:00

Ok, so I want to smooth together touching edges for a cube. here is how i have the UV setup to read an image. I was wondering if there is an easier way to blend between the edges other then procedurally doing it?

http://www.texturemaker.com/images/screenshots/FirstDayEngine.jpg

the picture above is how i have my UV set up. now I’m not trying to do what texturemaker is doing, i am using gray scale as a heightmap then apply it to a geosphere. the only piece i have left is the correct blending of the image edges so the Geosphere edges match up.

5 Replies

Please log in or register to post a reply.

A8433b04cb41dd57113740b779f61acb
0
Reedbeta 168 Nov 15, 2009 at 08:38

I’m a little confused. The cubemap in the image you linked to seems to have nice, seamless edges. Are you saying that the same cubemap comes out with visible edges in your engine? Or are you talking about a different cubemap entirely coming out with visible edges?

E1bddb31000e459fb3ee5593fe067486
0
paul0n0n 101 Nov 15, 2009 at 15:37

I’m using a different cubemap entirely. I was using the image as a reference to how i setup the uv coordinates of the geosphere. so that all could see the layout and get a better understanding of the problem.

I apply a heightmap to the geosphere and alter the vertices so that there are extrusions and dips in the surface, now everything is seamless except the image edges and therefor the geosphere edges.

I know the long way on how to smooth out the connecting edges but thats going to take a day or two to get all the bugs and correct formulas for xy coordinates to work correctly. sense I will have to take each square section and process it differently for correct smoothing to each connected edge of the image.

my apologies i named the topic wrong, should be “smooth cube image edges”

I don’t know if there is an easier way, i might have to grit and push through.

820ce9018b365a6aeba6e23847f17eda
0
geon 101 Nov 16, 2009 at 12:52

It might help if you expand your heightmap to include some data on the other side of the seams. That way, you don’t get problems with mipmaps or interpolation.

crappy ascii art

    +-+-----+-+
 ___| |     | |_________
|    \|     | /   |     |
+-----+-----+-----+-----+
|     |     |     |     | 
|     |     |     |     |
+-----+-----+-----+-----+ 
|____/|     |\____|_____|
    | |     | |
    +-+-----+-+
E1bddb31000e459fb3ee5593fe067486
0
paul0n0n 101 Nov 16, 2009 at 13:42

I was just about to do that exact same thing, hope it works.
well it worked for one edge, have to try a variation i guess.

nope doesn’t work.. arg

E1bddb31000e459fb3ee5593fe067486
0
paul0n0n 101 Nov 17, 2009 at 20:00

ok, so everything is lined up, but i still get small gaps between the edges. If i had to guess it is the deformation of the geo sphere. I wonder if i could weld together the edges… hmm.

sweet worked like a charm.