Has anyone sucessfully used MentalRay to generate HDR cubemaps for use in games ? Are there any scripts for doing this (I assume it would be pretty east to render six times in opposite directions for each cube-face).
Also what format is best to use ? The only format I’ve been able to get out with 32-bits per component is openEXR, which I can’t seem to convert into something I can use in game (preferably DDS). Do any of the other formats support floating point image formats ? (I’m using Maya 6.5).
There are several MR lens shaders available on this forum which can output images as cylindrical, spherical or cube projections (i.e. Aperture : http://www.highend3d.com/maya/downloads/shaders/3287.html).
For HDR, you can render straight away HDR images (maya7), or Tiff images, as RGB, or RGBA (float) 32 bits (in “render settings/MentalRay/framebuffer”) and then convert to HDR. (check the import otions in HDRshop, Hdrie, or PhotoshopCS2, don’t have the soft in front of me right now).
Hope it helps,
Guyb
PS : I just remember having problems with MR lens shaders when using textured object → use only “none” or “bilinear” filtering on the textures, or you may experience weird behaviour (texture appearing as mosaic).
I’m using 6.5 and can’t seem to output floating point Tiff files (I have the framebuffer set-up as 32-bit per component in the global settings). I’ve tried a few different formats and the only one I’ve been able to get anything other that 24-bpp out of was openEXR or .HDR (Of the two I’d rather not use HDR as it loses precision). I didn’t think the TIFF format even supported floating point pixel formats.
It looks like the lightengine3d Aperture plugin does not work with Maya 6.5. I get an error when I try to render (the “ray version” is higher than expected). Though you were right about TIFF you can get render to 96bpp TIFF image (which is alot easier to convert to DDS using a library like Tiff for Windows http://gnuwin32.sourceforge.net/packages/tiff.htm).
Sorry to be dense (bit of a maya noob) but I’ve only used bake sets to generate light maps, how do you tell Maya/MR that you want to bake a cubic environment map, not a lightmap ?
QUOTE(griffin2000 @ 05/15/06, 04:41 PM) [snapback]237357[/snapback]
Has anyone sucessfully used MentalRay to generate HDR cubemaps for use in games ? Are there any scripts for doing this (I assume it would be pretty east to render six times in opposite directions for each cube-face).
Also what format is best to use ? The only format I’ve been able to get out with 32-bits per component is openEXR, which I can’t seem to convert into something I can use in game (preferably DDS). Do any of the other formats support floating point image formats ? (I’m using Maya 6.5).
Thanks all
Hi!
I wrote a tutorial specifically for that kind of problem:
I tried useing the lense… never really got it to work. What i did was i took a scene, and placed a polygon cube in the center. You’ll need to adjust the UVs around so the top of the cube is the top of where the cube map would be. After all this you smooth the cube a few times so it will collect the most information then by simply placing the uvs for each side (top, down, etc) in the UV map square (in the uv editor window in maya, and placing all the other ones outside of the uv square) then you make a bake material, and render to texture each site, then reassemble in dds format. after htis point you just hdr compile the cubemap and your ready. Hope this at least gives you some idea of what i mean. I wrote this while away from maya so my terms aren’t exactly right.