DirectXTex icon indicating copy to clipboard operation
DirectXTex copied to clipboard

Cubemap to and from cross

Open walbourn opened this issue 8 years ago • 4 comments

Tool to convert between cross layout images and cubemaps.

  • h-strip (height, width *6): posz, posx, negz, negx, posy, negy
  • h-strip-xyz (height, width * 6): pox, negx, posy, negy, posz, negz
  • h-cross (height * 3, width * 4): negx, posz, posx, negz, posy, negy
  • h-cross-flip
  • v-cross (height * 4, width * 3): negx, posz, posx, posy, negy, negz
  • v-cross-flip

walbourn avatar Sep 21 '16 23:09 walbourn

considering adding this as an option to texassemble

walbourn avatar Sep 24 '16 01:09 walbourn

texassemble now supports h-strip, v-strip, h-cross, and v-cross generation.

walbourn avatar Sep 24 '16 08:09 walbourn

texassemble now supports h-strip, v-strip, h-cross, and v-cross generation.

Looks like texassemble only supports creating cross from cubemap, not converting h-cross to cubemap?

lanyizi avatar Jun 01 '21 18:06 lanyizi

Correct. I'm guessing that's a feature request :)

walbourn avatar Jun 01 '21 21:06 walbourn

Hi, I implemented this feature for my tools. So, I think I can contribute to the official branch like this. https://github.com/matyalatte/DirectXTex/commit/d085c1d1dca649abd4e39368cb7d15c564c6004c Can I send PR after adding commands for other layouts? Or is anyone already working on it?

matyalatte avatar Nov 05 '22 15:11 matyalatte

You are welcome to submit a PR. I have a side-project to work on a texenvmap tool for generating spherical cubemaps, panoramic cubemaps, parabolic cubemaps, but this is a fine addition to texassemble.

walbourn avatar Nov 05 '22 20:11 walbourn

You'll need to sync with my main branch for my recent additions of h-tee and v-cross-fzh.

walbourn avatar Nov 05 '22 20:11 walbourn

Thanks for the comments. I sent the PR (https://github.com/microsoft/DirectXTex/pull/290).

matyalatte avatar Nov 06 '22 10:11 matyalatte