Export / Reimport Static Mesh

A refuge for those migrating from the fallen DXEditing.com and a place for general discussion relating to Deus Ex editing (coding, mapping, etc).
Post Reply
User avatar
SilverSpook
MJ12
Posts: 319
Joined: Wed Feb 15, 2012 8:34 am

Export / Reimport Static Mesh

Post by SilverSpook »

Hi, I'm trying to make a new texture for an existing static mesh, in this case the binoculars. I exported them via the WOTGreal Package Exporter to Unreal .3d files, then reimported with a modified texture to my own class. The item class file compiles find and seems to be coming in with the modified texture, but model is showing up as twisted garbled random geometry. Anyone know why this might be happening or have any experience with that exporter? Thanks.

Here's code for the item:

Code: Select all


class Sousveiller extends Binoculars;

//
// Mesh / Textures
//
#exec mesh IMPORT MESH=Sousveiller ANIVFILE=Models\Binoculars_a.3d DATAFILE=Models\Binoculars_d.3d ZEROTEX=1
#exec MESHMAP scale MESHMAP=Sousveiller X=0.0001625 Y=0.0001625 Z=0.0001625//X=0.00390625 Y=0.00390625 Z=0.00390625
#exec mesh SEQUENCE MESH=Sousveiller SEQ=All		STARTFRAME=0	NUMFRAMES=1
#exec mesh SEQUENCE MESH=Sousveiller SEQ=Still	STARTFRAME=0	NUMFRAMES=1

#exec texture IMPORT NAME=SousveillerTex1 FILE=Textures\SousveillerTex1.pcx GROUP="Skins"
#exec MESHMAP SETTEXTURE MESHMAP=Sousveiller NUM=0 TEXTURE=SousveillerTex1

// Icon textures
#exec texture IMPORT NAME=LargeIconSousveiller FILE=Textures\LargeIconSousveiller.pcx GROUP=WEAPONS FLAGS=2

defaultproperties
{
     ItemName="Sousveiller"
     Description="A hi-spec 3D camera.  Used to capture facial recognition profiles for identity masking."
     beltDescription="SOUS"
     largeIcon=Texture'LargeIconSousveiller'
     Mesh=LodMesh'DXMod.Sousveiller'
     PlayerViewMesh=LodMesh'DXMod.Sousveiller'
     PickupViewMesh=LodMesh'DXMod.Sousveiller'
     ThirdPersonMesh=LodMesh'DXMod.Sousveiller'
}

Image
User avatar
SilverSpook
MJ12
Posts: 319
Joined: Wed Feb 15, 2012 8:34 am

Re: Export / Reimport Static Mesh

Post by SilverSpook »

Well, I tried using the <a href=http://www.planetdeusex.com/tack/unr2de ... tml>Unreal to Deus Ex mesh converter</a> which has helped the garbled mess, but there's still some strange spike artifact coming out of the mesh.
Attachments
Shot0001.jpg
Image
DDL
Traditional Evil Scientist
Traditional Evil Scientist
Posts: 3791
Joined: Mon Oct 17, 2005 10:03 am

Re: Export / Reimport Static Mesh

Post by DDL »

Wh..why are you exporting and reimporting? Why not just reskin the mesh?

Simply add
multiskins(0)=texture'yournewtexture'
to your binoculars' defaultproperties.

Exporting and reimporting meshes from DX almost never works.
User avatar
SilverSpook
MJ12
Posts: 319
Joined: Wed Feb 15, 2012 8:34 am

Re: Export / Reimport Static Mesh

Post by SilverSpook »

Oh, right, duh. Thanks.
Image
Post Reply