Page 1 of 1

png transparency + a texture questions

Posted: Mon May 02, 2011 4:49 am
by slenkar
1-In the EasyGl2d examples folder there is an example called sprites
when I put some black on the 'anya.png' picture it doesnt show up as transparent
(I am using the GL_TEXTURE_COLOR0_TRANSPARENT flag when loading the image )

Is there a way of using the transparency in the png in the sprite?

2-If I include 100 images in a NDS file they wont take up any video ram unless I actually load them with glLoadsprite- is this correct?

Re: png transparency + a texture questions

Posted: Mon May 02, 2011 2:10 pm
by slenkar
If I include pictures as BIN files they wont take up any normal RAM either will they?

Re: png transparency + a texture questions

Posted: Mon May 02, 2011 4:24 pm
by elhobbs
yes, they will take up normal ram if you include bin files.

Re: png transparency + a texture questions

Posted: Mon May 02, 2011 5:00 pm
by slenkar
For example, GTA for NDS is about 128MB, how do they prevent all assets going into RAM?


If it cant be done thats OK, but I just want to make sure.

Re: png transparency + a texture questions

Posted: Mon May 02, 2011 6:04 pm
by elhobbs
2 options for ds/dsi homebrew are libfat and libfilesystem. look in the examples\nds\filesystem directory under your devkitpro installation.

Re: png transparency + a texture questions

Posted: Mon May 02, 2011 6:33 pm
by slenkar
all the examples are for text files, do you have any examples for loading textures?

Re: png transparency + a texture questions

Posted: Mon May 02, 2011 9:34 pm
by elhobbs
no, you may need to put some effort in at this point.

the same steps are used to read txt files as bin files.