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.

Postby Mel » Mon Oct 18, 2010 5:02 pm

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.
http://santiagong.daportfolio.com/
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
User avatar
Mel
Competition winner
 
Posts: 1783
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Postby Lonesome Ducky » Mon Oct 18, 2010 10:56 pm

Yep, texture atlases are great for performance. But remember that they suffer greatly from mipmap bleeding, and solutions to this are not always trivial.
User avatar
Lonesome Ducky
Competition winner
 
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Re: Which texture format uses least video memory?

Postby roelor » Mon Nov 14, 2011 8:04 am

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.
( : I like the old school text smileys best! : )
User avatar
roelor
 
Posts: 236
Joined: Wed Aug 13, 2008 8:06 am

Re: Which texture format uses least video memory?

Postby devsh » Sun Nov 20, 2011 7:27 pm

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
Portfolio (WIP) and Development Blog:
http://indirectlightandmagic.tumblr.com/

Do you want to hire a GLSL graphics programmer cheaply???
Try me!
http://indirectlightandmagic.tumblr.com/contact
User avatar
devsh
Competition winner
 
Posts: 1303
Joined: Tue Dec 09, 2008 6:00 pm
Location: UK

Re: Which texture format uses least video memory?

Postby 3DModelerMan » Mon Nov 21, 2011 2:07 am

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/3DModelerMan/replicator#tipjar
User avatar
3DModelerMan
 
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

Re: Which texture format uses least video memory?

Postby ACE247 » Mon Nov 21, 2011 7:33 am

NICE! This is an old topic, but nonetheless, go on. :)
H8L6L5M4G3H5M7N8S7N9O1R8J1P5M7N9O4P2Q5R6T7U4M3N8X6S5T8W (If you want the secret, why not 'TRY' decrypting it? )
This Door's lock doesn't need a key, the Lock is the key to open the Lock and you don't know how to turn the key...
Link: My Blog :)
User avatar
ACE247
 
Posts: 695
Joined: Tue Mar 16, 2010 12:31 am
Location: Namibia

Re: Which texture format uses least video memory?

Postby aaammmsterdddam » Mon Nov 21, 2011 7:53 am

old?
october 18 isn't that long ago...
(n^(n-n))-1
aaammmsterdddam
 
Posts: 520
Joined: Mon Oct 24, 2011 10:03 pm

Re: Which texture format uses least video memory?

Postby serengeor » Mon Nov 21, 2011 2:53 pm

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).
User avatar
serengeor
 
Posts: 1695
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Re: Which texture format uses least video memory?

Postby hendu » Mon Nov 21, 2011 3:44 pm

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.
hendu
 
Posts: 1552
Joined: Sat Dec 18, 2010 12:53 pm

Re: Which texture format uses least video memory?

Postby Virion » Tue Nov 22, 2011 3:40 am

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.
User avatar
Virion
 
Posts: 2102
Joined: Mon Dec 18, 2006 5:04 am
Location: Malaysia

Re: Which texture format uses least video memory?

Postby aaammmsterdddam » Tue Nov 22, 2011 11:56 pm

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**
(n^(n-n))-1
aaammmsterdddam
 
Posts: 520
Joined: Mon Oct 24, 2011 10:03 pm

Previous

Return to Everything 2d/3d Graphics

Who is online

Users browsing this forum: No registered users and 0 guests