3D Models Help

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
User avatar
Slasher123
Posts: 21
Joined: Sun Jul 13, 2008 8:55
Location: California

3D Models Help

Post 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.
Attachments
3DModel.zip
The model and skin.
(125.13 KiB) Downloaded 117 times
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post 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.
User avatar
Slasher123
Posts: 21
Joined: Sun Jul 13, 2008 8:55
Location: California

Post 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"
Attachments
SpaceFlight.zip
Here's the project.
(127.46 KiB) Downloaded 149 times
User avatar
Nash
Developer
Developer
Posts: 1226
Joined: Sun Sep 25, 2005 1:49
Location: Kuala Lumpur, Malaysia
Contact:

Post 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)
User avatar
Slasher123
Posts: 21
Joined: Sun Jul 13, 2008 8:55
Location: California

Post 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.
User avatar
Nash
Developer
Developer
Posts: 1226
Joined: Sun Sep 25, 2005 1:49
Location: Kuala Lumpur, Malaysia
Contact:

Post 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
User avatar
Slasher123
Posts: 21
Joined: Sun Jul 13, 2008 8:55
Location: California

Post 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.
Locked

Return to “GZDoom”