math & physics
paul0n0n at November 15th, 2009 01:00 — #1
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?
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.
reedbeta at November 15th, 2009 03:38 — #2
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?
paul0n0n at November 15th, 2009 10:37 — #3
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.
geon at November 16th, 2009 07:52 — #4
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
___| | | |_________
| \| | / | |
| | | | |
| | | | |
| | | |
paul0n0n at November 16th, 2009 08:42 — #5
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
paul0n0n at November 17th, 2009 15:00 — #6
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.