Most Popular

1500 questions
8
votes
1 answer

NURBS topology classification

In what sense is it true that a NURBS surface can only have the topology of a plane, cylinder or torus? For example I can do a NURBS sphere. Is the sphere homeomorphic to one of the above surfaces?
Valerio
  • 433
  • 2
  • 5
8
votes
1 answer

DirectX12 CbvHeap

With directX12 they introduced heap descriptors. A way for us to describe the table for resources we wanted to send to the shaders. I'm admittedly very new at computer graphics and only tinkered a bit in directX11. I have not toyed with instancing…
Andrew Wilson
  • 828
  • 7
  • 15
8
votes
1 answer

Using extensions in Android OpenGL ES 2.0

It is no secret that according to the official documentation extensions are not available under OpenGL ES 2.0. Nevertheless, the glext.h file present in the NDK platform-include directories makes me think that extensions are indeed available. I know…
Netherwire
  • 275
  • 2
  • 6
8
votes
1 answer

Energy Conservation for Blinn-Phong BRDF

I am trying to sample from the Blinn-Phong BRDF. For testing, I use a spherical light source (Lambertian emission) sitting on a specular plane. Here's a reference image using energy-conserving Phong with exponent 30000: Notice that no energy is…
geometrian
  • 1,980
  • 13
  • 26
8
votes
1 answer

OpenGL Compute Shader generating triangle indices: How to get correct element count for glDrawElementsIndirect?

I have a sequence of compute shaders that generates an indexed mesh.The last one of those writes the generated indices like this: void addTriangle (uint i0, uint i1, uint i2) { uint ic = atomicCounterIncrement(indirectIndexCount); …
cupe
  • 203
  • 1
  • 10
8
votes
1 answer

Detect in-focus regions of an image

Is there any strategy to detect the region of an image that is sharp and in-focus, in order to separate the out-of-focus background? I've tried using edge detection methods but without any success. In other words, is it possible to determine if an…
p2or
  • 596
  • 1
  • 7
  • 15
8
votes
2 answers

Moires patterns despite using mipmaps

I am working on Silverlight app. I am trying to render floor covered with tiles. Although I am using mip maps I am still getting awful Moire patterns, when trying to render big area. What I am doing is creating cuboid and then cover it with single…
bartosz.baczek
  • 399
  • 1
  • 12
8
votes
2 answers

To what degree, if at all, can custom code be embedded in a PNG, GIF, or JPG?

Computer graphics files are in Windows rendered by components such as the Graphics Device Interface and Direct2D. Is it possible to create a graphic file that, besides displaying a graphic also utilizes custom code inside the graphic file? With…
user1806
8
votes
2 answers

Is there some kind of Bresenham algorithm or equivalent for scanline rendering a rotated ellipse?

Back in the day when you often had to write your own low level rendering algorithms we all used to learn the Bresenham algorithms for lines and circles. It was almost trivially easy to extend the Bresenham circle algorithm to cover ellipses whose…
hippietrail
  • 512
  • 1
  • 4
  • 12
8
votes
1 answer

Legendre Polynomial equation in Spherical Harmonics

I recently started to read about spherical harmonics. I have a question about this spherical harmonics basis function equation which is mentioned in this StupidSH article: What are those lm() and Re() used for? The article can be found here:…
user3059485
  • 253
  • 1
  • 4
8
votes
2 answers

How can I detect edges between different colours of the same brightness?

I'm looking for an algorithm that can identify edges across which colour is changing sharply, rather than just finding changes in brightness. Is this just a matter of using a different colour space with existing edge detection algorithms, or is…
8
votes
3 answers

Fundamental drawbacks of rasterization over ray tracing

Are there any fundamental drawbacks/limitations of rasterization as compared to ray-tracing? When I search on the internet, I get vague explanations like rasterization does not provide lighting effects as good as ray-tracing. It means that…
8
votes
3 answers

Understanding VAO and VBO

I'm reading through Learn OpenGL to refresh the basic concepts as I haven't touched in quite some time. Specifically I still think I cannot quite understand the meaning of VAO and VBO, the book mainly proceeds through examples it doesn't really give…
user8469759
  • 556
  • 1
  • 6
  • 17
7
votes
1 answer

How do I create a Win32 window with a Vulkan context?

I am aware of libraries that already do this (like GLFW), but I would actually prefer do all of the window and context creation by myself.
user9436
7
votes
1 answer

How to match Blenders polynomial lens distortion model with GLSL?

I'm trying to re-implement Blenders (libmv) polynomial lens distortion model using shadertoy, in order to apply the lens distortion in another application ideally by generating a STMap for that. I think I'm close, but when passing the same values…
brockmann
  • 71
  • 4