Which texture format uses least video memory?

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Post by Mel »

I was about to recomend that. Texture atlases have a great advantage. A model with the textures set into an atlas have the advantage that the atlas is (can be) just one single big texture, and thus, the meshes that use it can be stored as a single meshbuffer, with the advantages this can also provide. Of course, the levels should be exported as a single model, and you have to map the material properties within the atlas, instead of per model, but the number of draw calls also reduce.

It is still a large texture, and it may use much ram, but you are using less texture resources when rendering, and this can improve performance too.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Lonesome Ducky
Competition winner
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Post by Lonesome Ducky »

Yep, texture atlases are great for performance. But remember that they suffer greatly from mipmap bleeding, and solutions to this are not always trivial.
roelor
Posts: 240
Joined: Wed Aug 13, 2008 8:06 am

Re: Which texture format uses least video memory?

Post by roelor »

I don't know if my method will work very well, but I am using 2 scenemanagers for the rendering of my visuals (I haven't come very far tho) this in theory should let you display low resolution models and textures far away and let you show high detail stuff up close, the only thing you have to do is assign the low detail models etc to the low detail scene manager then load in not loaded stuff as you get close to them.
devsh
Competition winner
Posts: 2057
Joined: Tue Dec 09, 2008 6:00 pm
Location: UK
Contact:

Re: Which texture format uses least video memory?

Post by devsh »

convert your textures to YUVA and split them into 2 separate planes (textures) one R8G8/LUM_ALPHA (2 channel) texture to code luminosity and alpha at full res and another for cR and cB. The good thing here is you usually do a 4:2:2 ratio where the YA texture is full res (1024x1024 for example) and the UV texture is quarter res (512x512) YOU GET DECENT LOOKING NON-PIXELATED IMAGES LIKE THAT!!! Bink and H264 do it!!! You just need a shader to decode the planes into RGBA... also this is the format best suited for texture streaming because you should care about loading the lum_a first and then upscale the UV
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

Re: Which texture format uses least video memory?

Post by 3DModelerMan »

I'm actually writing a patch for DXT1 and DXT3 compressed textures in Irrlicht right now.
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
ACE247
Posts: 704
Joined: Tue Mar 16, 2010 12:31 am

Re: Which texture format uses least video memory?

Post by ACE247 »

NICE! This is an old topic, but nonetheless, go on. :)
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Re: Which texture format uses least video memory?

Post by Cube_ »

old?
october 18 isn't that long ago...
"this is not the bottleneck you are looking for"
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Re: Which texture format uses least video memory?

Post by serengeor »

aaammmsterdddam wrote:old?
october 18 isn't that long ago...
Nope, it's 'Sat Oct 16, 2010 9:26 pm'
Working on game: Marrbles (Currently stopped).
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: Which texture format uses least video memory?

Post by hendu »

devsh wrote:convert your textures to YUVA and split them into 2 separate planes (textures) one R8G8/LUM_ALPHA (2 channel) texture to code luminosity and alpha at full res and another for cR and cB. The good thing here is you usually do a 4:2:2 ratio where the YA texture is full res (1024x1024 for example) and the UV texture is quarter res (512x512) YOU GET DECENT LOOKING NON-PIXELATED IMAGES LIKE THAT!!! Bink and H264 do it!!! You just need a shader to decode the planes into RGBA... also this is the format best suited for texture streaming because you should care about loading the lum_a first and then upscale the UV
If you have fine color details, especially red, the 4:2:2 or 4:2:0 formats degrade quality visibly.
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Re: Which texture format uses least video memory?

Post by Virion »

you can try convert your texture to DDS after compression. DDS is slightly faster than normal formats because it can be read directly by the GPU.
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Re: Which texture format uses least video memory?

Post by Cube_ »

serengeor wrote:
aaammmsterdddam wrote:old?
october 18 isn't that long ago...
Nope, it's 'Sat Oct 16, 2010 9:26 pm'

nope, it is

Mon Oct 18, 2010 6:02 pm

**time zone differences you know :P**
"this is not the bottleneck you are looking for"
Post Reply