Skip to content

[examples] List of examples not working properly on Web platform #4682

Open
@raysan5

Description

@raysan5

This issue is intended to get feedback for examples not working properly. Please, answer to this issue with the examples not working properly and the unexpected behaviour detected. Thanks!

Name Runs Fixed Comments
core_loading_tread Example crashes, it requires multi-threading support on raylib compilation before linkage. The example uses POSIX pthreads.h library, not officially available on some compilers (MSVC). This example should probably be redesigned or removed or moved to raylib-extras repo (and using an external multiplatform library like thread.h)
core_window_letterbox ✔️ Canvas resizing issue
core_top_down_lights ✔️ Minor: F1 shortcut conflicts with browser
textures_blend_modes ✔️ Quite poor example, requires a redesign
textures_draw_tiled ✔️ Canvas resizing issue
models_bone_socket ✔️ Minor: Slow rotation speed
models_point_rendering ✔️ ⚠️ Points not drawn, drawing triangles instead. OpenGL ES 2.0 does not support point-mode drawing
models_yaw_pitch_roll ✔️ OBJ issues with texture coordinates loading
models_skybox ✔️ ✔️ Skybox not drawn
shaders_raymarching ✔️ Canvas resizing issue
shaders_texture_tiling ✔️ ⚠️ Shader compilation issues. OpenGL ES 2.0 does not support texture-repeat wrap mode
shaders_julia_set ✔️ ✔️ Shader compilation issues
shaders_mesh_instancing ✔️ ✔️ Shader loading: works locally, some server issue on shader loading (skipped characters) -> Issue seems related to CRLF vs LF line-break changes on .data file not aligned with expected size defined in .js. Building and uploading the example on Linux fixes it.
shaders_spotlight ✔️ Minor: Too fast movement
shaders_hybrid_render ✔️ Shader loading: works locally, some server issue on shader loading (skipped characters)
shaders_deferred_render ✔️ ⚠️ Shader loading, not ported to GLSL100. Shaders ported but it seems OpenGL ES 2.0 does not support GBuffers?
shaders_vertex_displacement ✔️ Shader loading: works locally, some server issue on shader loading (skipped characters)

Issue with shaders loading seems it could be related to not properly reading line-breaks and considering them as 2 bytes instead of just one and then something is mangled, really weird issue, it requires investigation...

Also detected some issues with the inputs related to the web requirement of clicking over the canvas to "enable" input access... that behaviour should probably be reviewed but it's a web-design-related.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions