Most Popular

1500 questions
4
votes
1 answer

understanding glm::perspective vs glm::ortho

I'm new to computer graphics. I played around with OpenGL and now am trying out Vulkan. Basically what I want to do, in 2D is have an 800x800 window, and I want that to represent 800 meters by 800 meters. Then I want a circle with a radius of 1…
mikeglaz
  • 269
  • 4
  • 6
4
votes
3 answers

Fill the plane with pentagons as tightly as possible in a regular way

I wrote a small python script with recursion to create a "lattice" of non-overlapping pentagons. Below one can see the first stages of recursion. One can see that 5 small pentagons are missing in the second stage of recursion. The code in python…
minimax
  • 51
  • 3
4
votes
1 answer

Calculating Skeleton-Deformed Mesh Normals

I'm implementing mesh skinning in a project of mine. I can calculate vertex positions based on bone transformations, but I've run into a problem with calculating their normals. From the resources I've read, it appears that a given vertex's skinned…
lowq
  • 143
  • 4
4
votes
0 answers

Better alternatives to the Lambert BRDF

After reading about the new Disney Diffuse BRDF, I have been wondering if this is currently the best Diffuse BRDF at the moment? How much more of a difference would this make compared to using a Lambertian BRDF? I have heard of other BRDFs such as…
Arjan Singh
  • 2,511
  • 3
  • 22
  • 38
4
votes
2 answers

How glVertexAttribPointer works?

I know that when you call glVertexAttribPointer, you are specifying how the buffer currently binded should take its own data. But if you can have binded one buffer per type (Let's say GL_ARRAY_BUFFER and GL_ELEMENT_ARRAY_BUFFER) then, Are you…
Adrian
  • 667
  • 8
  • 17
4
votes
1 answer

Using RGB texture format for image load/store

As stated in documentation possible values for layout qualifiers of image formats are (for example floating point): Floating-point layout image…
mdkdy
  • 2,169
  • 1
  • 12
  • 19
4
votes
1 answer

How to change sampler/pipeline states at runtime in Vulkan?

I have problems implementing a Vulkan renderer alongside my OpenGL one. In OpenGL one can change sampler parameters easily at runtime (like anisotropy settings through glTexParameter) or blend/depth states. I wonder if this is also possible in…
char8_t
  • 143
  • 3
4
votes
1 answer

How to handle specular highlights with reflection / total internal reflection in a ray tracer?

Let's say that I have a raytracer that is rendering a scene that includes a refractive object. When a ray hits the refractive object, I know that I can use the fresnel equation (Schlick's approximation in my case) as well as the object's base…
Alan Wolfe
  • 7,801
  • 3
  • 30
  • 76
4
votes
1 answer

How does a rigged model work?

What black magic is behind this? Starting from a pile of polygons, a skeleton, and an initial conformation, how is a new conformation turned into a new pile of polygons?
Praxeolitic
  • 143
  • 4
4
votes
1 answer

Machine Learning and Computer Graphics

Is there currently anyone working on a link between these two fields? I have a hunch that, due to the repetitive nature of sampling, there could be a good bit to gain in the area of ray tracing using Machine Learning techniques, but I'm interested…
Sanjurjo7
  • 43
  • 5
4
votes
1 answer

Texture coordinates are not updating according to the vertex divisor specified

I want to draw a string of text with a single draw call (Instancing). I am reading a bitmap for each character texture. I want to pass the texture coordinates for each vertex of a quad (a single character). Now these texture coordinates are supposed…
videogamechef
  • 821
  • 1
  • 6
  • 19
4
votes
1 answer

How to perform vertex selection using unproject (Qt/openGL)

I am struggling trying to implement vertex selection by mouse clicking. I load in some set of vertices and display them onto the screen. Then I do the following to try and retrieve a line that passes through the selected point in world coordinates…
Slugger
  • 201
  • 1
  • 2
4
votes
1 answer

How to project a 3D point onto a plane along another (axis) vector?

I have a point $P = (0, y, z)$. I need to determine the $x$ coordinate of its projection $P'$ onto a plane $T$ along the $x$ axis unit vector $\vec{X} = (1, 0, 0)$. The plane $T$ is defined by a point $V$ that lies on $T$ and its normal $\vec{N}$…
niksbenik
  • 85
  • 1
  • 6
4
votes
1 answer

Exponential shadow maps sampling with PCF for sampler2DShadow instead of sampler2D

I am trying to make use of free hardware PCF sampling with sampler2DShadow and extend it to more samples. So far I am sampling shadow map (sampler2D) in ESM way and extending this to PCF and it works. So I have no acne (thanks to ESM) and soft…
mdkdy
  • 2,169
  • 1
  • 12
  • 19
4
votes
1 answer

What is the purpose of this cube in color quantization?

So, I go to install GMIC for Gimp via the package manager and landed myself upon the demo program. I have discovered things such as Hough transform and color quantization. So, I get the number of colors on the bottom bar, I understand what it is…