# Rendering Lots Of Big Bitmaps (eighteen 16k maps)

**URL:** <https://forums.chaos.com/t/rendering-lots-of-big-bitmaps-eighteen-16k-maps/50024>\
**Category:** General\
**Created:** [June 2, 2014, 5:35pm UTC](https://forums.chaos.com/t/rendering-lots-of-big-bitmaps-eighteen-16k-maps/50024 "2014-06-02T17:35:21Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![soulburn3d](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/soulburn3d/32/46297_2.png) [@soulburn3d](https://forums.chaos.com/u/soulburn3d)\
**Post date:** [June 2, 2014, 5:35pm UTC](https://forums.chaos.com/t/rendering-lots-of-big-bitmaps-eighteen-16k-maps/50024/1 "2014-06-02T17:35:21Z")

</div>

Hey there. So I’m doing a shot that requires a lot of super highres camera projections, and I’ve calculated that I may need as many as 18 16k maps rendered. I could split this into smaller parts, but the file management and user time to setup 72 x 8k maps or 288 x 4k maps seems pretty silly if it can be avoided.

So I have a number of questions on rendering lots of highres maps. My computer has 24gig or RAM BTW.

1) Is there a huge memory advantage in using the VrayHDRI map instead of a regular max bitmap loader?

2) I know mipmaps can be helpful, are there multiple mipmap formats vray can read? I’ve seen mention it reads tex files. What’s your favorite mipmap conversion utility? Have you found mipmapping creates textures that frequently appear too blurry?

3) I know Grant is a big fan of turning filtering off (no pyramidal or summed area) and iinstead increasing the subdivs on the material. When I use summed arrea filtering, that triples the memory required by a bitmap correct? Have people found this technique to be helpful?

4) Does changing some of the bitmaps to greyscale help? Or does vray internally transform all bitmaps to rgb even if they’re stored as greyscale on your hard drive, and so you don’t get a memory saving?

5) If a bitmap is used twice (say in the color and in a mask somewhere else) is that bitmap held twice in vray’s memory? Or only once.

All other suggestions are appreciated, I know about many of the other tricks like rendering with no vfb, etc: [http://www.neilblevins.com/cg\_education/reducing\_memory/reducing\_memory.htm](http://www.neilblevins.com/cg%5C_education/reducing%5C_memory/reducing%5C_memory.htm)

Thanks.

- Neil

---

<div class="post-metadata">

**Author:** ![svetlozar.draganov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/svetlozar.draganov/32/53004_2.png) [@svetlozar.draganov](https://forums.chaos.com/u/svetlozar.draganov)\
**Post date:** [June 3, 2014, 8:46am UTC](https://forums.chaos.com/t/rendering-lots-of-big-bitmaps-eighteen-16k-maps/50024/2 "2014-06-03T08:46:16Z")

</div>

1) Yes, there is since VrayHDRI supports mipmaps.  
2) Currently VrayHDRI supports OpenEXR and TIFF tiled files ( \*.exr, \*.tx, \*.tex)  
You could convert EXRs to mipmap with [img2tiledExr](http://help.chaosgroup.com/vray/help/300R1/tools_img2tiledexr.htm)tool that comes with vray or [maketx](https://sites.google.com/site/openimageio/home) from [OpenImageIO](https://sites.google.com/site/openimageio/home) library.  
5) Vray should only load texture once even if it is used on multiple places in the scene.

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [June 3, 2014, 10:51am UTC](https://forums.chaos.com/t/rendering-lots-of-big-bitmaps-eighteen-16k-maps/50024/3 "2014-06-03T10:51:50Z")

</div>

3) Summed area filtering does require substantial amounts of RAM. For your case, mip-map filtering is best - do not turn it off, especially if you go with tiled texture files.  
4) Depends on the file format; I think we do that for greyscale tiled TIFF files, but I have to check.

More information is here: [Chaos Docs](https://confluence.chaosgroup.com/display/VRAY3/VRayHDRI#VRayHDRI-TiledOpenEXRandTIFFFiles)

For your case, it might be best to go with tiled TIFF files. You can download a precompiled version of maketx here: [Google Code Archive - Long-term storage for Google Code Project Hosting.](https://code.google.com/p/osspack32/downloads/detail?name=maketx.exe&can=2&q=)

In theory you could also use txmake that comes with RenderMan, but we have some reports that the latest versions produce files that are problematic for V-Ray.

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![soulburn3d](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/soulburn3d/32/46297_2.png) [@soulburn3d](https://forums.chaos.com/u/soulburn3d)\
**Post date:** [June 3, 2014, 4:54pm UTC](https://forums.chaos.com/t/rendering-lots-of-big-bitmaps-eighteen-16k-maps/50024/4 "2014-06-03T16:54:09Z")

</div>

> [@Anti-aliasing ?](https://forums.chaos.com/t/anti-aliasing/45031/6):
>
> 1) Yes, there is since VrayHDRI supports mipmaps.  
> 2) Currently VrayHDRI supports OpenEXR and TIFF tiled files ( \*.exr, \*.tx, \*.tex)  
> You could convert EXRs to mipmap with [img2tiledExr](http://help.chaosgroup.com/vray/help/300R1/tools_img2tiledexr.htm)tool that comes with vray or [maketx](https://sites.google.com/site/openimageio/home) from [OpenImageIO](https://sites.google.com/site/openimageio/home) library.  
> 5) Vray should only load texture ones even if it is used on multiple places in the scene.

Thanks for the info!

> [@Max material editor-missing gamma slider?](https://forums.chaos.com/t/max-material-editor-missing-gamma-slider/45035/2):
>
> 3) Summed area filtering does require substantial amounts of RAM.

I found this mention in the sdk:

Both methods require approximately the same rendering time. Summed-area  
filtering generally yields superior results but requires much more  
memory. Pyramidal filtering requires the program to allocate memory  
equal to approximately 133% of the size of the bitmap. By comparison,  
summed-area filtering requires the program to allocate approximately  
400% of the size of the bitmap.

> [@Max material editor-missing gamma slider?](https://forums.chaos.com/t/max-material-editor-missing-gamma-slider/45035/2):
>
> For your case, mip-map filtering is best - do not turn it off, especially if you go with tiled texture files.

Sounds good.

> [@Max material editor-missing gamma slider?](https://forums.chaos.com/t/max-material-editor-missing-gamma-slider/45035/2):
>
> 4) Depends on the file format; I think we do that for greyscale tiled TIFF files, but I have to check.

Since 3 of the bitmaps were going to be greyscale anyways, I’ve decided to combine them into a single map, with each mono channel in the R, G or B channel. That lets me reduce the 18 maps down to 12, basically 6 false color images, and 6 full color images.

> [@Max material editor-missing gamma slider?](https://forums.chaos.com/t/max-material-editor-missing-gamma-slider/45035/2):
>
> In theory you could also use txmake that comes with RenderMan, but we have some reports that the latest versions produce files that are problematic for V-Ray.

Good to know. I use prman’s txmake all the time (considering my day job), but I’ll try the other one to assure compatability.

Thanks!

- Neil

---

<div class="post-metadata">

**Author:** ![soulburn3d](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/soulburn3d/32/46297_2.png) [@soulburn3d](https://forums.chaos.com/u/soulburn3d)\
**Post date:** [June 3, 2014, 5:13pm UTC](https://forums.chaos.com/t/rendering-lots-of-big-bitmaps-eighteen-16k-maps/50024/5 "2014-06-03T17:13:00Z")

</div>

Is there a filter to use with maketx that you recommend? I know my favorites with prman, but does the default box filter work fine for vray or is there a different one that’s optimal?

Also, here’s the commandline I’m using:

maketx -v -u --oiio --filter box test.tif -o test.tx

That definitely makes mipmaps, I assume it automatically makes it a tiled tx file as well without the need to specify a specific tile size?

- Neil

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [June 4, 2014, 7:45am UTC](https://forums.chaos.com/t/rendering-lots-of-big-bitmaps-eighteen-16k-maps/50024/6 "2014-06-04T07:45:58Z")

</div>

> [@Development update](https://forums.chaos.com/t/development-update/41523/65):
>
> That definitely makes mipmaps, I assume it automatically makes it a tiled tx file as well without the need to specify a specific tile size?

Yes, it makes a tiled file.

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![soulburn3d](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/soulburn3d/32/46297_2.png) [@soulburn3d](https://forums.chaos.com/u/soulburn3d)\
**Post date:** [June 4, 2014, 1:46pm UTC](https://forums.chaos.com/t/rendering-lots-of-big-bitmaps-eighteen-16k-maps/50024/7 "2014-06-04T13:46:08Z")

</div>

Cool, thanks. Will let you know how it goes.

- Neil

---

<div class="post-metadata">

**Author:** ![soulburn3d](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/soulburn3d/32/46297_2.png) [@soulburn3d](https://forums.chaos.com/u/soulburn3d)\
**Post date:** [June 19, 2014, 3:13am UTC](https://forums.chaos.com/t/rendering-lots-of-big-bitmaps-eighteen-16k-maps/50024/8 "2014-06-19T03:13:32Z")

</div>

Sadly, maketx crashes on my 16k maps. Works on 4k and 8k of the same map, but the moment its 16k, it crashes the program. Any other suggestions?

- Neil

---

<div class="post-metadata">

**Author:** ![henning](https://avatars.discourse-cdn.com/v4/letter/h/ecae2f/32.png) [@henning](https://forums.chaos.com/u/henning)\
**Post date:** [June 20, 2014, 7:26am UTC](https://forums.chaos.com/t/rendering-lots-of-big-bitmaps-eighteen-16k-maps/50024/9 "2014-06-20T07:26:09Z")

</div>

Maybe it’s a 32bit version of maketx. I got around this by running a 64bit maketx on a VirtualBox 64bit Linux. (I don’t know how to compile it on windows)

---

<div class="post-metadata">

**Author:** ![bigbossfr](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/bigbossfr/32/50480_2.png) [@bigbossfr](https://forums.chaos.com/u/bigbossfr)\
**Post date:** [June 20, 2014, 2:50pm UTC](https://forums.chaos.com/t/rendering-lots-of-big-bitmaps-eighteen-16k-maps/50024/10 "2014-06-20T14:50:50Z")

</div>

Yes, you need a 64bits version of maketx

---

<div class="post-metadata">

**Author:** ![soulburn3d](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/soulburn3d/32/46297_2.png) [@soulburn3d](https://forums.chaos.com/u/soulburn3d)\
**Post date:** [June 22, 2014, 10:13pm UTC](https://forums.chaos.com/t/rendering-lots-of-big-bitmaps-eighteen-16k-maps/50024/11 "2014-06-22T22:13:17Z")

</div>

Well, can’t seem to find one, so I just powered through. Managed to load 6 of the bitmaps at 16k and the other 12 at 8k, and it just worked on my machine with 24Gigs of RAM. Is there any chance of getting a 64bit version of maketx included in the base vray package, maybe even with a GUI? That would be super helpful.

- Neil
