Skip to main content
Advice
1 vote
2 replies
197 views

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 ...
ShizamDaGeek's user avatar
0 votes
1 answer
73 views

When converting a matrix from one library to another, is there a way to assign the data pointers of the respective structures of matrices from Eigen, glm and ipp libraries instead of copying them ...
Vectorizer's user avatar
  • 1,514
0 votes
0 answers
51 views

I'm working on a Vulkan project that takes my phone Quaternion data through a UDP connection, and then is used to transform the coordinates of a sword. However, the model doesn't accurately represent ...
Vamer's user avatar
  • 1
1 vote
1 answer
130 views

Is there a way a header-only library like GLM can be used as a module? module; #include "HeaderOnlyLibrary.h" export module MyModule; I know that includes have to go in the 'global module ...
Zebrafish's user avatar
  • 16.3k
1 vote
1 answer
132 views

In GLUT we can register a callback when the viewport size is changed. And often the reshape function looks like this, which changes the perspective projection matrix. void reshape(int width, int ...
HalfOfRain's user avatar
8 votes
2 answers
277 views

Given a rotated rectangle, how can I find the largest axis-aligned rectangle of a given aspect ratio that can fit within the original rectangle? For example, I'd want to find the largest rectangle of ...
screwnut's user avatar
  • 1,490
0 votes
1 answer
169 views

I can see an icon in my dock (icons-only task manager) but i can't see it i can hover it and yes it's the Vulkan window. #include <vulkan/vulkan.h> #include <GLFW/glfw3.h> #define ...
Spicy Shallots's user avatar
0 votes
1 answer
53 views

I'm using glm_project from cglm to project a 3D world position to screen space. The code mostly works, but when I rotate the camera, the projected screen position moves in the opposite direction. Here'...
iamwhosiam's user avatar
1 vote
2 answers
126 views

I have a world space position named P. I want to compute its corresponding position in another space named let's say "L". L is made of two components: The world space position of its ...
TheChamp's user avatar
1 vote
1 answer
364 views

How to convert glm::quat data to glm::vec3 angles? Example: I've start data: glm::vec3 start = glm::vec3(90, 30, 45); and after convert to quat (0,730946)(0,016590)(0,677650) .... How to convert ...
St_rt_la's user avatar
0 votes
1 answer
77 views

Did GLM_FORCE_SIMD_AVX2 change to GLM_FORCE_AVX2? Because in the manual.pdf and the sources I've seen on the internet says: #define GLM_FORCE_SIMD_AVX2 #include <glm/glm.hpp> // If the ...
Zebrafish's user avatar
  • 16.3k
1 vote
0 answers
44 views

I am writing a camera controller for my project and I have rewritten it many time, but for some reason every time I look up or down about 50° the camera starts rotating rapidly. Here is my current ...
VSDuckGuy's user avatar
1 vote
1 answer
159 views

I wrote a demo drawing a textured sphere using an indexed draw using triangle strip. The indices seem correct. Given 30 points around each row: 0, 30, 1, 31, 2, 32, ... 29, 59, 0, 30 Then there are ...
Dov's user avatar
  • 8,644
0 votes
1 answer
614 views

I am having issues building the GLM library. I am using Windows and VS Code. I have the following installed: Mingw64 that includes gcc and g++ compilers cmake For GLM, as instructed in their readme: ...
Murat Aykanat's user avatar
0 votes
1 answer
180 views

Nothing is drawn in the screen. Only a black window is being shown and no shape or anything. My laptop doesn't have a dedicated Graphics card, only the integrated one. But it was working fine in same ...
Akhil's user avatar
  • 35

15 30 50 per page
1
2 3 4 5
94