Raydium 3D Game Engine

Official forum for everything about Raydium, ManiaDrive, MeMak, ...
It is currently Fri Oct 19, 2018 7:22 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: How to commit anim-data?
PostPosted: Sat May 16, 2009 9:51 pm 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
Hi, I'm back :D

I'm preparing the commit for the animation system. However the animated models data is on
(raydium)/data/anims/
How should I upload that?
Upload the files as regular media files in the repository looks a bad idea (there are a lof of subfiles per each animated model).
Ideas?

UPDATE:
I think I go to upload a tar file. So it will be just 1 file and the user have to option to extract it or not. Maybe tar support in raydium could be an interesting feature in a future.


Top
 Profile  
 
PostPosted: Sun May 17, 2009 4:02 pm 
Offline

Joined: Sun Oct 09, 2005 10:46 pm
Posts: 759
Hello vincente,

Tar or zip file support for media file will be great yes.

I think that automatic data download need to be keept as it's a great feature for new users.

Is there a problem due to the number of files ?

Have a nice day
Ouille.


Top
 Profile  
 
PostPosted: Tue May 19, 2009 7:53 am 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
The problem is each animated model in cal3d have a lot of files, even textures.
And the way it's implemented aims to have all them into a same folder.
So each animated folder has to be its own folder. A tar file also could be an option (but I didn't find good doc about libtar...)


Top
 Profile  
 
PostPosted: Wed May 20, 2009 11:29 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2590
Location: gnniiiii (Scrat)
Just an idea : we can perhaps deal with archives with the help of PHP. (there's an entire chapter in the documentation about this subject: http://www.php.net/manual/en/refs.compression.php )

It seems to me quite complex to deal with tar files directly in Raydium, but we can easily imagine that the animation system can call PHP when needed. For instance :

- The "user" asks for the "character1" animation
- Animation system (AS to make it short) look for an already existing ".../data/anims/character1" directory
- If not found, look for ".../data/anims/character1.tgz" (tgz is just an example)
- If not found -> R3S, as usual (not found again on servers ? -> error, of course)
- Once tgz file is found / downloaded, AS call PHP to extract the archive to ".../data/anims/character1" directory (and delete tgz ?)

It does not requires any big change to Raydium itself, and PHP seems to offer some sort of native support for this (perhaps with no new dependency :)

We can even imagine that R3S can do the inverse work: when you want to upload a animation with R3S (raydium_modler console -> /upload (?)...character1...(?) ), it generated a tgz archive from the directory and uploads it.

My 2 (probably not so clear :) cents.


Top
 Profile  
 
PostPosted: Thu May 21, 2009 9:28 am 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
Interesting... I'll give it a try ;)


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 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:  
cron
Powered by phpBB® Forum Software © phpBB Group