12 questions from the last 30 days
Advice
1
vote
2
replies
188
views
How do I create a raycast in C++ for a game
I have been making a 3D game from scratch using opengl and C++ and I want to know how I can make a ray casting class in C++ for my game where I can call it when ever I need to, to check for things ...
Advice
0
votes
6
replies
86
views
Polyhedra from its vertices in OpenGL
I'm currently working on Voronoi polyhedra, I already have a software that generates all the vertices for me, but a got no indexes to draw the polyhedra.
I know how to draw polygons and 3d shapes ...
2
votes
1
answer
52
views
Window goes black when enabling GL_DEPTH_TEST?
I have a problem that my window:
// gcc -o minimum main.c -lglut -lGL
#include <stdio.h>
#include <unistd.h>
#include <GL/gl.h>
#include <GL/glut.h>
extern void ...
-1
votes
0
answers
81
views
OpenGL Window won't display [closed]
I am having issues getting this to run:
main file:
//
#include <iostream>
#include <GL/glew.h>
#include <OpenGL/OpenGL.h>
#include <GLFW/glfw3.h>
#include <fstream>
#...
-6
votes
0
answers
48
views
FPSAnimator makes the square not render [closed]
If I comment animator.start() in the main method, the square renders perfectly:
But if I uncomment animator.start(), only a white background shows.
Display method in class that implements ...
0
votes
0
answers
53
views
wrong transformes for model loaded with assimp in opengl
Im trying to apply the model's transforms by walking the node heirarchy, but the poses are wrong (im not trying to animate it, just load it in a pose by using the transforms given in the gtlf file)
...