glm-math Questions

3

Solved

I do not have permissions to put GLM into usr/local/include or usr/include but I need to use GLM for openGL. The code (I am not able to change) looks for GLM like this: #include <glm/glm.hpp&gt...
Riha asked 11/3, 2015 at 2:14

2

Solved

I have fov angle = 60, width = 640 and height = 480 of window, near = 0.01 and far = 100 planes and I get projection matrix using glm::perspective() glm::perspective(glm::radians(fov), width / he...

4

Solved

lately I am more a user of the Scala Programming Language than C++, And now I am frustrated in porting a very simple line of code val map = new HashMap[Vec2i,Entity] it simply refuses to compile...
Dysphemism asked 28/1, 2012 at 18:14

4

Solved

I am writing an OpenGL application and for vertices, normals, and colors, I am using separate buffers as follows: GLuint vertex_buffer, normal_buffer, color_buffer; My supervisor tells me that if ...
Knob asked 14/4, 2015 at 9:36

3

Solved

I want to create a view matrix for a camera which perpendicularly look at the ground: glm::mat4 matrix = glm::lookAt(glm::vec3(0.0f, 1.0f, 0.0f), glm::vec3(0.0f, 0.0f, 0.0f), glm::vec3(0.0f, 1.0f,...
Burden asked 24/11, 2015 at 8:13

1

Ball.h:7:10: fatal error: 'glm/glm.hpp' file not found #include <glm/glm.hpp> ^ 1 warning and 1 error generated. ERROR:root:compiler frontend failed to generate LLVM bitcode, halting I ha...
Deka asked 9/2, 2016 at 18:51

3

Solved

I'm currently working on a C++ game engine and I want to build mouse interaction in the application. I've done this previously by ray picking, but back then I used a fixed mouse position and now I ...
Undersecretary asked 2/5, 2015 at 1:0

3

Solved

I needed to implement 'choosing an object' in a 3D environment. So instead of going with robust, accurate approach, such as raycasting, I decided to take the easy way out. First, I transform the ob...
Totality asked 8/1, 2014 at 22:8

2

Solved

I have a glm::mat4 matrix and I need to get the values into a double[16] array. Any ideas on how to solve this problem??
Dallapiccola asked 19/9, 2013 at 8:47

1

Solved

I have this graphviz input: graph G { 0[p="(30, 3, 2)"]; 1[p="(29, 3, 2)"]; 2[p="(30, 2, 2)"]; 3[p="(30, 3, 3)"]; 4[p="(30, 2, 3)"]; 5[p="(29,...
Candide asked 28/7, 2021 at 13:15

3

Solved

I am making a game and I need the projectile to face which direction its going. I know which direction its going and I need to make a transformation matrix that would allow me to align the projecti...
Intercept asked 19/12, 2015 at 2:30

6

Solved

I have a small obj loader and it takes two parameters and passes them back to the input variables.. however this is my first time doing this and i'm not sure how to print said values now. Here is m...
Rook asked 17/7, 2012 at 3:4

1

Solved

Now I'm doing the following transformations on the object: Rotate along the X-axis Rotate along the Y-axis Moving along the Z axis by -2.5 //create model matrix model_matrix = glm::mat4(1.0f); //...
Galliett asked 11/2, 2021 at 14:7

3

I want to rotate my car by 90 degrees to the left in the game I have. When I use this code: glm::quat rot(info.Rotation.w,info.Rotation.x,info.Rotation.y,info.Rotation.z); glm::quat done(glm::rotat...
Stedmann asked 24/2, 2013 at 19:3

1

Solved

I am trying to rotate a point using quaternions as implemented in GLM. The end goal is to use this code to create an orbital camera but this is a side note to help understand the motivation behind ...
Jonna asked 16/7, 2020 at 15:10

3

I'm writing a program that loads a file containing a scene description and then displays it using OpenGL. I'm using GLM for all of my math operations. Rotations in the scene file are stored in quat...
Nattie asked 21/8, 2012 at 3:21

4

Solved

I am having trouble properly including / using the glm math library (http://glm.g-truc.net/ ) in my c++ project. Since glm is a "header only" library, I thought I could just include it with this li...
Winchell asked 11/10, 2013 at 21:30

2

Solved

I'm trying to render multiple objects in OpenGL using multiple VAO's and VBO's. To render multiple objects using the same vertices I've done it, but what I want to do is to use different vertices f...
Deforce asked 7/2, 2019 at 22:35

2

Solved

The OpenGL maths library(GLM) uses the following algorithm to compute the translation matrix: //taken from source code template<typename T, qualifier Q> GLM_FUNC_QUALIFIER mat<4, 4, T, Q...
Lema asked 7/12, 2019 at 3:46

2

this is probably really simple but I have downloaded the proper package for glm, glm-0.9.9-a2, but I do not know how to install. Instructions were either too complex or too simple. I was not able ...
Gilder asked 3/9, 2018 at 21:41

4

Solved

I am following a tutorial to learn OpenGL in which they used glm::lookAt() function to build a view but I cannot understand the working of glm::lookAt() and apparently, there is no detailed documen...
Yolanthe asked 17/2, 2014 at 13:27

1

Solved

In a typical building of a vertex-array-buffer, I am trying to pass an unsigned int attribute along side other classical ones (vertex, normal, texture coordinates...). However the value of this att...
Taker asked 9/9, 2019 at 12:54

1

Solved

glm has some code that looks like this, once pre-processor macros are resolved on my particular setup: type_vec3.hpp struct vec3 { /*...*/ vec3& operator=(vec3 const & v); /*...*/ } ...
Penetrant asked 2/7, 2019 at 2:39

2

Solved

What are the necessary maths to achieve the camera panning effect that's used in 3ds max? In 3ds max the distance between the cursor and the mesh will always remain the same throughout the entire ...
Poverty asked 13/12, 2018 at 9:6

2

I can implement the AABB method to detect collisions it is easy and cheap but I want to implement OBB for more accuracy so I create the bounding box with the model initialization it is consists of ...
Deflation asked 18/12, 2017 at 10:35

© 2022 - 2025 — McMap. All rights reserved.