Managed to get a model of a giant cigarette looking pretty good in Milkshape, exported it, changed the requisite lines, did UCC MAKE with no problems reported, shows in UED2 now as subclass of ut_decoration, added it to my map .... But the textures are wrong ... They look right in Milkshape 3d view from all angles, but in UED2 one texture covers the whole outside, and the others have been shifted and you can see them partway down the inside of the cigarette if you look end-on at it.
Possible problems: 1) i'm using an 256x256 8bit 256-color .bmp ... Thought i read somewhere that was okay, but does it have to be a .pcx or something?
2) In reading some other posts here and there i've heard it said to make sure your animation does not extend outside of a 256x256 bounding box or you might have problems, also i've read 128x128. In Milkshape, my cigarette is 32x320 (i have no idea what units MS3D uses), but i have no animations just the still image (set the # of animations to 1 in the .uc file) ... Could my dimensions be causing the problem? Yet i notice the Lightbox deco in UT is twice as tall as my cigarette at its default scale of 1.0, so hmmm ....
Any other ideas?
here is my cig.uc file:
class cig extends ut_Decoration;
#exec MESH IMPORT MESH=cig ANIVFILE=MODELS\cig_a.3d DATAFILE=MODELS\cig_d.3d X=0 Y=0 Z=0
#exec MESH ORIGIN MESH=cig X=0 Y=0 Z=0
#exec MESH SEQUENCE MESH=cig SEQ=All STARTFRAME=0 NUMFRAMES=1
#exec MESH SEQUENCE MESH=cig SEQ=Still STARTFRAME=0 NUMFRAMES=1
#exec MESHMAP NEW MESHMAP=cig MESH=cig
#exec MESHMAP SCALE MESHMAP=cig X=0.1 Y=0.1 Z=0.2
#exec TEXTURE IMPORT NAME=Jtex1 FILE=Textures\cigskins.bmp GROUP=Skins FLAGS=2
#exec TEXTURE IMPORT NAME=Jtex1 FILE=Textures\cigskins.bmp GROUP=Skins PALETTE=Jtex1
#exec MESHMAP SETTEXTURE MESHMAP=cig NUM=1 TEXTURE=Jtex1
defaultproperties
{
DrawType=DT_Mesh
Mesh=cig
}
Possible problems: 1) i'm using an 256x256 8bit 256-color .bmp ... Thought i read somewhere that was okay, but does it have to be a .pcx or something?
2) In reading some other posts here and there i've heard it said to make sure your animation does not extend outside of a 256x256 bounding box or you might have problems, also i've read 128x128. In Milkshape, my cigarette is 32x320 (i have no idea what units MS3D uses), but i have no animations just the still image (set the # of animations to 1 in the .uc file) ... Could my dimensions be causing the problem? Yet i notice the Lightbox deco in UT is twice as tall as my cigarette at its default scale of 1.0, so hmmm ....
Any other ideas?
here is my cig.uc file:
class cig extends ut_Decoration;
#exec MESH IMPORT MESH=cig ANIVFILE=MODELS\cig_a.3d DATAFILE=MODELS\cig_d.3d X=0 Y=0 Z=0
#exec MESH ORIGIN MESH=cig X=0 Y=0 Z=0
#exec MESH SEQUENCE MESH=cig SEQ=All STARTFRAME=0 NUMFRAMES=1
#exec MESH SEQUENCE MESH=cig SEQ=Still STARTFRAME=0 NUMFRAMES=1
#exec MESHMAP NEW MESHMAP=cig MESH=cig
#exec MESHMAP SCALE MESHMAP=cig X=0.1 Y=0.1 Z=0.2
#exec TEXTURE IMPORT NAME=Jtex1 FILE=Textures\cigskins.bmp GROUP=Skins FLAGS=2
#exec TEXTURE IMPORT NAME=Jtex1 FILE=Textures\cigskins.bmp GROUP=Skins PALETTE=Jtex1
#exec MESHMAP SETTEXTURE MESHMAP=cig NUM=1 TEXTURE=Jtex1
defaultproperties
{
DrawType=DT_Mesh
Mesh=cig
}