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

is glm::cubic broken? #1284

Open
perkele1989 opened this issue Apr 6, 2024 · 0 comments
Open

is glm::cubic broken? #1284

perkele1989 opened this issue Apr 6, 2024 · 0 comments

Comments

@perkele1989
Copy link

perkele1989 commented Apr 6, 2024

From gtx splines

I assume it's intended to be used like catmullRom, however given the same parameters it shows unexpected(?) results.

example for cubic, running code glm::cubic(prevHexPos, currHexPos, nextHexPos, nextNextHexPos, ii)
image

example for catmullRom, running code glm::catmullRom(prevHexPos, currHexPos, nextHexPos, nextNextHexPos, ii)
image

they are both passed the exact same valid positional vectors. The lines drawn seem to point from the correct origin, however the target seems to be off in the distance somewhere away from the world origin (seems to be complete opposite direction of origin, so maybe the resulting vector is scaled somehow?)

I don't remember exact version of glm but I think its 1.0.1.

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

1 participant