lundi 27 octobre 2014


Procedural Planet (Part 2)


Generating a cubemap: 


     After wandering on several blogs and forums, I decided to try the solution that consists in taking a cut in 6 parts of the sphere (sphere generated from the six planes of a cube). The final goal is to generate a relief on the surface of a sphere through a cubemap. 

     To generate a cubemap and keep consistent form in relation with the perspective of a 3D scene, I use a method that involves taking images captured from the camera in my Unity scene. Circles are generated around the camera and represent (gray) peaks.

Generating relief areas:


Capture of 6 images which will allow to generate cubemap:
(I created a tool for the editor to make it simple)



















The cubemap is used to apply the reliefs on different sides of a cube that will be normalized to be transformed into a sphere:



I notice errors in normal along the edge of the surfaces, probably because of the rounded values cubemap textures:



Aucun commentaire:

Enregistrer un commentaire