Python script to create sky image maps in rectangular format from such in equirectangular format, Blender setup to render equirectangular image maps.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Victor Giers ddffb06539 corrected some things преди 4 години
hotel_cubemap Initial commit преди 4 години
rough_cubemap Initial commit преди 4 години
studio_cubemap Initial commit преди 4 години
LICENSE Initial commit преди 4 години
README.md corrected some things преди 4 години
cubemap-rendersetup.blend Initial commit преди 4 години
equi_to_cube.py Initial commit преди 4 години
hotel_room.png Initial commit преди 4 години
rough.png Initial commit преди 4 години
studio.png Initial commit преди 4 години

README.md

cubemap-creator

Python script to create sky image maps in rectangular format from such in equirectangular format, Blender setup to render equirectangular image maps.

From:

hotel_room.png

To:

hotel_room_cubemap.png

And for use in three.js, each segment of the cube comes as a seperate file as well (nx, ny, nz, px, py, pz):

nx
nx

ny
nx

etc.

Usage:

Convert .hdr to equirectangular .png with Blender

cubemap-rendersetup.blend has removed or decreased to the fullest all kinds of unnecessary render settings if rendering an HDRI only (did you know 1 sample is enough for this job?). The camera is set to the centerpoint, its perspective 360° equirectangularly set up.
Why would I do this?
I tried converting an HDRI (.hdr) to a .png or .jpg by hand - the colors got messed up. Rerendering with this setup did the trick.

Convert equirectangular image to cubemap with Python

python equi_to_cube.py equimap.png

The presented HDRIs are from HDRI-Haven,
the scripts are made by people from Stackoverflow.
I did nothing but using glue here!