Page 1 of 2

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

Posted: Sat Nov 14, 2009 1:37 am
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.

Posted: Sun Nov 15, 2009 6:58 pm
by Frame
misread dat2obj as obj2dat :oops:

but I never saw dat2obj anywhere..

so strike everything below

nothing important

Posted: Sun Nov 15, 2009 7:31 pm
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.

Posted: Sun Nov 15, 2009 8:11 pm
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! :)

Posted: Sun Nov 15, 2009 8:19 pm
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.

Posted: Sun Nov 15, 2009 8:21 pm
by Kaks
Err, you're talking

Obj2Dat, while the question was about Dat2Obj...

Posted: Sun Nov 15, 2009 8:29 pm
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.

Posted: Sun Nov 15, 2009 9:28 pm
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.

Posted: Sun Nov 15, 2009 10:55 pm
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.

Posted: Mon Nov 16, 2009 9:34 am
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?

Posted: Tue Nov 17, 2009 3:24 am
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.

Posted: Tue Nov 17, 2009 9:15 am
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.

Posted: Tue Nov 17, 2009 10:47 am
by Commander McLane
The List of Software seems like a logical place.?!?

Posted: Tue Dec 15, 2009 9:21 pm
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: )

Posted: Tue Dec 15, 2009 9:23 pm
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.)