Difference between revisions of "Diffusely convolved cube map"

From polycount
Jump to: navigation, search
(link to CategoryShaders)
(Sébastien Lagarde)
Line 19: Line 19:
 
== AMD Cubemapgen ==
 
== AMD Cubemapgen ==
  
[http://developer.amd.com/gpu/cubemapgen/Pages/default.aspx Cubemapgen] is great for filtering down cube maps.
+
[http://code.google.com/p/cubemapgen/ Cubemapgen] is great for filtering down cube maps. Sébastien Lagarde made [http://seblagarde.wordpress.com/2012/06/10/amd-cubemapgen-for-physically-based-rendering/ a physically based rendering mod].
  
 
{| border="1" cellpadding="2" cellspacing="0"
 
{| border="1" cellpadding="2" cellspacing="0"

Revision as of 11:32, 9 September 2013

Diffusely Convolved Cube Map

Introduction

A diffusely convolved cube map is simply a blurred-down version of a regular cube map. When a adds the cube map to the model's diffuse map the result is similar to global-illumination, except it is extremely efficient performance-wise.

File:DiffuselyConvolvedCubeMap$tmp.320.whatif nmech env-alone.jpg File:DiffuselyConvolvedCubeMap$tmp.320.whatif nmech env+lgt.jpg
The convolved cube map on a normalmapped model. Actual size<
>image byEric Chadwick,Whatif Productions LLC
Convolved cube map plus lighting. Actual size<
>image byEric Chadwick,Whatif Productions LLC

AMD Cubemapgen

Cubemapgen is great for filtering down cube maps. Sébastien Lagarde made a physically based rendering mod.

Cubemapgen Cube Faces

Cubemapgen 3ds Max Maya CryENGINE 3 Unity
+X _RT Left -X
-X _LF Right +X
+Y _UP Top +Y
-Y _DN Bottom -Y
+Z _BK Front (+Z)
-Z _FR Back (-Z)
Cubemapgen 3ds Max Maya CryENGINE 3 Unity
c00 Left -X (180°)
c01 Right +X (180°)
c02 Top +Y
c03 Bottom -Y
c04 Back -Z (180°)
c05 Front +Z (180°)

Cubemapgen Custom Meshes

You can load your own geometry in Cubemapgen using the Load Object button, really helps to see what settings are working well.

You can also load a bitmap for the model using the Load Basemap button. There's a bug right now that causes your Basemap to be mirrored vertically... to fix it pre-flip the bitmap yourself before loading it in Cubemapgen. An Ambient Occlusion Map map makes a great Basemap, or you can use your DiffuseMap.

File:DiffuselyConvolvedCubeMap$tmp.320.cubemapgen nmech cube.jpg File:DiffuselyConvolvedCubeMap$tmp.320.cubemapgen nmech basemap+cube.jpg
Custom geometry in Cubemapgen. Actual size<
>image byEric Chadwick
Basemap is modulated (multiplied) with the cube map. Actual size<
>image byEric Chadwick

Editing Cubemaps in Photoshop

If your cube map is in DDS cube format, you'll need the NVIDIA DDS plugin to load and save in Photoshop.

Unfortunately NVIDIA introduced some bugs when they updated the plugin, so now DDS cubes don't load mips properly. If you need to load cube maps with mips, here's an old version that does it right.

Links


Personal tools
Namespaces

Variants
Actions
Navigation
Tools