Command line tool for 3do->s3o

Command line tool for 3do->s3o

Share and discuss visual creations and creation practices like texturing, modelling and musing on the meaning of life.

Moderators: MR.D, Moderators

Post Reply
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Command line tool for 3do->s3o

Post by Beherith »

Does such a tool exist?
If so, what info is required by s3o that isnt in 3do? (like height, radius, etc)
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: Command line tool for 3do->s3o

Post by FLOZi »

The biggest difference is that s3o requires a uv map and a single texture.
User avatar
scifi
Posts: 848
Joined: 10 May 2009, 12:27

Re: Command line tool for 3do->s3o

Post by scifi »

Dont forget to mention reflectivness :wink:



Mostly the diferences are UVmap, single texture and reflectivness, the rest is prety mutch the same, iirc.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: Command line tool for 3do->s3o

Post by FLOZi »

texture2 can be omitted, if you're auto-converting a bunch of 3do you probably don't want one anyway?
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Command line tool for 3do->s3o

Post by Beherith »

I know I need an UV map and a texture, and am prepared for it. But I still need to know if such a tool exists :D

I haz planses.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: Command line tool for 3do->s3o

Post by FLOZi »

afaik, the only 3do -> s3o tool is Upspring.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Command line tool for 3do->s3o

Post by Beherith »

Can it be driven through the command line?
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Re: Command line tool for 3do->s3o

Post by rattle »

nope but the source is available so you could grab the responsible code and turn it into a command line utility...
Super Mario
Posts: 823
Joined: 21 Oct 2008, 02:54

Re: Command line tool for 3do->s3o

Post by Super Mario »

If you did convert upspring into a command line. Please upload it for me!
User avatar
SpliFF
Posts: 1224
Joined: 28 Jul 2008, 06:51

Re: Command line tool for 3do->s3o

Post by SpliFF »

UpSpring can in fact be driven from the commandline via Lua.

The problem is it's undocumented. The syntax is:

upspring -run file.lua

Which brings up the next issue, what goes IN file.lua to perform a conversion? I don't know exactly but the lua functions are defined in the SWIG wrapper (swig/upspring_wrapper.cxx) so you could try:

-- load the model
model = Load3DO("path/to/model.3do")
-- convert from 3DO texture atlas
ConvertToS3O(model, "path/to/3DO_texture.bmp", texW, texH)
-- save the S3O version
success = SaveS3O(model, "path/to/model.s3o")

I don't think you can pass commandline options for the script so you may need an external script to modify the lua script for each of your models.

To pull this off you'll really need a copy of the UpSpring source code and a lot of patience but in theory it should be possible.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Command line tool for 3do->s3o

Post by Beherith »

Thanks spliff! Thats exactly what I needed.

Igor! Hit the switch!
User avatar
oksnoop2
Posts: 1207
Joined: 29 Aug 2009, 20:12

Re: Command line tool for 3do->s3o

Post by oksnoop2 »

What are you doing?
User avatar
Hobo Joe
Posts: 1001
Joined: 02 Jan 2008, 21:55

Re: Command line tool for 3do->s3o

Post by Hobo Joe »

Waking Spring up for the first time, obviously.
User avatar
Masse
Damned Developer
Posts: 979
Joined: 15 Sep 2004, 18:56

Re: Command line tool for 3do->s3o

Post by Masse »

I bet he is making one giant texture that has all the ota textures in it and then he converts all 3do to s3o's and uses that giant texture for all of the units :)

Then we can get rid of 3do forever! I had this idea once.
Last edited by Masse on 03 Sep 2010, 12:52, edited 1 time in total.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Command line tool for 3do->s3o

Post by Beherith »

Close, but no cookie. Its gonna be way better than that.
User avatar
Karl
Panzerstahl Developer
Posts: 746
Joined: 01 Apr 2010, 21:05

Re: Command line tool for 3do->s3o

Post by Karl »

Beherith wrote:Close, but no cookie. Its gonna be way better than that.
You also improve the textures?
Post Reply

Return to “Art & Modelling”