Skip to content

macOS arm64 Processor Rendering Issues (Episode 9) #17

@CreativeMasterBonin

Description

@CreativeMasterBonin

After trying this tutorial for a bit, it seems something is off about OpenGL 3.3 on arm64 (macOS).

Although I can get a texture showing something with the UV and elements defined. Copying code verbatim just for testing... it seems that the texture is showing little to almost none of the entire texture, perhaps only showing a tiny portion of it. The shader files are exactly the same as the tutorial suggests.

The only difference is the processor type and libraries being LWJGL 3 and OpenGL arm64 libraries.

This is strange as other games that use this combination (and use older OpenGL calls) don't seem to throw errors or graphical issues as far as I can tell on arm64. Is there perhaps a glaring issue in the code?

My level editor class that sets up the texture:
https://gist.github.com/CreativeMasterBonin/256845cf9029bbcbdfc136235282bac7

Another issue is that Shader.java can never get past the first "#type" + eol + 6 line. It seems the GLSL shader file isn't formatted properly, yet it is an exact match of the shader files given in the tutorial.

https://gist.github.com/CreativeMasterBonin/80ab408ac5aceb41cd6a835420ad83d0

I had to separate the two files and load them as is to get the box to appear in the window without an error.

vertex: https://gist.github.com/CreativeMasterBonin/719894507f9bff0efbc524ac82858fdd
fragment: https://gist.github.com/CreativeMasterBonin/393d2e37173640824276950824a22f27

Even the texture class seemed to match up with the code: https://gist.github.com/CreativeMasterBonin/9e741a6428d6f58a33f68cdab14bbaf2

Anyone got any ideas why this isn't working despite the code being exactly the same?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions