broken UVmap on export

Get some help with creating maps or modding.
Need a map editor or other tools, look here!
spliff
Greenhorn
Posts: 11
Joined: 09 Mar 2009, 14:02

broken UVmap on export

Post by spliff »

Hi,

I'm trying to convert PIE models from the latest release to 3DS files. I'm finding the texture coords are often inaccurate. I've tried the blender scripts (blender 2.48a / Python 2.5.2) and the shareware tool 3DConverter. The scripts are version 1.2 from development.wz2100.net

Image
Image

I don't have 3DSMax which I think puts me out of options so I was wondering if anybody has had more luck with this? Is it possible these tools only work with the original retail models? Is there a trick to fixing this? Are there other tools?

I want to export all of the weapons so I need a solution that is manageable for about 60 models (ie, not redoing the UVmaps by hand).
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: broken UVmap on export

Post by Buginator »

Do you have a list of the ones that don't work?
and it ends here.
spliff
Greenhorn
Posts: 11
Joined: 09 Mar 2009, 14:02

Re: broken UVmap on export

Post by spliff »

You got me there. It doesn't seem as bad as I originally thought. I've been going through them 1-by-1 and so far the only ones with obviously messed up textures are:

exturret - back
gnhblas - some fins
trhair - left side
trhcan - sides
trhgss - sides
trhlas - top
gnmacan - bottom
gnlrcktp - duplicate vertices errors
gnlsnsr1 - duplicate vertices errors

looks like turrets are the main culprits. Also models with radar dishes tend to trigger the duplicate vertices error.

Some of the others seem to have texture alignment off by a pixel or two but I can live with that.

I also loaded up my original warzone2100 cds and tried loading the models i pulled out with WDG Explorer but the python script chokes on the PCX texture files (thinks they're DDS or something).

I've still got about 50 files to convert but if my luck holds I'll probably only have to remap 10-15 models. I can live with that.

EDIT: Finished all the models, there's a couple of busted ones I forgot to add to my list (models with sensors mainly) but about 95% came out ok in the end.
Last edited by spliff on 23 Mar 2009, 01:50, edited 2 times in total.
spliff
Greenhorn
Posts: 11
Joined: 09 Mar 2009, 14:02

Re: broken UVmap on export

Post by spliff »

For quick reference I've dropped some screenshots here:
http://warriorhut.org/spring/mods/metal ... velopment/

And for "duplicate vertices" errors here's some output (from gnlrcktp.pie):

Code: Select all

version 2 pie detected
type 512 pie detected
basename: page-17-droid-weapons
ext: .png
texpage options: ['D:\\Apps\\Blender-2.48\\.blender\\texpages\\page-17-droid-wea
pons.png', 'D:\\Apps\\Blender-2.48\\.blender\\texpages\\page-17-droid-weapons-20
48.png', 'D:\\Apps\\Blender-2.48\\.blender\\texpages\\page-17-droid-weapons-512.
png', 'D:\\Apps\\Blender-2.48\\.blender\\texpages\\page-17-droid-weapons.jpg']
binding texture to texpage
selected texpage: D:\Apps\Blender-2.48\.blender\texpages\page-17-droid-weapons.p
ng
scaling by a factor of 1.0
UVs: [[0.703125, 0.750000](vector), [0.699219, 0.718750](vector), [0.687500, 0.7
18750](vector), [0.691406, 0.750000](vector)]
UVs: [[0.687500, 0.718750](vector), [0.679688, 0.750000](vector), [0.687500, 0.7
81250](vector), [0.691406, 0.750000](vector)]
UVs: [[0.687500, 0.781250](vector), [0.699219, 0.781250](vector), [0.703125, 0.7
50000](vector), [0.691406, 0.750000](vector)]
UVs: [[0.984375, 0.390625](vector), [1.000000, 0.390625](vector), [1.000000, 0.3
28125](vector), [0.984375, 0.328125](vector)]
UVs: [[0.687500, 0.781250](vector), [0.699219, 0.781250](vector), [0.699219, 0.7
18750](vector), [0.687500, 0.718750](vector)]
UVs: [[0.968750, 0.390625](vector), [0.984375, 0.390625](vector), [0.984375, 0.3
28125](vector), [0.968750, 0.328125](vector)]
UVs: [[0.984375, 0.390625](vector), [1.000000, 0.390625](vector), [1.000000, 0.3
28125](vector), [0.984375, 0.328125](vector)]
UVs: [[0.687500, 0.781250](vector), [0.699219, 0.781250](vector), [0.699219, 0.7
18750](vector), [0.687500, 0.718750](vector)]
UVs: [[0.968750, 0.390625](vector), [0.984375, 0.390625](vector), [0.984375, 0.3
28125](vector), [0.968750, 0.328125](vector)]
ERROR: duplicate vertices on same polygon line: 37
ERROR: patching invalid point or point reference: new point is at (1.0, 0.5, 0.0
)
UVs: [[0.109375, 0.785156](vector), [0.109375, 0.785156](vector), [0.121094, 0.7
65625](vector), [0.109375, 0.765625](vector)]
ERROR: duplicate vertices on same polygon line: 38
ERROR: patching invalid point or point reference: new point is at (1.0, 0.4, 0.0
)
UVs: [[0.109375, 0.785156](vector), [0.109375, 0.785156](vector), [0.113281, 0.7
65625](vector), [0.093750, 0.765625](vector)]
ERROR: duplicate vertices on same polygon line: 39
ERROR: patching invalid point or point reference: new point is at (1.0, 0.3, 0.0
)
UVs: [[0.109375, 0.785156](vector), [0.109375, 0.785156](vector), [0.109375, 0.7
65625](vector), [0.093750, 0.765625](vector)]
ERROR: duplicate vertices on same polygon line: 40
ERROR: patching invalid point or point reference: new point is at (1.0, 0.2, 0.0
)
UVs: [[0.109375, 0.785156](vector), [0.109375, 0.785156](vector), [0.121094, 0.7
65625](vector), [0.109375, 0.765625](vector)]
ERROR: duplicate vertices on same polygon line: 41
ERROR: patching invalid point or point reference: new point is at (1.0, 0.1, 0.0
)
UVs: [[0.109375, 0.785156](vector), [0.109375, 0.785156](vector), [0.113281, 0.7
65625](vector), [0.121094, 0.765625](vector)]
ERROR: duplicate vertices on same polygon line: 42
ERROR: patching invalid point or point reference: new point is at (1.0, 0.0, 0.0
)
UVs: [[0.109375, 0.785156](vector), [0.109375, 0.785156](vector), [0.109375, 0.7
65625](vector), [0.121094, 0.765625](vector)]
ERROR: duplicate vertices on same polygon line: 43
ERROR: patching invalid point or point reference: new point is at (1.0, -0.1, 0.
0)

etc...
spliff
Greenhorn
Posts: 11
Joined: 09 Mar 2009, 14:02

Re: broken UVmap on export

Post by spliff »

Oh yeah, and I tried the pie23ds.c tool from the trunk (Gentoo 64bit / lib3ds 1.3.0). Result wasn't quite what I'm looking for :gonk:

Image

I've tried models from the current release and the original CD. Also tried the -r and -y options for both formats.

Pity, would have been nice to be able to batch convert the PIE files