Modern-OpenGL-Tutorials | Learning library
kandi X-RAY | Modern-OpenGL-Tutorials Summary
kandi X-RAY | Modern-OpenGL-Tutorials Summary
This tutorial series will cover how to use modern OpenGL instead of the old and deprecated Immediate Mode. These tutorials are based on the work of and
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 Modern-OpenGL-Tutorials
Modern-OpenGL-Tutorials Key Features
Modern-OpenGL-Tutorials Examples and Code Snippets
Community Discussions
Trending Discussions on Modern-OpenGL-Tutorials
QUESTION
IDE: xcode
System: MacOS
What I'm trying to doMy project [repo] is at the point where I successfully made a skybox [tutorial link] work, but I'm struggling with assimp's model loading [tutorial link].
The problemI don't recieve any errors. The model is just not loading into the window, even though I added cout << vertices.data() << endl;
[github line link] at the respective line in the model.h
[github line link], after it get's initialised in main.cpp
[github line link] which is printing 0x106e6b000
, so the models vertices are loading.
However, the window remains empty, apart from the background color. In the tutorial [youtube video link with timestamp], which i followed faithfully, it's working.
What I'm trying to accieve:I'm trying to render the model nanosuit.obj
, which is proven to be red in. ourModel.Draw( shader );
should draw it, but doesn't or it's not being displayed.
For some reason it's not being displayed, despite no errors that data cant be found or exceptions triggered.
I would love to give a MCVE, but the code it very much interconnected, hence the github links.
As far as I can say this should draw the model, unless it complains.
...ANSWER
Answered 2019-Jul-12 at 21:42Got it. Model was never initialised. The tutorial was pre 2018, which is when GLM went away from auto initialising.
In the snippet I posted was the error.
It's supposed to be:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Modern-OpenGL-Tutorials
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