Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing alpha blended vectors #472

Open
midzer opened this issue Oct 9, 2024 · 3 comments
Open

Missing alpha blended vectors #472

midzer opened this issue Oct 9, 2024 · 3 comments

Comments

@midzer
Copy link

midzer commented Oct 9, 2024

Hi all,

I am in the process of porting https://github.com/mdsteele/azimuth for the web using Emscripten. The game uses OpenGL 2.1 functions, so I need gl4es as translation library.

I've replaced

#include <SDL_opengl.h>

with

#include <GL/gl.h>

and loaded initialize_gl4es() early on.

The compile runs fine, but there are certain (later destructable) alpha blended wall structures which are not visible in the port. In the native build those wall structures are visible.

I already tried to tweak some environment variables via https://github.com/ptitSeb/gl4es/blob/master/USAGE.md without success.

Thanks for your support and have a nice week
midzer

@ptitSeb
Copy link
Owner

ptitSeb commented Oct 9, 2024

Do you have any idea what kind of drawing those wall are doing?

@midzer
Copy link
Author

midzer commented Oct 9, 2024

Without deep OpenGL knowledge, I guess it has to be somewhere around https://github.com/mdsteele/azimuth/blob/050f838b35d19ffdc738f33178abaf9d69d834ec/src/azimuth/view/wall.c#L492, assuming it's a AZ_WALL_DESTRUCTIBLE_CHARGED wall.

@midzer
Copy link
Author

midzer commented Oct 10, 2024

The original author answered mdsteele/azimuth#25 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants