[Models] Surfaceskin help required

Ask about editing graphics, sounds, models, music, etc here!
Shaders (GLSL) and SNDINFO questions also go here!

Moderators: GZDoom Developers, Raze Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Post Reply
User avatar
Liberation
Posts: 3
Joined: Thu May 03, 2018 7:35 am

[Models] Surfaceskin help required

Post by Liberation »

Hi all.

I'll get to the point, I have a space ship model that has 35 different skins to go onto the model, the model itself has 35 groups (just under the limit) however have hit a bit of brick wall with Gzdoom.

Basically Surface skin seems to be only able to do 32 groups/surfaces, leaving me 3 short of the prize.

Is there any work around to this? I'm not really clued up on UV maps so not sure if I could combine the textures etc,
Screenshot_Doom_20180503_144328.jpg
As you can see from the capital ship, group 32/33 had to be commented out of the decorate file and of course it slaps the most blatant incorrect texture going to fill the model. :D
User avatar
ramon.dexter
Posts: 1520
Joined: Tue Oct 20, 2015 12:50 pm
Graphics Processor: nVidia with Vulkan support
Location: Kozolupy, Bohemia

Re: [Models] Surfaceskin help required

Post by ramon.dexter »

Liberation wrote:
As you can see from the capital ship,
Thats not a capital ship. Thats a star destroyer, to be correct. Dont use a name such a "capital ship" when speaking about star destroyer :)
User avatar
Shadelight
Posts: 5113
Joined: Fri May 20, 2005 11:16 am
Location: Labrynna

Re: [Models] Surfaceskin help required

Post by Shadelight »

ramon.dexter wrote:
Liberation wrote:
As you can see from the capital ship,
Thats not a capital ship. Thats a star destroyer, to be correct. Dont use a name such a "capital ship" when speaking about star destroyer :)
This is off-topic, but for your information it is definitely a capital ship.
User avatar
R4L
Global Moderator
Posts: 400
Joined: Fri Mar 03, 2017 9:53 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11 Pro
Graphics Processor: nVidia (Modern GZDoom)
Contact:

Re: [Models] Surfaceskin help required

Post by R4L »

You could split the last three parts into a separate model, and define it in MODELDEF as the second part to the first model. The actor will be a multi-model actor and you can have all the skins showing.
User avatar
Liberation
Posts: 3
Joined: Thu May 03, 2018 7:35 am

Re: [Models] Surfaceskin help required

Post by Liberation »

R4L wrote:You could split the last three parts into a separate model, and define it in MODELDEF as the second part to the first model. The actor will be a multi-model actor and you can have all the skins showing.
Thank you very much, that is working a treat and also is allowing me to leave more detail on the models. I did see multi model actors in the wiki, however it didn't twig!
Shadelight wrote:
ramon.dexter wrote:
Liberation wrote:
As you can see from the capital ship,
Thats not a capital ship. Thats a star destroyer, to be correct. Dont use a name such a "capital ship" when speaking about star destroyer :)
This is off-topic, but for your information it is definitely a capital ship.
Technically your both correct :D
User avatar
R4L
Global Moderator
Posts: 400
Joined: Fri Mar 03, 2017 9:53 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11 Pro
Graphics Processor: nVidia (Modern GZDoom)
Contact:

Re: [Models] Surfaceskin help required

Post by R4L »

The wiki lists it as an example in MODELDEF.
User avatar
WARCHILD_89
Posts: 452
Joined: Sun Nov 17, 2013 12:27 pm
Graphics Processor: nVidia with Vulkan support
Location: MIA between doomed dimensions

Re: [Models] Surfaceskin help required

Post by WARCHILD_89 »

before going into star wars models too heavily, check this out: viewtopic.php?f=37&t=57378
Collegia Titanica
Posts: 83
Joined: Thu Jan 25, 2018 1:37 pm

Re: [Models] Surfaceskin help required

Post by Collegia Titanica »

Newsflash, there are no hard limits, (((They))) lied to you, your model size (tris) can be much larger than you think.


Next, I thought we went over this, you DON'T USE the shitty skindef ... what you need is to make sure that the mesh's material (model part) has the same name as the texture that is supposed to cover it. It's that simple really.

MATERIAL NAME=TEXTURE NAME, put the md3 and the textures in one folder and reference that in MoDeLdef
User avatar
R4L
Global Moderator
Posts: 400
Joined: Fri Mar 03, 2017 9:53 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11 Pro
Graphics Processor: nVidia (Modern GZDoom)
Contact:

Re: [Models] Surfaceskin help required

Post by R4L »

Collegia Titanica wrote:Newsflash, there are no hard limits, (((They))) lied to you, your model size (tris) can be much larger than you think.


Next, I thought we went over this, you DON'T USE the shitty skindef ... what you need is to make sure that the mesh's material (model part) has the same name as the texture that is supposed to cover it. It's that simple really.

MATERIAL NAME=TEXTURE NAME, put the md3 and the textures in one folder and reference that in MoDeLdef
Was that really necessary?

Don't tell him not to use SurfaceSkin when he's already been using it, and using it the CORRECT way might I add. It's still a totally viable method to texture models. Using filename paths on the materials works too.

Also, there may not be HARD limits, but really, you probably shouldn't use too many high poly models. The engine will seriously bog down. GZDoom (IIRC) does NOT unload models after they've been rendered.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [Models] Surfaceskin help required

Post by Graf Zahl »

R4L wrote: GZDoom (IIRC) does NOT unload models after they've been rendered.

Models are being cached per level. Because that's the normal duration you need them for.
As for getting 'bogged down', it will depend on the system. If you got modern graphics hardware it will have power to burn, but beware to try it on something older and weaker. The models really can murder frame rate on any system that's GPU limited.
User avatar
R4L
Global Moderator
Posts: 400
Joined: Fri Mar 03, 2017 9:53 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11 Pro
Graphics Processor: nVidia (Modern GZDoom)
Contact:

Re: [Models] Surfaceskin help required

Post by R4L »

Graf Zahl wrote:
R4L wrote: GZDoom (IIRC) does NOT unload models after they've been rendered.

Models are being cached per level. Because that's the normal duration you need them for.
As for getting 'bogged down', it will depend on the system. If you got modern graphics hardware it will have power to burn, but beware to try it on something older and weaker. The models really can murder frame rate on any system that's GPU limited.
Ah, I see. Thanks for the clarification. So if the models are high poly count, it should tax the machine more correct?
Post Reply

Return to “Assets (and other stuff)”