Jump to content

View more

Image of the Day

雑魚は多めにして、爽快感重視にしつつ・・・(´・ω・`)
早いとこ、ベースを作って、完成にもっていかないとね。
タイトルもまだ迷ってるだよなぁ。 
#indiedev  #indiegame #screenshotsaturday https://t.co/IwVbswGrhe
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Storing textures (game engine)

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 Flicklizic   Members   

1067
Like
0Likes
Like

Posted 24 March 2014 - 03:43 PM

Just a short question... I need to store and compress all my textures inside a single file...

 

Its better to save them as .dds, compress using zlib (for example) and load using directX "D3DX11CreateShaderResourceViewFromFile" after decompressing or should I store them as raw pixel data (RGBA channels), compress using zlib (again, zlib or any other) and load creating an empty texture, updating the buffer and then generate the mip maps?

 

Just some notes:

 

- Yes I need mip maps always.

- I use the 4 channels (RGBA) almost always.

- Currently I'm using DirectX11 and C++.

 

Thanks :)


- Flick


#2 kauna   Members   

2922
Like
3Likes
Like

Posted 24 March 2014 - 07:57 PM

You should use DDS format. After that, there is no limitation how you'll store the files on the disk ie. singular files or maybe some kind of a file system with single file.

 

I'm using DirectXTK and DirectX::CreateDDSTextureFromMemoryEx function to create textures from a memory buffer. This allows me to store data on disk however I want and unpack it to memory from where I can create the texture object.

 

Cheers!



#3 Flicklizic   Members   

1067
Like
0Likes
Like

Posted 25 March 2014 - 03:31 PM

I will probably structure my engine that way, thanks for the reply!


- Flick





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.