Most Popular
1500 questions
3
votes
1 answer
What do the OpenGL version strings from glxinfo actually mean?
Note: I wasn't 100% certain if this question belonged here or in Ask Ubuntu. I figured since it was about OpenGL programming I'd put it here, but if I should move it to Ask Ubuntu, please let me know.
Background
I'm new to OpenGL and needed to…
RoboticForest
- 213
- 2
- 6
3
votes
1 answer
How to open and render in a second window with OpenGL / JOGL with NEWT
I have a working renderer implemented with Java in JOGL with NEWT. Now I want to implement a Material Editor which should run in a second window. However I can't get a second window up and render in it.
My main window is implemented as follows:
I…
Tare
- 1,551
- 7
- 24
3
votes
1 answer
Non jagged line algorithm for javascript canvas
I'm trying to draw a line between two specified points, by updating values in an array which is heightxWidth with each element a set of four bytes (r,g,b,a). In my naive implementation I get the top line which reaches a point with jagged steps in…
Li Brary
- 33
- 2
3
votes
2 answers
Why don't I see tile-based 3D graphics?
As we know, tiles can make it quicker to update large portions of the display at once, as compared with a bitmap. To put, say a letter, on the screen, the Commodore 64 typically does two writes (the screencode and the attribute), but the ZX Spectrum…
Omar and Lorraine
- 131
- 5
3
votes
2 answers
Multiple swapchains in Vulkan app with ImGui
I am integrating imgui into my app using glfw + vulkan example.
The function vkCreateSwapchainKHR() is also called by imgui setup logic in addition to my app on the same device and it fails with "internal drawable creation failed".
Under what…
Vectorizer
- 299
- 3
- 10
3
votes
1 answer
Mesh Simplification Algorithms
I'm currently looking into Mesh Simplification to batch-simplify a large amount of .obj files. It is necessary for these algorithms to preserve the visual representation of a mesh as well as possible.
During research I've stumbled over Garland &…
soultice
- 33
- 2
3
votes
1 answer
Vulkan: efficient way to update VBO mesh vertices?
I would like to change/add/remove some mesh vertices in existing VBO's (while deforming and remeshing 3D objects) . With OpenGL I would have to reload whole vertex VBO's. I suppose with Vulkan there could be a way to directly access VBO's to only…
Trantor
- 141
- 8
3
votes
1 answer
Why BMP file format last line of image is first line on file?
I'm studying Microsoft Windows Bitmap File Format, extension BMP.
I'm curious to know why scanlines are stored on file from bottom to up: the last scanline on image is the first line on file and the first scanline on image is the last line on…
alvalongo
- 131
- 4
3
votes
0 answers
Microfacet GGX not integrating as expected
I'm trying to complete a look-up table for an energy-conserving variation of microfacet GGX as implemented here: https://patapom.com/blog/BRDF/MSBRDFEnergyCompensation/
I have a (pretty standard) GGX form of the microfacet equation and my white…
polyrhythm
- 31
- 2
3
votes
1 answer
Wrong color in .ppm file
I'm going through the rasterizer tutorial from Scratchapixel, but I encountered a problem with the generation of the .ppm file. Since something was off, I reduced the example to the bare minimum, so I currently simply generate a 512x512 image of a…
Francis Moy
- 45
- 6
3
votes
1 answer
How does Next Event Estimation work with transformed lights?
I am relatively new to path tracing, and I am trying to implement next event estimation. I am following the Monte Carlo integral used to compute the direct illumination from an area…
Andrew Farm
- 33
- 3
3
votes
2 answers
Can I accelerate rendering an image from a ray cloud using a GPU?
Start with a precalculated "ray cloud" - the starting point and direction of a large number of rays, most of which will not contribute to the image. The image plane's position and orientation are then specified, and the task is to search the ray…
trichoplax is on Codidact now
- 6,292
- 3
- 23
- 69
3
votes
1 answer
3D coordinates of intersection point in clipping for a rasterizer
When doing clipping in homogeneous coordinates, we need to find the coordinates of the intersection of the viewing frustum with the line to be clipped. This can be done easily if we want those coordinates to be in screen space(simply divide by the…
Andreas
- 39
- 1
3
votes
1 answer
Why the ray tracing result looks weird?
I followed the book Ray Tracing in One Weekend and implemented a simple ray tracing procedure. There are 100 random samples every pixel for antialiasing, but the render result looks weird: There is a unnatural circle at the center of the screen, and…
YuChang
- 31
- 2
3
votes
0 answers
NURBS Weights De Boor's Algorithm
I am having trouble implementing an algorithm for 3rd degree NURBS.
I have been able to program 2nd degree ones from the equations described here but I am not able to derive an equation for Rational B-Splines of degree 3. The author describes the…
Felipe Gutierrez
- 278
- 1
- 6