Page 1 of 1

Texture memory question

Posted: 17.06.2004, 17:50
by rthorvald
If two objects use the same texture, and both are visible, will Celestia load the texture once, or will it treat it as two different files?

The question is really: if two asteroids, for example, share one texture, is this more memory-efficient than using two different textures?

- rthorvald

Re: Texture memory question

Posted: 18.06.2004, 05:48
by Bob Hegwood
rthorvald wrote:If two objects use the same texture, and both are visible, will Celestia load the texture once, or will it treat it as two different files?

The question is really: if two asteroids, for example, share one texture, is this more memory-efficient than using two different textures?

- rthorvald

Don't know for sure, but this is already being done in Celestia. A wide variety
of objects are currently mapped to a single texture, "asteroid.cms" and
"asteroid.jpg" I think?

One would have to assume that it *would* be more memory efficient if the
same texture only has to be in memory once to be displayed on a variety of
different objects. Yes?

Take care, Bob