Git Product home page Git Product logo

cubemap6to1's Introduction

cubemap6to1

A quick-and-dirty utility for stitching 6 separate cubemap faces into a single image file. Quick-and-dirty means it works but I make no guarantees. It should work cross-platform, although I've only used it from Windows to create the cubemap textures in my Volt's Laboratory repository. It has a few rules about the input files.

Usage is simple:

cubemap6to1 [pathname] [png|jpg]

The pathname argument should point to file zero. For example:

c:\source\volts-laboratory\textures\Fancy Space Cubemap 256x256 0.png

Use quotes if there are spaces anywhere in the pathname.

Files 1 through 5 must exist in the same location with the same name, file type, and dimensions.

The format argument is usually optional and can be png or jpg. If omitted, the source file type is used. However, several other source filetypes are supported, and in that case the format would be required.

The output filename is the same as the inputs with the trailing number omitted (and any trailing space omitted, which Windows doesn't support anyway).

The output file will have an horizontal resolution that is 4X the inputs, and a vertical resolution that is 3X the inputs. Keep in mind that if your source files have a dimension in the filename (as in the example above), this utility doesn't know anything about that, and the output file will still have that part even though it's a totally different resolution.

To be clear, this is the relationship of the numbered input files to the combined output, using Shadertoy's Uffizi Gallery cubemap as the sample image:

cubemap layout

cubemap6to1's People

Contributors

mv10 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.