heightmap

make seamless height-map texture for sphere (planet)

一笑奈何 提交于 2019-11-28 14:09:39
I'm trying to generate height-map for spherical planet with perlin noise. How can I make it with seamless left/right borders? I smoothed heightmap in poles, but cannot understand how can I loop left and right sides. This is how my textures look liked for now: Mirroring (by y-axis) This is great for making seamless background textures. But as you mentioned the texture must not contain distinct patterns otherwise it would be obvious. This can be used as a start point for texture generator Morphing There are vector and raster morphs out there depend on the content of image. You can try to use

With C++ and Qt how do I display a 16-bit raw file as an image?

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-28 06:02:39
问题 I am looking to display heightmaps from the video game Battlefield 2 as images in my application. I am new to C++ and Qt and it might be straight forward but what I am having trouble with is displaying a grayscale 16-bit 1025x1025 2101250 bytes image. There is no header to the file. I need access to the displayed pixels (does not have to be pixel perfect precision) so I can point to a pixel and get its value. What I have tried I have loaded the binary data into a QByteArray from a QFile and I