Join us at the Oolite Anniversary Party -- London, 7th July 2024, 1pm
More details in this thread.

Dat2Obj & Dat2ObjTex can't handle >1 texture. Any sol

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

User avatar
Captain Berf
Competent
Competent
Posts: 55
Joined: Mon Nov 09, 2009 1:19 am
Location: USA, 1.5 Miles Up

Dat2Obj & Dat2ObjTex can't handle >1 texture. Any sol

Post by Captain Berf »

The Python scripts can't handle (AFAICT) a .dat with more than one texture -- no UV coordinates are present in the output .obj (according to LithUnmap & UVmap).

Any way to get a working UV map from one of these .dats?

Thanks.
__________
______
Captain Berf
User avatar
Frame
---- E L I T E ----
---- E L I T E ----
Posts: 1477
Joined: Fri Mar 30, 2007 8:32 am
Location: Witchspace

Post by Frame »

misread dat2obj as obj2dat :oops:

but I never saw dat2obj anywhere..

so strike everything below

nothing important
Bounty Scanner
Number 935
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Post by Eric Walch »

Frame wrote:
misread dat2obj as obj2dat :oops:

but I never saw dat2obj anywhere..
One is here Download the dropObj2DatTex file and you'll find it also contain a script the other way round. But I got mine originally from somewhere else. And I modified it a bit so it also became a drop script like the other and did not need python itself.
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post by Kaks »

the latest versions are found here:

http://svn.berlios.de/svnroot/repos/ool ... onverters/

It took me some trial & error to modify Dat2Obj (no textures) into the present - one texture only - Dat2ObjTex. Unfortunately, I haven't quite started looking at the more complex multiple textures case.

Even though the .obj to .dat conversion is working properly on multiple textures, I don't think there's a multiple textures .dat to .obj converter, at least for the moment being... :(

But if anyone wants to improve on the present script, I'll be more than happy to upload the updated script to the right place! :)
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
Chaky
Deadly
Deadly
Posts: 213
Joined: Sat Aug 15, 2009 6:15 am

Post by Chaky »

I've downloaded one with kirin_sports oxp

It sligtly differs from the one above

*snipped*

My Py is next to nothing, so I have no idea what is the differernce in functionality.


Edit: As I said.. my reading of py is equal to my making of pies.
Last edited by Chaky on Sun Nov 15, 2009 8:23 pm, edited 2 times in total.
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post by Kaks »

Err, you're talking

Obj2Dat, while the question was about Dat2Obj...
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
Chaky
Deadly
Deadly
Posts: 213
Joined: Sat Aug 15, 2009 6:15 am

Post by Chaky »

Oopsie..

That is essentially a "potato-potato" situation to me.

Anyway, the original and one in kirin_sport do differ. I was wondering if someone improoved it.. or just customised it.
Last edited by Chaky on Mon Nov 16, 2009 9:36 am, edited 1 time in total.
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Post by Eric Walch »

Kaks wrote:
I don't think there's a multiple textures .dat to .obj converter, at least for the moment being... :(
For the mac you can use DryDock. It will save a multiple texture file into obj format.
User avatar
Captain Berf
Competent
Competent
Posts: 55
Joined: Mon Nov 09, 2009 1:19 am
Location: USA, 1.5 Miles Up

Post by Captain Berf »

Is it possible / advisable to put the different conversion scripts on the main Berlios download page? The variety of links made it difficult to determine the most current version.
__________
______
Captain Berf
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post by Kaks »

Captain Berf wrote:
The variety of links made it difficult to determine the most current version.
Sorry, I'm a bit confused,

http://svn.berlios.de/svnroot/repos/ool ... onverters/

Only contains the most current version of each of the conversion tools.

What variety of links are you referring to?
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
Captain Berf
Competent
Competent
Posts: 55
Joined: Mon Nov 09, 2009 1:19 am
Location: USA, 1.5 Miles Up

Post by Captain Berf »

I can't remember exactly. I saw a reference to Obj2Dat in a tutorial so I searched out Dat2Obj. Lots of noise. At least one link to a very old version. Found a link burried under Oolite Linux Rev xxxx. I don't know what Linux trunk revision is current offhand. Also files under Linux are usually for Linux in my experience. Wasn't sure the script wasn't Linux specific. There were no version numbers. The vaguely titled forum thread that I now see contains the links did not come up in the search.

For such necessary tools, and specifically tools used by people who don't comb through the source and the trunk regularly, they were hard to find. Or maybe it is just me.

Not trying to antagonize but they were a pain to find and I had no confidence they were the current version.
__________
______
Captain Berf
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Post by Eric Walch »

Captain Berf wrote:
IFor such necessary tools, and specifically tools used by people who don't comb through the source and the trunk regularly, they were hard to find. Or maybe it is just me
When you can give me a logic place to refer from the wiki, than you can link to berlios from there.
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane »

The List of Software seems like a logical place.?!?
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Post by Eric Walch »

Eric Walch wrote:
Kaks wrote:
I don't think there's a multiple textures .dat to .obj converter, at least for the moment being... :(
For the mac you can use DryDock. It will save a multiple texture file into obj format.
Drydock has just one bug: it flips the texture upside-down. So to be able to proceed you must also mirror your png file.

Today I tried to convert it twice. once with drydock, back with objToDat and again with drydock. Now I had a correctly textured wings file but with all texture on the inside of the ship :cry:
Using the invert function in Wings itself I inverted it back to the outside. Finally I had my ship with multiple textures in wings. :wink:

(In a future release of dredgers.oxp, the player ship no longer will have that annoying line on the screen. Quite a work for just removing a few dots :roll: )
Last edited by Eric Walch on Tue Dec 15, 2009 9:35 pm, edited 1 time in total.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Eric Walch wrote:
Drydock has just one bug: it flips the texture upside-down.
Upside-down? The only flipping I’m aware of is on the Z axis of the model; what this corresponds to in the texture depends on your UV mapping. (I thought I’d fixed this, but it’s been so long since I worked on DD I can’t really say for sure.)
Post Reply