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

Bug : Problème de rotation Z - APG23_GRP_A/apga_claude-0.2.0 #38

Open
ZineeEddine opened this issue Dec 1, 2023 · 1 comment
Open

Comments

@ZineeEddine
Copy link

OS: macOS 14.0

Reproduction du bug

Aller dans le dossier :

cd GL4Dummies/APG23_GRP_A/apga_claude-0.2.0

Build

make

Résultat Makefile

gcc -I. -I/usr/local/include -I/opt/homebrew/include/SDL2 -D_THREAD_SAFE -Wall -O3 -mmacosx-version-min=10.8 -c window.c -o window.o
gcc -I. -I/usr/local/include -I/opt/homebrew/include/SDL2 -D_THREAD_SAFE -Wall -O3 -mmacosx-version-min=10.8 -c claude.c -o claude.o
gcc -I. -I/usr/local/include -I/opt/homebrew/include/SDL2 -D_THREAD_SAFE -Wall -O3 -mmacosx-version-min=10.8 -c primitives.c -o primitives.o
gcc -I. -I/usr/local/include -I/opt/homebrew/include/SDL2 -D_THREAD_SAFE -Wall -O3 -mmacosx-version-min=10.8 -c transformations.c -o transformations.o
gcc window.o claude.o primitives.o transformations.o -lm -L/usr/local/lib -framework OpenGL -mmacosx-version-min=10.8 -lGL4Dummies -L/opt/homebrew/lib -lSDL2 -o claude
ld: warning: dylib (/opt/homebrew/lib/libSDL2.dylib) was built for newer macOS version (14.0) than being linked (11.0)

Execution du programme

./claude

Visualisation

bug_rotation_claude.mov

Piste de résolution

Analyser le fichier : claude_math.h
Calcul incorrect dans la fonction de rotation

@noalien
Copy link
Owner

noalien commented Dec 4, 2023

Bonjour,
je n'arrive pas à voir précisément le problème pointé. Par ailleurs, notez que cette lib est en cours de développement et qu'elle en est à la version 0.2.3 https://github.com/noalien/GL4Dummies/tree/master/APG23_GRP_A/apga_claude-0.2.3
Dans la version 0.2.0 il n'y a pas de depth test ; cela peut produire des effets visuels non attendus.

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