Most Popular
1500 questions
3
votes
2 answers
Debugging tools for OpenGL on macOS
I am porting some code from Metal to OpenGL since we want to run our app on Windows too. Xcode is my preferred IDE, but the newer versions of Xcode do not support any OpenGL debugging.
Question: What do people usually use as a debugger for OpenGL?…
gndpsingh
- 43
- 2
- 5
3
votes
1 answer
map 16-bit integers to RGB colors with monotonic relative luminosity
Red, Green and Blue apparently contribute differently to the luminosity perceived by humans:
https://en.wikipedia.org/wiki/Relative_luminance
I am trying to find an algorithm to map unsigned 16 bit integers into RGB values such that the relative…
Marcus Junius Brutus
- 133
- 4
3
votes
3 answers
Estimating the position of vertexes in a 3D model
Introduction to my project:
We are machine learning scientists and working on a biomedical system for tracking tongue for speech pathology using a technology called EMA (Electromagnetic articulography). In EMA a coil is attached to tongue surface…
Mike Zadeh
- 31
- 2
3
votes
1 answer
Trading off instancing for render order
I've been doing some searching online and it seems like I could improve my renderer by ordering my draw calls based on depth. For opaque objects render the closest items first and move backward in depth to hopefully take advantage of depth test…
JHall
- 57
- 3
3
votes
2 answers
Diffuse lighting calculations in ray-tracer
I am trying to write a ray-tracer. The lighting part is proving to work but not accurately. To debug I simplified the scene to a single sphere centered at the origin with a radius of 1 and a point light shining from above (0, 2, 0). The camera is at…
Anson Zhang
- 31
- 2
3
votes
1 answer
Is it possible to do color conversion on decoded video without getting it from GPUmemory to CPU memory?
Decoding video will result in different pixel formats on different GPUs and drivers. I have an application which can render (using OpenGL), only the RGB8 pixel format, therefore I need to do color conversion from the decoded pixel format to RGB8. I…
Guerlando OCs
- 131
- 3
3
votes
1 answer
Rendering equation in terms of paths rather than directions
Path tracing seems to perform Monte Carlo integration where the space being integrated over is the space of paths (e.g. chains of rays) but the rendering equation is stated in terms of outgoing rays. Naively you would have to perform the integration…
Jake
- 205
- 1
- 5
3
votes
1 answer
Offline path tracer produces a darker image than expected
I've been going though Peter Shirley's beginner raytracing books. Upon building the Cornell box and rendering an image, I get a much darker / dimmer image than expected.
The color values are normalized (in the range [0.0f, 1.0f]). The author of the…
user9391
3
votes
0 answers
What expectations should I have of large (> 2 GB) file support in common mesh workflow tools?
I have an experimental workflow that involves very finely subdivided meshes, above the 2 GB limit where signed 32-bit integers stop working, which often causes problems for various tools. I would need my users to be able to handle such mesh files.…
Dan Hulme
- 6,780
- 1
- 16
- 35
3
votes
1 answer
Strange dark spot when lighting in deferred rendering PBR shaders
It's probably something obvious but there seems to be a strange issue with lighting in my pipeline. I'm trying to keep everything in world space at the moment for simplicity but cannot figure out what's going on here. Take a look at my…
user1117065
- 51
- 4
3
votes
1 answer
Adding two fogs
When calculating fog along the ray we have two main part- transmittance and scattering.
What happens when we have two different fogs? With different extinction and color?
Both extinction and color constant along the ray.
Transmittance seems easy to…
Derag
- 596
- 3
- 13
3
votes
2 answers
Triangle - Why is it the basic building block for complex shapes
I was recently learning about OpenGL and computer graphics development. I have a question regarding the usage of triangle as the basic building block, or basic shape to develop complex shapes. Is there a particular reason? Or just something that…
3
votes
0 answers
How to separate, modulate, and reassemble spatial frequencies?
Background
I am trying to create a node in Blender that would allow me to do what you would do with an audio equalizer but on the spatial frequencies of an image: A sort of panel with eight controllers, from low to high spatial frequencies, which…
Robert Angels
3
votes
0 answers
Can I use Path tracing together with Ray Marching?
So I'm trying to render participating media like clouds/sky/fog (Sky is the first step) etc. I had already implemented a normal pathtracer and I was thinking of extending it. But I heard terms like Ray marching/Sphere tracing are used for rendering…
gallickgunner
- 2,438
- 1
- 12
- 34
3
votes
1 answer
Origin of blurring and colour distortion in monochrome diagrams
I am analysing a large number of PDF files from scientific articles, all of which contain images which (I think) were originally monochrome ( black/white).
The images have been extracted with Apache PDFBox and I am doing image processing on…
peter.murray.rust
- 133
- 5