Dat2Obj & Dat2ObjTex can't handle >1 texture. Any sol
Moderators: winston, another_commander
- Captain Berf
- 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
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.
Any way to get a working UV map from one of these .dats?
Thanks.
__________
______
Captain Berf
______
Captain Berf
misread dat2obj as obj2dat
but I never saw dat2obj anywhere..
so strike everything below
nothing important
but I never saw dat2obj anywhere..
so strike everything below
Bounty Scanner
Number 935
Number 935
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
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.Frame wrote:misread dat2obj as obj2dat
but I never saw dat2obj anywhere..
UPS-Courier & DeepSpacePirates & others at the box and some older versions
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!
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)
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.
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.
Err, you're talking
Obj2Dat, while the question was about Dat2Obj...
Obj2Dat, while the question was about Dat2Obj...
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
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.
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.
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
For the mac you can use DryDock. It will save a multiple texture file into obj format.Kaks wrote:I don't think there's a multiple textures .dat to .obj converter, at least for the moment being...
UPS-Courier & DeepSpacePirates & others at the box and some older versions
- Captain Berf
- Competent
- Posts: 55
- Joined: Mon Nov 09, 2009 1:19 am
- Location: USA, 1.5 Miles Up
Sorry, I'm a bit confused,Captain Berf wrote:The variety of links made it difficult to determine the most current version.
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)
- Captain Berf
- Competent
- Posts: 55
- Joined: Mon Nov 09, 2009 1:19 am
- Location: USA, 1.5 Miles Up
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.
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
______
Captain Berf
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
When you can give me a logic place to refer from the wiki, than you can link to berlios from there.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
UPS-Courier & DeepSpacePirates & others at the box and some older versions
- Commander McLane
- ---- 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:
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Drydock has just one bug: it flips the texture upside-down. So to be able to proceed you must also mirror your png file.Eric Walch wrote:For the mac you can use DryDock. It will save a multiple texture file into obj format.Kaks wrote:I don't think there's a multiple textures .dat to .obj converter, at least for the moment being...
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
Using the invert function in Wings itself I inverted it back to the outside. Finally I had my ship with multiple textures in wings.
(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 )
Last edited by Eric Walch on Tue Dec 15, 2009 9:35 pm, edited 1 time in total.
UPS-Courier & DeepSpacePirates & others at the box and some older versions
- JensAyton
- Grand Admiral Emeritus
- Posts: 6657
- Joined: Sat Apr 02, 2005 2:43 pm
- Location: Sweden
- Contact:
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.)Eric Walch wrote:Drydock has just one bug: it flips the texture upside-down.
E-mail: [email protected]