Silent Hill 2 Maria character in third-person

Projects that alter game functions but do not include new maps belong here.
Forum rules
The Projects forums are ONLY for YOUR PROJECTS! If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.

Silent Hill 2 Maria character in third-person

Postby RederickDeathwill » Tue Oct 12, 2021 1:57 pm

I've decided to use mrtaterz's third person mod (Merged with Precise Crosshair by m8f in a single .pk3) as a reference for experimenting with third-person gameplay using arbitrary 3D characters.

I've downloaded the original Silent Hill 2 Maria model in the .fbx format, opened it with Blender, exported it to .obj, opened it in Maverick Model 3D, loaded the textures for each group and exported as the evil skeleton-less .md3 format.

Here's the result inside GZDoom devoid of animations:



PK3 DOWNLOAD LINK: https://drive.google.com/file/d/1carJD6 ... sp=sharing

So far, I'm just happy in understanding the SurfaceSkin and FrameIndex properties. Here's my MODELDEF:

Code: Select allExpand view
Model CustomDoomPlayer {
   Scale 4 4 4
   Offset 0 0 0
   AngleOffset 0
   Path "Models/Custom/Maria"
   Model 0 "maria.md3"
    INTERPOLATEDOUBLEDFRAMES
   SurfaceSkin 0 0 "Face_diff.png"
   SurfaceSkin 0 1 "Hair_1_diff.png"
   SurfaceSkin 0 2 "Hair_diff.png"
   SurfaceSkin 0 3 "Hand_1_diff.png"
   SurfaceSkin 0 4 "shoes_diff.png"
   SurfaceSkin 0 5 "Suit_diff.png"
   FrameIndex DMG1 A 0 0
}


Now I'll try to create some basic vertex animations on Maverick Model 3D, just by talentlessly moving vertexes around at each frame and referencing them with FrameIndex considering my ZScript custom DoomPlayer actor. If I manage to do anything at least a bit better than not having animations at all, I'll post here :D
User avatar
RederickDeathwill
 
Joined: 06 Sep 2020
Github ID: https://github.com/EricsonWillians
Operating System: Debian-like Linux (Debian, Ubuntu, Mint, etc) 64-bit
Graphics Processor: nVidia (Modern GZDoom)

Re: Silent Hill 2 Maria character in third-person

Postby zheg » Tue Oct 12, 2021 9:23 pm

is a long process what are you doing
i sugrest you to import fbx (rigged) into blender and animate in there
the bones, check tutorials for that, and then
you can export md3 files directly from blender with md3 exporter, only works with blender 2.79
User avatar
zheg
 
Joined: 07 Mar 2016
Discord: [edy pagaza]#9764
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD with Vulkan Support

Re: Silent Hill 2 Maria character in third-person

Postby RederickDeathwill » Wed Oct 13, 2021 4:53 am

zheg wrote:is a long process what are you doing
i sugrest you to import fbx (rigged) into blender and animate in there
the bones, check tutorials for that, and then
you can export md3 files directly from blender with md3 exporter, only works with blender 2.79


I've realized that it will be nearly impossible to animate this on Maverick Model 3D, since the model's not low-poly enough for vertex animation (I end up selecting wrong vertexes, and without the vertex groups from blender, it can't be done). I've dealt with rigging and skeleton animations in Blender before since I've ported a female scientist model from Black Mesa to Left 4 Dead 2 to be played as a survivor, as well as another per-request port (The source engine is a huge pain in the a** btw, but 3D animations work).

It's sad that the md3 exporter doesn't work on the current 2.93 blender version. Even though I'm a Python programmer, I don't know the blender API. I'll open Nash's script and see if I can do anything with it, see what changed between the 2.7x and the 2.9x APIs.

But yeah, GZDoom currently is quite 3D hostile concerning animations.
User avatar
RederickDeathwill
 
Joined: 06 Sep 2020
Github ID: https://github.com/EricsonWillians
Operating System: Debian-like Linux (Debian, Ubuntu, Mint, etc) 64-bit
Graphics Processor: nVidia (Modern GZDoom)

Re: Silent Hill 2 Maria character in third-person

Postby zheg » Wed Oct 13, 2021 10:51 am

theres an unnoficial md3 exporter fi
or newer version of blender, maybe you can check it out

edit:
https://github.com/nashmuhandes/io_expo ... eo_blender
User avatar
zheg
 
Joined: 07 Mar 2016
Discord: [edy pagaza]#9764
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD with Vulkan Support

Re: Silent Hill 2 Maria character in third-person

Postby RederickDeathwill » Wed Oct 13, 2021 7:45 pm

zheg wrote:theres an unnoficial md3 exporter fi
or newer version of blender, maybe you can check it out

edit:
https://github.com/nashmuhandes/io_expo ... eo_blender


Thanks for pointing that out, I've spent the night playing with it after reading the source code for the exporter (Just scratching the surface of it) and I've noticed that there are frame / animation-related parts, so I've opened blender and created a basic cube with a gimp-made valve-like "missing" texture and created a basic rotating animation in order to be played when you walk or shoot inside the game. These are the results:



Maybe eventually I'll make tutorials about it because making 3D animations using Blender and exporting them to be used inside GZDoom seems to be a pretty obscure and niche subject, not to mention that the documentation lack in details about it (The overall brilliant wiki, I mean). Reading the GZDoom source code I've noticed that someone implemented support for old Unreal Engine 1 models, but I couldn't understand if it supports animations or not, and since it's even more obscure than md3, I'll just ignore that altogether.

Tomorrow after work I'll experiment with bones (A real armature), animating the legs and exporting to md3 in order to check if it works or not. By the way, I've already exported a nasty high-poly model from XNALara with 32480234 vertices and it crashed GZDoom as expected (I've read the limitations on the exporter, but I didn't see them on the source code yet).

Unrelated comment: After this, I've realized that using a smaller model plays much better in third-person.
User avatar
RederickDeathwill
 
Joined: 06 Sep 2020
Github ID: https://github.com/EricsonWillians
Operating System: Debian-like Linux (Debian, Ubuntu, Mint, etc) 64-bit
Graphics Processor: nVidia (Modern GZDoom)

Re: Silent Hill 2 Maria character in third-person

Postby zheg » Wed Oct 13, 2021 9:59 pm

nice job, i wanna test it aswell
User avatar
zheg
 
Joined: 07 Mar 2016
Discord: [edy pagaza]#9764
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD with Vulkan Support

Re: Silent Hill 2 Maria character in third-person

Postby RederickDeathwill » Mon Oct 18, 2021 7:24 pm

I've made some progress with the animations. It's perfectly possible to use armatures / skeleton animations exporting them using that script.

User avatar
RederickDeathwill
 
Joined: 06 Sep 2020
Github ID: https://github.com/EricsonWillians
Operating System: Debian-like Linux (Debian, Ubuntu, Mint, etc) 64-bit
Graphics Processor: nVidia (Modern GZDoom)


Return to Gameplay Mods

Who is online

Users browsing this forum: No registered users and 6 guests