Raydium 3D Game Engine

Official forum for everything about Raydium, ManiaDrive, MeMak, ...
It is currently Thu Mar 28, 2024 9:42 pm

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Sprite_viewer tool
PostPosted: Fri Jul 04, 2008 1:25 pm 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
I have commit a new tool for check your sprites.
You have to indicate the sprite filename in the commando like like this:
Code:
./odyncomp.sh sprite_viewer.c spritefile.sprite


All the options are shown in the screen.
Currently you can not change to a different sprite. You have to close the app and launch it again.

For testing purpose you can download a few media here. Just extract it in the raydium/trunk folder.

http://87.216.217.107/raydium/sprite-example-data.tar.gz

This should work:
Code:
./odyncomp.sh sprite_viewer.c sprite1.sprite

Code:
./odyncomp.sh sprite_viewer.c lanchamala.sprite


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 16, 2008 1:13 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
You should upload sprite1.sprite and its texture to R3S, so people can test easily the sprite viewer. Vicente, you must remove "sprite_viewer.config" from the SVN, since it's not strictly source code, and upload it to R3S too.

I've also cleaned a bit the source code of the viewer.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 16, 2008 1:31 pm 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
Ok, but How can I upload files in the repository? Last time I used raydium_modler I couldnt.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 16, 2008 1:36 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
raydium_modler is the easiest way to do:

/upload file1
/upload file2
...

What's the error ?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 18, 2008 12:43 pm 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
Done. It worked fine.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 18, 2008 1:10 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
Nice. I change the "usage" message of the sprite viewer to give your sample sprite. When you commit things to the trunk, always try to think about how a total Raydium newbie will be able to see very quickly how things works.

Is "Raydium: For sprite X, the frame Y has the texture ID Z(A)" messages are important for using sprites ? It makes a lot of "noise" in the console.
It's a real question ... if it make thing easier when using sprites, we keep it.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 18, 2008 7:47 pm 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
That comment was part of the debug output. Fixed ;)


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 28 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