Login  Register

Re: Little trouble with loading DDS-Files

Posted by adi on Oct 16, 2012; 7:08pm
URL: https://forum.jogamp.org/Little-trouble-with-loading-DDS-Files-tp4026502p4026517.html

Thanks for your hint.
I have found another solution.
First i load all my textures in the main memory.
In this phase the textures must not have a opengl context.
(I think this is a better approach to organise many textures in a program)
In the init - part then, i load all textures in the graphic card, an free the
main memory from the texture datas.

Then i have rewrite the class "com.jogamp.opengl.util.texture.spi.DDSImage",
so that it can read packed cubemaps (holds the 6 cubemap textures in a single dds with a tool from Nvidea).
I hope this is ok?
Mipmapping this cubemap is then relative simple.