smoothen cube texture edges

5 replies to this topic

#1paul0n0n

Member

• Members
• 37 posts

Posted 15 November 2009 - 06:00 AM

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.texturema...stDayEngine.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.

#2Reedbeta

DevMaster Staff

• Administrators
• 5305 posts
• LocationBellevue, WA

Posted 15 November 2009 - 08:38 AM

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?
reedbeta.com - developer blog, OpenGL demos, and other projects

#3paul0n0n

Member

• Members
• 37 posts

Posted 15 November 2009 - 03:37 PM

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.

#4geon

Senior Member

• Members
• 939 posts

Posted 16 November 2009 - 12:52 PM

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

+-+-----+-+
___| |     | |_________
|    \|     | /   |     |
+-----+-----+-----+-----+
|     |     |     |     |
|     |     |     |     |
+-----+-----+-----+-----+
|____/|     |\____|_____|
| |     | |
+-+-----+-+



#5paul0n0n

Member

• Members
• 37 posts

Posted 16 November 2009 - 01:42 PM

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

#6paul0n0n

Member

• Members
• 37 posts

Posted 17 November 2009 - 08:00 PM

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.

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users