PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

loading 3ds files

Hi,
I am working on Nokia N93 for loading 3ds files using Edgelib. I have a doubt. When I install the sis file in the device it works well. But what I wanted to know is that I want to build the sis file without putting the .3ds file and the textures. After that i want to load the 3ds file from the file system of the device itself instead of loading the files everytime. Is it possible to do such a thing? If so, can you please tell me about it and how to test it using Edgelib before we test it for the device? I am using the Edge IDE builder.

Hoping for a reply.

Thank you
coolkc
Hi Coolkc,

I'm not sure what you exactly mean. Can you further eloberate on what you're trying to accomplish?

Do you want to create a sis file that only installs the resource files once, so you only have to update the app/exe file during development?
Hi,

I am sorry that I could not put the question in the right way.
I will expalin it with a small example. Suppose if I want to load three 3ds files space1, space2, space3.
When I run in edge IDE, to load space1 I have to put the file in Installs and then build the project to get the sis file. Similarly for space2 and space3. But what I wanted to do is I want to create the sis file without putting the files in the Installs folder. Then put this sis file in the N93 device.After that load the space1,2,3 files into the device. So whenever I select any of the above files that particular file only should be loaded into the sis file and the application should run.
So I wanted to know if such kind of thing is poosible using Edgelib i.e. loading the files after creating the sis files by just specifying the path or directory or filesystem location.
Hope I could put the question in a better way now.

Thank you
coolkc
Hi,

After reading your question you're currently building the application with the 3ds files in it. Your files in the EdgeIDE may look like this:

Code:

Source files
app.cpp
Header files
main.h
Resource files
Install
space1.3ds
space2.3ds
space3.3ds


Let me rephrase your question: you are trying to create a .sis file with only the game executable in it (and not the space 3ds files). Then you're trying to load these files separately. Can you tell me how you want to load these files separately, by making another .sis file?

Also, have you tried using EDGELIB resource packs (.epk files) using the EDGELIB Packer tool?
Hi,
You got the question correctly. Yeah but the space files must be placed somewhere in the filesystem of the device N93. So I have no idea how to load the 3ds files into the sis file when they are anywhere in the device. For elaboration i mean like the m3g application in Java can track the files in the device and load them into the sis files this is also similar.

No I havent tried the Edgelib packer(.epk) tool?? Can it serve my purpose???

Thank you,
coolkc
Hi coolkc,
Are you trying to create an exe not containing the 3d files?
a .sis is an installation file, a bit like a .cab on windows platforms.
So what you can do is create your exe without any 3d files as resources.
Then in your sis installation file you can include both your exe and your 3d files.

Am I understanding correctly?

Regards.
Vincent.
Hi Coolkc,

Were you able to solve your problem?
Hi,
Sorry I was out of station for a while.
I am sorry but I did not understand exactly. Can you let me know the solution more elaborately if possible with some example.

Thank you

coolkc
Hi Coolkc,

We recommend using the EDGELIB packages (.epk files) to create platform independent resource package files.

Use the EDGELIB Packer tool to add resources (like your 3ds files) to the package file. The EDGELIB Packer Tool is included in the EDGELIB SDK.

See the File Tutorial for more information: http://www.edgelib.com/index.php?node=135

Regards,
Hi,

Thank you for the reply.
I want to ask a direct question. Is it possible to create an application using Edge IDE that can load the 3ds models by downloading from a server and then loading it?
By using the package tool also we need to include the 3ds models along with the exe files but what I want is that the application should run even if we download the models from a different server. Then the model could be always different in each case.
Can you help me with this?

Thank you
coolkc
Hi Coolkc,

Sure you can do this. You could fetch your 3ds model from a webserver using EDGELIB's event-driven network class. Use EHTTPRequest to download any file you like. Process the data once it has arrived.

Find more information on using HTTP requests in the Networking tutorial: http://www.edgelib.com/index.php?node=554

Regards,