Reproject
reproject textures: cubemap<-->latlong
Install / Use
/learn @tuket/ReprojectREADME
This is a simple command line program that changes the projection of textures.
You can transform from cubemap to latlong (also know as equirectangular), and viceversa.

It uses OpenGL 3.3.
Download the executable
You can download the tool as a single executable (Linux and Windows).
Usage
There are 2 kinds of command:
reproject latlongToCubemap <inputFile> <outputFile> <outputFaceResolution> [numSamples]
reproject cubemapToLatlong <inputFile> <outputFile> <outputWidth>x<outputHeight> [numSamples]
The number of samples is optional. The more, the better quality (at the expense of more computation cost). The default value is 128, which is usually more than enough.
Examples:
$ ./reproject latlongToCubemap myLatlong.hdr newCubemap.hdr 512
$ ./reproject cubemapToLatlong myCubemap.png newLatlong.png 2048x1024 1000
Supported formats
This project uses stb for loading and saving images.
Compiling
This compiles like any normal CMake project.
This is how you can compile in Linux:
cd reproject
mkdir build
cd build
cmake ..
ninja
You might need to install some of these libraries:
sudo apt install libx11-dev libxi-dev libxcursor-dev libxinerama-dev libxrandr-dev libopengl-dev
License
Related Skills
node-connect
352.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
