3D Stages are Here! a fairly comprehensive guide

Started by SuperFromND, November 25, 2023, 07:34:44 PM

Previous topic - Next topic

SuperFromND

Quote from: Sh1nRa358 on August 01, 2024, 03:00:19 PM
does this mean we can use stereoscopic dlls to now view mugen in stereoscopic 3d now too?

Not sure about custom DLLs, but I recently confirmed that you can get a stereoscopic image using something like ReShade with the Depth3D shader. The effect isn't particularly pronounced with the default settings (though I was only testing it with anaglyph glasses because I didn't want to bust out my VR headset just to check if side-by-side looked good), but you can do it and it's pretty nifty. Just be sure to turn MSAA off in Ikemen GO first if you try this, otherwise Reshade won't be able to grab the depth info it needs to render a stereoscopic image.

Creator of the Ikemen GO Command List Generator and its successor, Iguana.
I also make 3D stage ports for Ikemen GO. You can find my stages here. :heart:

Rakíel

So as we talked about a few days ago on the server, there are several custom parameters we can use with glTF for Ikemen. I'll drop the list of the ones we have right now here. I'll keep it updated as more get added!

trans: ADD/SUB/MUL/NONE

disableZTest and disableZWrite:
Disable depth test and writing to depth buffer respectively

castShadow: adding castShadow = 0 to meshes turns shadows off for that mesh

shadowMapBias: default value is 0.02

shadowMapNear: deafault value is 0.1 for point / spot light, -20 from directional light

shadowMapFar: default value is 50

shadowMapBottom: directional light only, default value is -20

shadowMapTop: directional light only, default value is 20

shadowMapLeft: directional light only, default value is -20

shadowMapRight:  directional light only, default value is 20

Chemy1UP

I can't move the character position with zoffset in 3d stages, Does anyone know how I can do it?

YugaCurry


Chemy1UP

thanks but I change the fov but the image increases or decreases, it doesn't really move like zoffset which moves the Y coordinate

SuperFromND

Not really a guide per-se, but I wrote a little Python script to make it easier to add 2D animations to 3D stages. Figured it'd be useful to post here, so here's the script:
Spoiler (click to show)


# Script written by SuperFromND. C00. Do whatever you want!
# Written for Blender 4.2.3 LTS, but should work in older versions just fine.

# This script takes the selected objects (assumed to be image planes stacked on top of eachother)
# and generates keyframe data such that each object will "animate" by being scaled up and down
# for a set duration in sequence. This effectively emulates an image sequence/animation.

# This script was designed mainly for stage creators and 3D modelling work for the Ikemen GO fighting game engine.
# This is because we use the glTF format, which doesn't support animated textures of any kind.

# ==================================================================================================================
# SETTINGS START HERE

# Change this number to set the duration of every frame.
# The framerate is tied to whatever the Blender project's framerate is; by default, 24 FPS.
frame_length = 1

# SETTINGS END HERE; the rest is program code. Don't touch unless you know what you're doing!
# ==================================================================================================================
import bpy

frame_start = 0
animation_length = frame_length * len(bpy.context.selected_objects)

scale_off = (0.0, 0.0, 1.0)
scale_on  = (1.0, 1.0, 1.0)

for obj in bpy.context.selected_objects:
    frame_end = frame_start + frame_length
   
    # Hides the object at the start of the animation
    # Ensures a proper cyclic loop point
    if frame_start != 0:
        obj.scale = scale_off
        obj.keyframe_insert(data_path="scale", frame=0)
   
    # Shows the object
    obj.scale = scale_on
    obj.keyframe_insert(data_path="scale", frame=frame_start)
   
    # Hides the object
    obj.scale = scale_off
    obj.keyframe_insert(data_path="scale", frame=frame_end)
   
    # Similar to above, but for the end point
    if frame_end != animation_length:
        obj.scale = scale_off
        obj.keyframe_insert(data_path="scale", frame=animation_length)
       
    # Oh, and for the first object, show it on the end of animation too
    # This just prevents loop flickering
    if frame_start == 0:
        obj.scale = scale_on
        obj.keyframe_insert(data_path="scale", frame=animation_length)
   
    # Sets animation curves to CONSTANT and enables cyclic curves
    fcurves = obj.animation_data.action.fcurves
    for fcurve in fcurves:
        c = fcurve.modifiers.new('CYCLES')
        fcurve.extrapolation = 'CONSTANT'
        for kf in fcurve.keyframe_points:
            kf.interpolation = 'CONSTANT'
   
    # Increment frame start
    frame_start += frame_length


And here's a mirror of the script on my Github, just in case!

If you don't know how to use scripts in Blender (which is fair enough as I never really mentioned it on this guide), I made a quick YouTube video showing how to use it:

Creator of the Ikemen GO Command List Generator and its successor, Iguana.
I also make 3D stage ports for Ikemen GO. You can find my stages here. :heart:

SuperFromND

I've updated the guide to add a new section: Alpha/Transparency Sorting. I've ran into this a lot lately while working on a future game's-worth-of-stages-conversion and sought to remedy it! :]

Also, I'm thinking about either making a YouTube video version of this guide and/or mirroring the guide's text over on my personal site (since MFG is login-walled and thus this thread can be kinda hard to find if you aren't already a member of the site). I'll be sure to post here if I end up doing either.

Creator of the Ikemen GO Command List Generator and its successor, Iguana.
I also make 3D stage ports for Ikemen GO. You can find my stages here. :heart:

kamui 2.0

Hi guys
Really newbie questions, I never made a stage, So bear with my stupid question.

1ª question : Do I really need Fighter Factory or just blender for 3d stages ? Since it seems it needed def file I guess it needs FF
2ª question : after I made the stage 3d stage in blender how I use FF ? Is like making a normal mugen stages ? (if you guys have any youtube tutorial as reference, please link it)
3ª question : Do I need to code it with FF after made the stage in blender ?
4ª question : Can I use this videos as reference or it is totally different approach in it comes to 3d stages ?   
Spoiler (click to show)
5ª question : which FF is the best the classic or the other one ?

Thank u very much

Funk


kamui 2.0

Quote from: Funk on May 28, 2026, 02:30:05 AM
I probably need a video tutorial for this.

which tutorial I should watch ?
I can't find it on youtube

Funk


OldGamer

#31
Quote from: kamui 2.0 on June 03, 2026, 01:37:11 AM
Quote from: Funk on May 28, 2026, 02:30:05 AM
I probably need a video tutorial for this.

Which tutorial should I watch?
I can't find it on YouTube.

1ª question: Do I really need Fighter Factory or just Blender for 3D stages? Since it seems it needed a DEF file, I guess it needs FF
The answer: To make 3D stages, you need Blender, and in Blender, it is the only way to make 3D stages. Fighter Factory Studio is not needed for 3D stages.

2ª question: After I made the 3D stage in Blender, how do I use FF? Is it like making a normal Mugen stage? (if you guys have any YouTube tutorials as reference, please link them.)
The answer: To make 2D stages, you need Fighter Factory Studios. At the moment there is somewhat of a template video that a creator made; you can find it in his video here.
This video does explain the 3D stages template when using Blender. As a template video guide


3ª question: Do I need to code it with FF after making the stage in Blender?
The answer: The only time you need to code anything is for the Def for the 3D Stages. Adding stage Portrait for the Ikemen Go's stage folder and find "stage3d_outline.def." You find the code related as a template. in the new Ikemen Go 1.0 nightly build.
It does explain about adding 2D sprites for stage portraits in the 3D stages.


4ª question: Can I use these videos as references, or is it a totally different approach when it comes to 3D stages?
The answer: you can add a video media in the DEF files for the 2D stages. I never added the video on a 3D stage before. But it won't hurt to give it a try.

kamui 2.0

Quote from: OldGamer on June 05, 2026, 11:02:34 AM
Quote from: kamui 2.0 on June 03, 2026, 01:37:11 AM
Quote from: Funk on May 28, 2026, 02:30:05 AM
I probably need a video tutorial for this.

Which tutorial should I watch?
I can't find it on YouTube.

1ª question: Do I really need Fighter Factory or just Blender for 3D stages? Since it seems it needed a DEF file, I guess it needs FF
The answer: To make 3D stages, you need Blender, and in Blender, it is the only way to make 3D stages. Fighter Factory Studio is not needed for 3D stages.

2ª question: After I made the 3D stage in Blender, how do I use FF? Is it like making a normal Mugen stage? (if you guys have any YouTube tutorials as reference, please link them.)
The answer: To make 2D stages, you need Fighter Factory Studios. At the moment there is somewhat of a template video that a creator made; you can find it in his video here.
This video does explain the 3D stages template when using Blender. As a template video guide


3ª question: Do I need to code it with FF after making the stage in Blender?
The answer: The only time you need to code anything is for the Def for the 3D Stages. Adding stage Portrait for the Ikemen Go's stage folder and find "stage3d_outline.def." You find the code related as a template. in the new Ikemen Go 1.0 nightly build.
It does explain about adding 2D sprites for stage portraits in the 3D stages.


4ª question: Can I use these videos as references, or is it a totally different approach when it comes to 3D stages?
The answer: you can add a video media in the DEF files for the 2D stages. I never added the video on a 3D stage before. But it won't hurt to give it a try.

Thank u so much
I'll try to learn more about blender and I'll make 3d stages, since it seems less work than working with sprites
the last stage of yours (sonic's), it is 3d stage ? It seems like 3d stage
thank u so much for your work at mugen community

OldGamer

Quote from: kamui 2.0 on June 06, 2026, 07:43:07 PM
Quote from: OldGamer on June 05, 2026, 11:02:34 AM
Quote from: kamui 2.0 on June 03, 2026, 01:37:11 AM
Quote from: Funk on May 28, 2026, 02:30:05 AM
I probably need a video tutorial for this.

Which tutorial should I watch?
I can't find it on YouTube.

1st question: Do I really need Fighter Factory or just Blender for 3D stages? Since it seems it needed a DEF file, I guess it needs FF
The answer: To make 3D stages, you need Blender, and in Blender, it is the only way to make 3D stages. Fighter Factory Studio is not needed for 3D stages.

2nd question: After I made the 3D stage in Blender, how do I use FF? Is it like making a normal Mugen stage? (if you guys have any YouTube tutorials as reference, please link them.)
The answer: To make 2D stages, you need Fighter Factory Studios. At the moment there is somewhat of a template video that a creator made; you can find it in his video here.
This video does explain the 3D stages template when using Blender. As a template video guide


3rd question: Do I need to code it with FF after making the stage in Blender?
The answer: The only time you need to code anything is for the DEF for the 3D stages. Add a stage portrait for the Ikemen Go's stage folder and find "stage3d_outline.def." You find the related code as a template. in the new Ikemen Go 1.0 nightly build.
It does explain about adding 2D sprites for stage portraits in the 3D stages.


4ª question: Can I use these videos as references, or is it a totally different approach when it comes to 3D stages?
The answer: you can add video media in the DEF files for the 2D stages. I had never added the video on a 3D stage before. But it won't hurt to give it a try.

Thank u so much.
I'll try to learn more about Blender, and I'll make 3D stages since it seems less work than working with sprites
The last stage of yours (Sonic's), is it a 3D stage? It seems like a 3D stage
Thank you so much for your work at the Mugen community.
My sonic stage is not 3D; it's 2D using AI images generated and made into layers for the ikemen go. It's not real 3D, xD and you're welcome. :)