OpenGL-101 | could find the code for OpenGL
kandi X-RAY | OpenGL-101 Summary
kandi X-RAY | OpenGL-101 Summary
OpenGL-101
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of OpenGL-101
OpenGL-101 Key Features
OpenGL-101 Examples and Code Snippets
Community Discussions
Trending Discussions on OpenGL-101
QUESTION
I am trying to build a model matrix where I apply some common transformations like scaling, rotation and translation. I was following a tutorial here: https://solarianprogrammer.com/2013/05/22/opengl-101-matrices-projection-view-model/. I know that matrixes are not commutative so I think I paid attention to get the correct order of transformations.
But when I try to translate my model it gets stretched into the corresponding axis instead of translating. Here is how it looks:
I would appreciate any help. :)
Vertex shader
...ANSWER
Answered 2019-Jun-17 at 11:01See The OpenGL Shading Language 4.6, 5.4.2 Vector and Matrix Constructors, page 110:
To initialize a matrix by specifying vectors or scalars, the components are assigned to the matrix elements in column-major order.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install OpenGL-101
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page