• Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 564 from 2004/4/15
    Hello again,

    finally I found a solution for MorphOs.
    Screenshots:
    linux: landscape_linux_fog_working.png
    mos: landscape_mos_fog_missing.png

    And that's what I have done:
    1. I replaced std::vector by my own Array class (move away from stack to heap)
    That should be done anyway.
    2. Implemented splitting of 3d objects (vertex and normals arrays)
    3. Objects with a vertex count lesser than 4096 will rendered correctly on mos
    (any greater number will fail)

    Nice!

    But, while blending works well (transparent water), fog on mos fails.
    That is the code I am using:
    Code:

    glEnable(GL_FOG);
    glFogi(GL_FOG_MODE, GL_LINEAR);
    glFogf(GL_FOG_DENSITY, 1.0f);
    glFogf(GL_FOG_START, 0.f);
    glFogf(GL_FOG_END, range / 2.0f);
    glFogfv(GL_FOG_COLOR, scene->clearColor.rgba);


    I can remember that the guys of Wings Battlefield also had problems with glFog on mos.
    Sadly I do not know the solution.
    Any hints?
    regards
    eliot
  • »12.01.17 - 17:10
    Profile