Giter Club home page Giter Club logo

Comments (11)

Hendricks266 avatar Hendricks266 commented on August 17, 2024 1

So it happens in eduke32.exe when built from the NBlood repository, but not upstream?

Could you try the branch tmp/nblood-engine upstream? https://voidpoint.io/terminx/eduke32/-/commits/tmp/nblood-engine

If it has the issue too, could you bisect through the commits in that branch to see which one introduces the issue?

from nblood.

Hendricks266 avatar Hendricks266 commented on August 17, 2024 1

@nukeykt I would be most comfortable if you pushed the fix to this repo

from nblood.

Hendricks266 avatar Hendricks266 commented on August 17, 2024

Very strange, it's using the indexed tile atlas as a texture.

from nblood.

MexMeRcUrY avatar MexMeRcUrY commented on August 17, 2024

confirmed it also happens with the cop-pig glow eyes in the latest Nblood code/project (HRP Mod), I have tracked back and the the code from Febuary works fine. I havent found at what point in time this got broken
image

from nblood.

MexMeRcUrY avatar MexMeRcUrY commented on August 17, 2024

Eduke32 autoload folder
duke3D.zip

from nblood.

MexMeRcUrY avatar MexMeRcUrY commented on August 17, 2024

@Hendricks266 the issue started here:
https://voidpoint.io/terminx/eduke32/-/tree/d53cefa84716fbbed647aa26d2f00fa77c6f5793

from nblood.

Hendricks266 avatar Hendricks266 commented on August 17, 2024

@nukeykt do you know what's going on? It seems likely to me that the issue relates to the change to the fragment shader.

from nblood.

nukeykt avatar nukeykt commented on August 17, 2024

looks like coordX, coordY were changed to vector at some point in mainline and broke shader compilation

from nblood.

nukeykt avatar nukeykt commented on August 17, 2024
    coord = mix(gl_TexCoord[4].xy,gl_TexCoord[4].yx,u_usePalette);
    modCoordYnpotEmulationFactor = mod(coord.y,u_npotEmulation.y);
    coord.xy = vec2(floor(modCoordYnpotEmulationFactor)*u_npotEmulation.x+coord.x, floor(coord.y*u_npotEmulation.y)+modCoordYnpotEmulationFactor);
    newCoord = mix(gl_TexCoord[4].xy,mix(coord.xy,coord.yx,u_usePalette),u_npotEmulation.z);

something like this should work

EDIT: looks like there's typo in new optimized version, should be floor(coord.y*u_npotEmulation.w). Original code was coordY/factor, while optimized version sets u_npotEmulation.y to factor, u_npotEmulation.w to 1.f/factor and then multiplies with .y value. Multiplying with latter makes more sense.

from nblood.

MexMeRcUrY avatar MexMeRcUrY commented on August 17, 2024

@nukeykt thank you for the quick turnaround on this issue, I have tested it and looks to be fixed and working as expected!!! THANK YOU! 👍 💯
image
image

from nblood.

MexMeRcUrY avatar MexMeRcUrY commented on August 17, 2024

Issue fixed with the following commit:
5094398

from nblood.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.