Horde3D

Next-Generation Graphics Engine
It is currently 26.11.2024, 15:24

All times are UTC + 1 hour




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: 31.03.2009, 06:18 
Offline

Joined: 31.03.2009, 06:10
Posts: 2
As we would like to build a game with Horde3D, to secure our resources , is there any way that Horde3D can support to extract the resources from a compressed file, and load the resources in the compressed file from memory ?


Top
 Profile  
Reply with quote  
PostPosted: 31.03.2009, 08:35 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
Textures can be compressed using DDS. The rest of the resource data can be loaded using Horde3D::loadResource(). How you extract the resource data from any source you want is up to you. Horde3DUtils::loadResourcesFromDisk loads it directly from (non compressed) files, but you can of course write your own loadResourcesFromZip/Network/... but there's no such implementation available in the official package.


Top
 Profile  
Reply with quote  
PostPosted: 01.04.2009, 01:32 
Offline

Joined: 26.03.2008, 02:58
Posts: 160
Volker wrote:
Textures can be compressed using DDS. The rest of the resource data can be loaded using Horde3D::loadResource(). How you extract the resource data from any source you want is up to you. Horde3DUtils::loadResourcesFromDisk loads it directly from (non compressed) files, but you can of course write your own loadResourcesFromZip/Network/... but there's no such implementation available in the official package.


Should this be added to the official package to make it compatible with collada 1.5? v1.5 requires support for .zae files (compressed zip file with a collada xml manifest file.)

Quote:
All importers and exporters of COLLADA documents must now support the .zae archive format


Not that it's very important but if someone has the time or has this done already it would be nice to have a patch ;)


Top
 Profile  
Reply with quote  
PostPosted: 01.04.2009, 12:20 
Offline

Joined: 22.11.2007, 17:05
Posts: 707
Location: Boston, MA
DDd wrote:
Volker wrote:
Textures can be compressed using DDS. The rest of the resource data can be loaded using Horde3D::loadResource(). How you extract the resource data from any source you want is up to you. Horde3DUtils::loadResourcesFromDisk loads it directly from (non compressed) files, but you can of course write your own loadResourcesFromZip/Network/... but there's no such implementation available in the official package.


Should this be added to the official package to make it compatible with collada 1.5? v1.5 requires support for .zae files (compressed zip file with a collada xml manifest file.)
It would certainly be a nice addition to the converter, but since we don't load Collada files directly...

_________________
Tristam MacDonald - [swiftcoding]


Top
 Profile  
Reply with quote  
PostPosted: 01.04.2009, 21:34 
Offline

Joined: 26.03.2008, 02:58
Posts: 160
swiftcoder wrote:
It would certainly be a nice addition to the converter, but since we don't load Collada files directly...


I was thinking about the converter wend i wrote that ;)

If we add it to the converter why not have a more general facility and add it to Horde3dUtils :) I have code like that written in Java, but since i don't have my mobile game framework converted to Cpp (yet!), it will take some time before i add this. Perhaps someone else already has some code laying around that they can contribute :?:

For the network code this would add a network library dependency... perhaps this kind of facility is best suited to be added to Horde3D GameEngine project.


Top
 Profile  
Reply with quote  
PostPosted: 10.04.2009, 08:29 
Offline

Joined: 31.03.2009, 06:10
Posts: 2
Then I think i need to write my own package for loadresources from compress file. Also. there is a bullet physic wrapper. but i prefer Havok. It seems so many package need prepared by meself.


Top
 Profile  
Reply with quote  
PostPosted: 10.04.2009, 15:23 
Offline

Joined: 08.11.2006, 03:10
Posts: 384
Location: Australia
Horde is designed to load resources from memory (using Horde3D::loadResource) - but no file format for a "package" is implemented. The utility library provides Horde3DUtils::loadResourcesFromDisk as a default file loader, until you write your own. There are other libraries like PhysFS that you could use here.

Horde is just a graphics engine (but there are some game engines built on it), so a physics layer is a separate project than Horde itself.
Horde makes it pretty easy to update the graphics with data from most physics engines - my physics wrapper is only a few hundred lines in total.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group