Need Help with 3D Modelled Skins

Discuss all aspects related to modding Zandronum here.
Post Reply
Screenracer
 
Posts: 69
Joined: Mon May 27, 2013 5:29 pm

Need Help with 3D Modelled Skins

#1

Post by Screenracer » Fri Jun 14, 2013 7:14 pm

I am trying to make a 3d modeled skin and I know all about the SKININFO lump and the MODELDEF lump how ever I am confused on creating a 3d model into a skin.

User avatar
Ænima
Addicted to Zandronum
Posts: 3578
Joined: Tue Jun 05, 2012 6:12 pm

RE: Need Help with 3D Modelled Skins

#2

Post by Ænima » Fri Jun 14, 2013 7:22 pm

In MODELDEF, create a model for the default player actor (DoomPlayer).

Code: Select all

Model DoomPlayer
{ 
   Path "MD3\Player"
   SKIN 0 "Marine_G.png"
   SKIN 1 "Marine_W.png"
   MODEL 0 "Marineextra.md2"
   MODEL 1 "Marine_weapon.md2"

   Scale 1.25 1.25 1.25

   FrameIndex PLYC A 0 0   FrameIndex PLYC A 1 154
   FrameIndex PLYC B 0 1   FrameIndex PLYC B 1 155
   FrameIndex PLYC C 0 2   FrameIndex PLYC C 1 156
   FrameIndex PLYC D 0 3   FrameIndex PLYC D 1 159
   FrameIndex PLYC E 0 4   FrameIndex PLYC E 1 160
   FrameIndex PLYC F 0 5   FrameIndex PLYC F 1 161
   FrameIndex PLYC G 0 6   FrameIndex PLYC G 1 169
}
^From DS-Models.pk3.
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

Screenracer
 
Posts: 69
Joined: Mon May 27, 2013 5:29 pm

RE: Need Help with 3D Modelled Skins

#3

Post by Screenracer » Fri Jun 14, 2013 7:38 pm

Ænima wrote: In MODELDEF, create a model for the default player actor (DoomPlayer).

Code: Select all

Model DoomPlayer
{ 
   Path "MD3\Player"
   SKIN 0 "Marine_G.png"
   SKIN 1 "Marine_W.png"
   MODEL 0 "Marineextra.md2"
   MODEL 1 "Marine_weapon.md2"

   Scale 1.25 1.25 1.25

   FrameIndex PLYC A 0 0   FrameIndex PLYC A 1 154
   FrameIndex PLYC B 0 1   FrameIndex PLYC B 1 155
   FrameIndex PLYC C 0 2   FrameIndex PLYC C 1 156
   FrameIndex PLYC D 0 3   FrameIndex PLYC D 1 159
   FrameIndex PLYC E 0 4   FrameIndex PLYC E 1 160
   FrameIndex PLYC F 0 5   FrameIndex PLYC F 1 161
   FrameIndex PLYC G 0 6   FrameIndex PLYC G 1 169
}
^From DS-Models.pk3.
Just tried that but the skin dosnt appear in the skins menu.

User avatar
-Jes-
Frequent Poster Miles card holder
Posts: 975
Joined: Fri Aug 03, 2012 9:55 am
Location: Void Zone

RE: Need Help with 3D Modelled Skins

#4

Post by -Jes- » Fri Jun 14, 2013 7:56 pm

You can only define models for actors - not playerskins FOR actors.

As well, 3d models (for base) will not show in the skins menu.

User avatar
Ænima
Addicted to Zandronum
Posts: 3578
Joined: Tue Jun 05, 2012 6:12 pm

RE: Need Help with 3D Modelled Skins

#5

Post by Ænima » Fri Jun 14, 2013 7:58 pm

Screenracer wrote: Just tried that but the skin dosnt appear in the skins menu.
Well that's cuz it was for the base skin. :p

Btw what does your SKININFO look like?
-Jes- wrote: You can only define models for actors - not playerskins FOR actors.
Actually I think you can. Just replace "PLYC" in the model's frame definitions with whatever your skin's sprite name is.

EDIT:
BTW Screenracer, I forgot to mention that you do need sprites in order to have a model (that's just how models work in Zandro). You can use empty images if you want, it doesn't matter. As long as you have lump names to assign model states to.
Last edited by Ænima on Fri Jun 14, 2013 8:01 pm, edited 1 time in total.
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

Screenracer
 
Posts: 69
Joined: Mon May 27, 2013 5:29 pm

RE: Need Help with 3D Modelled Skins

#6

Post by Screenracer » Fri Jun 14, 2013 7:59 pm

You need sprites for a 3d modeled skin? :o

User avatar
-Jes-
Frequent Poster Miles card holder
Posts: 975
Joined: Fri Aug 03, 2012 9:55 am
Location: Void Zone

RE: Need Help with 3D Modelled Skins

#7

Post by -Jes- » Fri Jun 14, 2013 8:01 pm

Ænima wrote: Actually I think you can. Just replace "PLYC" in the model's frame definitions with whatever your skin's sprite name is.
Nope. Zandro will toss an error stating said frames do not exist in the actor.

As such, models cannot be used for playerskins. The only exception is Base, as it's not a skin in and of itself.
Last edited by -Jes- on Fri Jun 14, 2013 8:03 pm, edited 1 time in total.

Screenracer
 
Posts: 69
Joined: Mon May 27, 2013 5:29 pm

RE: Need Help with 3D Modelled Skins

#8

Post by Screenracer » Fri Jun 14, 2013 8:04 pm

-Jes- wrote:
Ænima wrote: Actually I think you can. Just replace "PLYC" in the model's frame definitions with whatever your skin's sprite name is.
Nope. Zandro will toss an error stating said frames do not exist in the actor.

As such, models cannot be used for playerskins. The only exception is Base, as it's not a skin in and of itself.
http://zandronum.com/forum/archive/inde ... hread-1052

EDIT:
I still have that skins file poking around somewhere on my hard drive. I'll try to find it so I can see how it was done.
Last edited by Screenracer on Fri Jun 14, 2013 8:07 pm, edited 1 time in total.

User avatar
Ænima
Addicted to Zandronum
Posts: 3578
Joined: Tue Jun 05, 2012 6:12 pm

RE: Need Help with 3D Modelled Skins

#9

Post by Ænima » Fri Jun 14, 2013 8:04 pm

-Jes- wrote:
Ænima wrote: Actually I think you can. Just replace "PLYC" in the model's frame definitions with whatever your skin's sprite name is.
Nope. Zandro will toss an error stating said frames do not exist in the actor.

As such, models cannot be used for playerskins. The only exception is Base, as it's not a skin in and of itself.
Huh. I could have sworn that someone had done it before. Unfortunately I can't look at how they did it because the download's gone.

EDIT:
Wow, I got ninja'd.
Last edited by Ænima on Fri Jun 14, 2013 8:04 pm, edited 1 time in total.
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

Screenracer
 
Posts: 69
Joined: Mon May 27, 2013 5:29 pm

RE: Need Help with 3D Modelled Skins

#10

Post by Screenracer » Fri Jun 14, 2013 8:15 pm

Let me explain what im trying to do:

Anyone who owns Duke Nukem 3d must have heard of the high resolution pack: http://hrp.duke4.net/ anyways I ripped the model and texture of Duke from that mod and I am trying to create a skin of it. I tryed replacing the PLYC in the models fram definitions however it said something about an error in frame 9 when I went in chasecam of the skin.


EDIT:
Heres the console.

GL_EXT_vertex_array_bgra GL_EXT_vertex_attrib_64bit GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_conditional_render GL_NV_copy_depth_to_color GL_NV_copy_image GL_NV_explicit_multisample GL_NV_float_buffer GL_NV_half_float GL_NV_primitive_restart GL_NV_texgen_reflection GL_NV_texture_barrier GL_SGIS_generate_mipmap GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_SUN_multi_draw_arrays GL_WIN_swap_hint WGL_EXT_swap_control
Support for non power 2 textures enabled.
Occlusion query enabled.
Resolution: 1366 x 768



MAP01 - entryway

Skin 'DUKE.png' not found in 'DoomPlayer'
FindModel: 'MD3/DUKE/DUKE.md3' not found
DUKE.md3: model not found

Script error, "3DDUKESKIN.pk3:modeldef" line 9:
Unknown sprite DUKE in model definition for DoomPlayer




MAP01 - entryway
Last edited by Screenracer on Fri Jun 14, 2013 8:18 pm, edited 1 time in total.

User avatar
-Jes-
Frequent Poster Miles card holder
Posts: 975
Joined: Fri Aug 03, 2012 9:55 am
Location: Void Zone

RE: Need Help with 3D Modelled Skins

#11

Post by -Jes- » Fri Jun 14, 2013 8:23 pm

Screenracer wrote: I still have that skins file poking around somewhere on my hard drive. I'll try to find it so I can see how it was done.
Ænima wrote:Wow, I got ninja'd.
And IIRC that 'skin' was a modified actor. I remember downloading it back then too.

one_Two
Addicted to Zandronum
Posts: 1753
Joined: Thu Jun 07, 2012 4:47 pm

RE: Need Help with 3D Modelled Skins

#12

Post by one_Two » Fri Jun 14, 2013 8:28 pm

Ænima wrote:
-Jes- wrote:
Ænima wrote: Actually I think you can. Just replace "PLYC" in the model's frame definitions with whatever your skin's sprite name is.
Nope. Zandro will toss an error stating said frames do not exist in the actor.

As such, models cannot be used for playerskins. The only exception is Base, as it's not a skin in and of itself.
Huh. I could have sworn that someone had done it before. Unfortunately I can't look at how they did it because the download's gone.

EDIT:
Wow, I got ninja'd.
For reference I reuploaded - http://www.mediafire.com/?fdlxnse4n22yl42

User avatar
Dark-Assassin
Maintenence Crew
Posts: 968
Joined: Fri May 25, 2012 4:25 am

RE: Need Help with 3D Modelled Skins

#13

Post by Dark-Assassin » Fri Jun 14, 2013 8:41 pm

3D Skins are possible, but can be a little hard to get set up initially. I know from first hand. But IIRC it either only works with SSKIN or SKININFO.

@Screenracer, sounds like it's having trouble finding the required stuff. Send me over the pk3 and I can take a look.

Screenracer
 
Posts: 69
Joined: Mon May 27, 2013 5:29 pm

RE: Need Help with 3D Modelled Skins

#14

Post by Screenracer » Fri Jun 14, 2013 8:54 pm

-=Dark-Assassin=- wrote: @Screenracer, sounds like it's having trouble finding the required stuff. Send me over the pk3 and I can take a look.
Alright. Since mediafire is being a pain in the rear I had to use 4shared. http://www.4shared.com/file/k7XISHSK/3DDUKESKIN.html
Last edited by Screenracer on Fri Jun 14, 2013 8:56 pm, edited 1 time in total.

User avatar
Dark-Assassin
Maintenence Crew
Posts: 968
Joined: Fri May 25, 2012 4:25 am

RE: Need Help with 3D Modelled Skins

#15

Post by Dark-Assassin » Fri Jun 14, 2013 9:05 pm

Found out 3D model skins do not work with SKININFO. Only S_SKIN and S_SKIN will only work with .wad files, and also are extremely limited.

Screenracer
 
Posts: 69
Joined: Mon May 27, 2013 5:29 pm

RE: Need Help with 3D Modelled Skins

#16

Post by Screenracer » Sat Jun 15, 2013 5:18 pm

I got it kinda working by modifieing this: http://www.mediafire.com/download/fdlxn ... intest.pk3

However, dukes animations arent playing and his textures are a mess.

Post Reply