ptitSeb / gl4es

GL4ES is a OpenGL 2.1/1.5 to GL ES 2.0/1.1 translation library, with support for Pandora, ODroid, OrangePI, CHIP, Raspberry PI, Android, Emscripten and AmigaOS4.
http://ptitseb.github.io/gl4es/
MIT License
696 stars 159 forks source link

Missing alpha blended vectors #472

Open midzer opened 2 weeks ago

midzer commented 2 weeks ago

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 commented 2 weeks ago

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

midzer commented 2 weeks ago

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 commented 2 weeks ago

The original author answered https://github.com/mdsteele/azimuth/issues/25#issuecomment-2405183156