u/Economy-Dig3969

▲ 2 r/sdl+1 crossposts

Stencil buffer size is always 0 bits

Hey ! I'm currently building an game engine with SDL3 + OpenGL of my own, and now that I'm implementing effects using the stencil buffer, now matter what I do, I cannot seem to initialise it correctly, here is my method tasked of initialising my window. Did I miss something ?

SDL_AppResult Window::SDL_AppInit()
{
    SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
    SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3);


    // Profil OpenGL
    SDL_GL_SetAttribute(
        SDL_GL_CONTEXT_PROFILE_MASK,
        SDL_GL_CONTEXT_PROFILE_CORE
    );


    SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);
    SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);
    SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8);
    SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 8);
    SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
    SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8);
    SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);


    SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
    SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8); // 8 bits stencil buffer


    wind = SDL_CreateWindow("SMT", SDL_WINDOW_WIDTH, SDL_WINDOW_HEIGHT, SDL_WINDOW_OPENGL);
    if (wind == NULL)
    {
        cout << "Window creation failed !";
        return SDL_APP_FAILURE;
    }
    this->context = SDL_GL_CreateContext(wind);
    SDL_GL_MakeCurrent(wind, this->context);


    if (!gladLoadGLLoader( (GLADloadproc)SDL_GL_GetProcAddress ) )
    {
        cout << "glad init failed" << endl;
        return SDL_APP_FAILURE;
    }
    
    glViewport(0,0,SDL_WINDOW_WIDTH,SDL_WINDOW_HEIGHT);
    return SDL_APP_CONTINUE;
}
reddit.com
u/Economy-Dig3969 — 14 hours ago

Need a 3D model of a character, rigged if possible. Budget : I don't really know I'm new to comissionning.

I will provide a bunch of artworks for the model. The goal is to be used in a video game I'm building, so the format of the model needs to be either in .obj or .dae format. If it's possible to add a rig for animation, it would be even better but that's not mandatory. As for model quality, I'm looking for something that's a bit retro, not fully low-poly but not high-poly either (something kind of late-gamecube to wii era in terms of detail). Let's discuss budget together !

reddit.com
u/Economy-Dig3969 — 12 days ago
▲ 156 r/Megaten

First few screenshots of my SMT1 3D remake (quick FAQ below)

1 - How long until potential release ?

A while, I am alone on the whole development of the game, and while the programming part is where I am the most competent, other aspects, such as 3d assets will definitely increase the time before any build can be shared.

2 - Is (and if yes how is) AI used on the project ?

The ONLY use of AI on the project is for debugging specific parts of the code. It was not and never will be used for generating any assets.

3 - Do you use external ressources ?

Yes ! I am building my own custom built game engine for the project, so I don't use any premade engine (Unity, Unreal Engine, Godot) though I used some tools for it (SDL, OpenGL, Assimp). I will also try to reuse some music from the original Playstation game, as well as some 3D assets from other entries the series for the devils models. Everything else is done by hand.

Feel free to ask any questions, hope you will be interested in the remake !

PS : if this post and project gets enough support, I might consider opening a Patreon or something, helping me commission assets and thus reducing developing time.

u/Economy-Dig3969 — 12 days ago