• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Model problems, maybe team color problems

Status
Not open for further replies.
Level 6
Joined
May 19, 2004
Messages
169
Hey, I'm sorry if this is posting somewhere else already, I've been searching for a few hours already and came up empty.

I'm trying to make my first custom model with a custom skin, (pretty simple, I'm trying to make a tomato for a map I'm considering making), but the skin doesn't show up in the world editor when I use this coding (or at least I'm assuming that's the problem, the model is red when I use Player Red.):

Code:
Version {
	FormatVersion 800,
}
Model "tomato3" {
	NumGeosets 3,
	NumBones 3,
	BlendTime 150,
	MinimumExtent { -21.8032, -15.3331, 4.08688 },
	MaximumExtent { 22.0617, 15.3331, 36.6441 },
	BoundsRadius 45.438,
}
Sequences 2 {
	Anim "Walk" {
		Interval { 0, 1200 },
	MinimumExtent { -21.8032, -15.3331, 4.08688 },
	MaximumExtent { 22.0617, 15.3331, 36.6441 },
	BoundsRadius 45.438,
	}
	Anim "Stand" {
		Interval { 1400, 2600 },
	MinimumExtent { -21.5148, -15.3331, 4.08688 },
	MaximumExtent { 21.8678, 15.3331, 36.6419 },
	BoundsRadius 45.3424,
	}
}
Textures 1 {
	Bitmap {
		Image "tomato.blp",
	}
}
Materials 1 {
	Material {
		Layer {
			FilterMode None,
			static TextureID 0,
		}
	}
}


Thanks in advance

Edit: I just tried this, and it crashed my World Editor:
Code:
Textures 3 {
	Bitmap {
		Image "tomato.blp",
	}
	Bitmap {
		Image "",
	}
	Bitmap {
		Image "",
		ReplaceableId 1,
	}
}

I've tried various things with ReplaceableId, but they all crashed my World Editor.
 
I still don't know what exactly is the problem but it looks like it is the texture. I also found many mistakes in the .mdl like bones pointing to none existing geosets, scale charts without keys, some extra {, etc.

Here's the model, try it out if it works. If it does not work. then I'm sure the error is in the blp image. Try using another converter for your .tga (I suggest that you use mago's model editor, or art tools)
 

Attachments

  • Tomato.mdx
    29 KB · Views: 117
Level 6
Joined
May 19, 2004
Messages
169
Okay thanks, I don't really know much about model editing yet and am using Gmax & Magos' GMax tutorial that's a year or two old.

Just tested it, it crashed again. Trying to use a different converter for the blp now... (In case it matters, here is the TGA I made in Photoshop, fairly inexpertly. All I did was made a normal image, and saved it as a TGA.)

Edit: I just tried one of the command line BLP converters, and it said my BLP needed to be a power of 2. Changed it from 200x200 to 256x256, and the converter worked. Reattaching the skin to my model in GMax, and exporting again.

Edit #2: Problem solved, thanks for suggesting using a different converter (can't believe I didn't think of that myself...) The problem was I didn't know BLPs are limited to powers of two for width/height.

Thanks for the help! :)
 

Attachments

  • tomato.tga
    156.3 KB · Views: 126
Last edited:
Status
Not open for further replies.
Top