Page 1 of 1

3D Models Help

Posted: Sun Jul 13, 2008 9:27
by Slasher123
Hello everyone. I'm having trouble with 3D models.

I know very little about 3D models, so I'll just explain everything I did and maybe someone will be able to help me with this problem.

I created the below model (skin also in the zip) in Blender, it's just a simple sphere with subsurf 3. Anyway I exported it as a .md3 file, and loaded it into my PK3.

This is the MODELDEF.txt:

Code: Select all

// Planet

Model Planet1
{
   Path "models/planet"
   Model 0 "Planet.md3"
   Skin 0 "Planet1.png"
   Scale 20.0 20.0 20.0
   ZOFFSET 32
   
   FrameIndex PLNT A 0 0
}
And this is the DECORATE.txt:

Code: Select all

// Planet 1

Actor Planet1 6000
{
   Radius 64
   Height 64
   +SOLID
   
   States
   {
      Spawn:
	     PLNT A -1
		 Loop
   }
}
The model load in fine, but this is what it looks like in-game:
[spoiler]Image[/spoiler]

That's a problem. It should look like the skin texture, right? Why doesn't it? I'm confused. Can anyone tell me what needs to be done to make it look better? Thanks.

Posted: Sun Jul 13, 2008 10:17
by Graf Zahl
I hate to repeat this advice over and over again:

If you have problems getting something to work, please post the ENTIRE thing in one package that can be started directly. Otherwise it's impossible to find out where something went wrong.
I have seen too often that some minor thing wasn't done right that can't be deduced from the fragments being posted so I won't even bother.

In other words, post a PK3 that can be started and the object summoned so that it can be checked out.

Posted: Sun Jul 13, 2008 11:46
by Slasher123
Sorry about that. It's just that it's not something I wanted to show off to the public as of yet, but if it helps to diagnose the problem, here it is.

You start out right in front of one. There are others on the map.

You can summon them by typing "summon Planet1"

Posted: Sun Jul 13, 2008 16:56
by Nash
As I suspected; your sphere hasn't been UV mapped at all. I'm sure Blender has several tools to easily UV map spheres automatically. Consult the Blender help or forums.

(BTW, your sphere is 320 polygons - that's a shitload of polygons for a simple sphere. You can achieve a sphere that is just as smooth-looking with far less amount of triangles)

Posted: Sun Jul 13, 2008 17:01
by Slasher123
Nash wrote:As I suspected; your sphere hasn't been UV mapped at all. I'm sure Blender has several tools to easily UV map spheres automatically. Consult the Blender help or forums.
Damn, I was afraid it would be something outside of GZDoom that's causing the problem. I have no idea what UV mapped means, so I'll have to go find out I guess. Will it solve the problem?
Nash wrote:(BTW, your sphere is 320 polygons - that's a shitload of polygons for a simple sphere. You can achieve a sphere that is just as smooth-looking with far less amount of triangles)
Thanks, I'll look into that too. I'm a complete newbie when it comes to 3D modeling.

Posted: Sun Jul 13, 2008 17:47
by Nash
http://en.wikipedia.org/wiki/UV_mapping - this article should help you understand the whole concept of UV mapping, AKA model unwrapping.

http://en.wikibooks.org/wiki/Blender_3D ... Map_Basics

I Googled this; I didn't read it, but a quick scan-through reveals that it's a good tutorial for unwrapping Blender, and also explains the concept.

EDIT:

Made a new sphere from scratch, just because (took 2 minutes)...

http://nash.wanzafran.com/doomstuff/SpaceFlight.zip

Posted: Sun Jul 13, 2008 18:34
by Slasher123
Excellent, thanks. The Blender tutorial link will be perfect for me to learn how to UV map.

And I see you've gone ahead and done my work for me. Thanks, that should also be helpful to learn from.