1
$\begingroup$

I've a couple of tutorials about CubeMaps but all they show is how to render the 6 pictures.

But I already have these 6 pictures. Is there a way to create an environment map with these 6 pictures?

If possible, a way to create it with Python.

$\endgroup$
1
$\begingroup$

You don't need to use Python to turn 6 cubic images into a single environment map. But once you set up a .blend for handling this task you could augment that with Python to make an automated process out of it.

Create a fairly large cube, with normals flipped, in your World center. UV map and texture your images onto it. Give it a shadeless material. Place your camera at location 0,0,0 with rotation X:90 Y:0 Z:0 Set your Camera to "Panoramic" to render an environment. I recently made a post here that goes into some more detail that you may find helpful. You'll want to make that cube spherical using a SubSurf and then Cast modifier. For the SubSurf modifier use "Simple" subdivision at 5 or 6 subdivisions. For the Cast modifier leave the type as "Sphere" and set the factor to 1.

If you want to use Python to process large quantities of such cube maps, look into how to use Python to replace the source images in the folder where Blender will be looking for them. And research how to use Python to call on Blender to load up the .blend and render out the image(s).

$\endgroup$
  • $\begingroup$ It's not possible to have a more abstract CubeMap? In OpenGL, you can actually have a cubemap and it's considered infinite. Like in this demo: alteredqualia.com/three/examples/materials_cars.html $\endgroup$ – widgg Jul 10 '15 at 12:51
  • $\begingroup$ Ah, I see. This is for some kind of interactive content, like a game or something? Your example reminded me of this Blend4Web demo: blend4web.com/en/demo/sportscar Since this was made using Blender it may be of some help. $\endgroup$ – Mentalist Jul 12 '15 at 1:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.