- Home /
Load skybox pics at startup w/o using all ram
HI everyone.
I'm making a web app with skyboxes, and as the materials are quite heavy, I'd like to set by default low quality materials for app weight, and at startup lauch coroutines that load pics via www.LoadImageIntoTexture to setup skyboxes pictures, using skyboxMaterial.SetTexture().
I'm in front of two problems :
either I create Texture2Ds for each pic, and RAM used is far too big (ie 2Gigs for something like 15 pics at 1024 res)
either I have only one Texture2D that I reload for eachpic, but in this case... only the last loaded remains for all skyboxes pics ! As if the SetTexture uses reference
Is there a way to load my pictures and set them as I'd like, without using much memory ?
Thanks for your help
Answer by DaveA · Mar 18, 2011 at 09:02 PM
Why do you need 15 pics? I would think 6 would do. You can reload those. If you don't really need 'down', don't use it. If you don't really need 'up', don't use it. (Or use much lower res sizes for those).