All Questions

Filter by
Sorted by
Tagged with
1
vote
1answer
46 views

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 ...
1
vote
2answers
84 views

How to calculate interpolation between multiple skeleton poses?

I found out that I should use spherical linear interpolation to blend two poses of a joint. I cannot find what to do if I have hundreds of poses to blend except applying the SLERP iteratively. What ...
2
votes
1answer
66 views

Why the Bresenham's algorithm does not work for those two points?

I am using the Bresenham algorithm from wikipedia: ...
0
votes
1answer
58 views

Factor of 2 converting radiance to irradiance

For a Lambertian surface, the radiance at a point is $$L = \frac{\alpha}{\pi}\cos\theta_i E_0$$ If we have an infinite flat surface, albedo = 1, illuminated directly normal, then we get $$L = \...
0
votes
2answers
86 views

Any good sources on advaced/special rasterization algorithms and techniques and theory behind them?

I spent quite some time looking for books on rasterization of vector graphics and related challenges. The best I found is "Raster Tragedy in Low Resolution",which is old and focused on fonts. There ...
0
votes
0answers
30 views

Where to store a very small set of shading constants in D3D12?

My rendering engine heavily uses implicit rendering techniques, so I have relatively little constant data to upload every frame (just 240 bytes of rendering settings; surface parameters are passed ...
0
votes
0answers
59 views

Programmatic rendering of 3D animations

Many years ago I used POV-Ray to render some 3D animations. I liked POV-Ray's Scene Description Language (SDL) as I could generate the required files programmatically using other languages (e.g. Perl)...
2
votes
0answers
106 views

Recreate geometry from normal map

I have a group of low polygon meshes, with associated normal maps. The normal maps were created by baking from high polygon meshes, which I no longer have access to. Is it possible to recreate ...
4
votes
0answers
140 views

Pre-filtered environment map, deriving the equation

I'm reading through this article, and more specifically I'm trying to derive the equation that would explain the implementation the following shader (still in the same article): ...
3
votes
0answers
98 views

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 ...
2
votes
1answer
67 views

How is this normals map supposed to work?

I have come across this image that's labelled a bump map to be used with a 3D model. It looks like this: In this map, which is an RGB map, it seems we have pixels whose normals face upwards shaded ...
0
votes
0answers
29 views

gradual transition of light intensity formula

Imagine I have an x value that ranges from 1-100. The light source is pointed at x=50. From points 35 to 65 I want intensity to be 1 At the ends (ie 1 and 100), intensity should be 0 What formula ...
4
votes
1answer
85 views

Dealing with interpolated normals within a raytracer

I am trying to render a teapot within a simple raytracing that can handle reflection, refraction, and shadowing from point and directional lights. I am very confused about one detail of the raytracer ...
3
votes
1answer
158 views

Calculating the gradient of a triangular mesh

This question is regarding a homework assignment (want to be upfront because many people on stack exchange don't like helping with homework questions). I have a triangular mesh, which is defined by a ...
2
votes
1answer
58 views

Confusion about data types in Jensen's subsurface scattering paper

I am currently trying to implement Jensen's paper on subsurface scattering, but I am getting confused when I am trying to implement it in my pathtracer. I have questions about the data types of ...
0
votes
1answer
78 views

Nice way to make noise seamless (without tampering with the noise generator)

Here's the problem : I have multiple noise generators in my program I Can't change. Perlin Noise, Diamond Square, Voronoi, etc. Unfortunately for me, I want the noise to be tileable, no matter the ...
3
votes
1answer
66 views

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 ...
0
votes
0answers
40 views

How do I represent the grid patterns of the image in the included figure with a DITHER MATRIX?

The problem statement is: "Represent the grid patterns in [the the figure linked below] with a dither matrix." The figure is: https://www.docdroid.net/d90WXko/figure.pdf Apparently, according to the ...
3
votes
1answer
152 views

Can microfacet BRDF (including ggx) represent perfect mirror?

Perfect mirror's brdf is simple, $F\frac{\delta(\omega_i-\omega_r)}{|\cos(\theta_r)|}$ as in http://www.pbr-book.org/3ed-2018/Reflection_Models/Specular_Reflection_and_Transmission.html As shown in ...
4
votes
1answer
109 views

Camera Model View transformation in Ray Tracing

I am implementing my own simple ray tracing and I came across some sort of confusion. When defining the verticies in the world I multiply them by the modelView transformation system (the matrix ...
1
vote
0answers
42 views

Optimisation of Geometry Pass

I'm trying to optimize a geometry pass for a game using dx11 and deferred rendering. (All test are performed on Nvidia GTX 1060 at fixed clock rate) After profiling with NSight it seems to have very ...
1
vote
0answers
30 views

Are there some methods of preventing tools like FotoForensics from detecting manipulations?

I am asking this question purely our of curiosity. I do not look for step-by-step tutorial on how to manipulate a photo and making sure that it will be hard to detect it. I was wondering, because ...
0
votes
1answer
46 views

Local Coordinates of Deformed Lattice

I'm making a lattice based volume FFD and I'm having trouble with gaps in my data resulting from doing a typical deformer. I think I need to go through the voxels in the deformed lattice and then find ...
0
votes
0answers
35 views

Cover a polygon with least amount of parallelograms

I am solving the task that is as follows: Input: a polygon. Can be any kind of polygon without self intersections. Can be a non-convex and with holes inside. Goal: to cover it with 2 (at least) or ...
2
votes
1answer
53 views

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 light: $$\frac{1}{...
2
votes
0answers
16 views

Should I use common resource bindings across all my shaders in HLSL/D3D12?

Will unaccessed bindings consume cache or bandwidth? I want to improve cache usage by splitting the per-path information in my renderer across different resources, but I also want to keep my binding ...
0
votes
0answers
34 views

Is it possible to have multiple descriptor ranges in a single descriptor table?

Let's say I have the following registers in my HLSL 5.1 shader: Texture2DArray g_texture_array : register(t1); Texture2D g_texture[10] : register(t0); I had in ...
1
vote
1answer
77 views

Difference between isnan and comparison to self

In GLSL, what is the difference between isnan(x) and !(x == x)?
6
votes
0answers
77 views

Noise shaping for dithering with gamma?

The context of this question is correct dithering of color with gamma correction. In dithering we add (shaped) noise $n$ to a signal $s \in [0, 1]$ based on a random variable $r \in [0, 1]$ $$s' = s +...
1
vote
2answers
83 views

3D object to slices like in medical scan

I am novice lacking professional terminology. I want to create from 3D object (let's say from polygon mesh) a slice through to PNG file in order to create something like reverse medical MRI scan from ...
2
votes
1answer
97 views

How to do CSG on 3D triangulated objects, originally stored as a .obj file, using openGL or other libraries?

What I would like to do is to create a crater on a field. To do so, I thought that creating a universal crater object (something cone-shaped) and then subtracting it from the field on a specified ...
0
votes
0answers
28 views

Arrange common items to spell out words

This seems like a pretty easy thing to do, but I've never done anything like it and I would rather not reinvent the wheel - so I'm looking for example code in pretty much any language or an algorithm ...
0
votes
0answers
27 views

Why did most or all vector graphic devices not support some type of curve input parameters?

In the case of classic plotters, it seems the hardware would have been able to handle (something like bezier) curves with the correct software, but instead curves were drawn very slowly using a large ...
1
vote
1answer
33 views

How to scale primitive shapes [in Blender] so that they are within a [unit] sphere?

I wonder how is it possible to scale all shapes so that they are within boundaries of a [unit] sphere? I know how to do this for a cube: if radius of the sphere is S...
0
votes
1answer
111 views

Mimic shadertoy in WebGL

I was following this guide for drawing circles using shadertoy. Now I am trying to mimic the examples behaviour in WebGL. Here is a working shadertoy example I try to mimic. The code is not mine, see ...
2
votes
1answer
77 views

how many watts are in the SPD of the color white?

Please help. I'm trying to implement a ray tracer, going by the PBRT book and got stuck on an issue that I fail to find the answer to. My scenes are made from objects and light sources. From that, I ...
0
votes
0answers
24 views

Why need a $h$ parameter in the Geometry Function of a BRDF

Geometry Function in the specular BRDF term is defined as $G(l, v, h)$. Why need a $h$ since $h=\frac{l+v}2$. $f_{spec}(l,v) = \frac{F(h,v)G_2(l,v,h)D(h)}{4|n\cdot l||n\cdot v|}$ from "Real Time ...
3
votes
2answers
208 views

Unfold a 3D mesh to a 2D plane

I'm trying to unfold a 3D mesh onto a 2D plane. My general idea to do this, would be to cycle through all the faces of the meshes and perform a hierarchical transformation. So I would start at the ...
2
votes
1answer
71 views

GL_DEPTH_CLAMP has no effect (reverse z)

In an effort to improve cascaded shadow maps, I have looked into using GL_DEPTH_CLAMP and moving the near and far plane just around the actual view frustum instead of the global bounding box. But the ...
2
votes
0answers
123 views

HalfEdge data structure in openmesh, create_face function explanation

Does anyone have experience with open-mesh or computational geometry and can kindly explain what exactly happens in the function below? ...
1
vote
1answer
92 views

How can I transform an ellipse into a circle?

I have an ellipse which has -45 degree axis. How can I transform the ellipse into a circle? Can I use shear transformation along the x/y axis?
3
votes
1answer
102 views

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 ...
4
votes
0answers
115 views

Learning light transport using Q-Learning

I am trying to reproduce the results obtained by Dahm et al. in the paper Learning Light Transport the Reinforced Way. This method takes advantage of the similarity between the Bellman equation (Q-...
0
votes
1answer
76 views

Rendering 3-D point clouds obtained from depth maps as a 2.5D video

Suppose I have code to generate a bunch of frames, each of which is a depth map(I have access to the matrices which represent depth) which in turn is used to generate a point cloud. One frame would ...
3
votes
1answer
163 views

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 ...
2
votes
1answer
141 views

Floating Point Operations in Line Drawing Algorithms

When it comes to line drawing, DDA is the simplest and most intuitive algorithm, the core idea being: compute the slope of the line for every increment in x, increment y by the slope However, DDA is ...
-1
votes
1answer
98 views

Unsolved Problems in CQ to this day?

What problems haven't been solved yet when it comes for instance in rendering,deferred rendering, Volumetric lighting, ambient occlusion or in any other interesting area. When i say unsolved problems, ...
2
votes
1answer
67 views

Why is cos(𝜃) in the denominator in the reflectance equation and in the numerator in the shading equation?

Background: I'm reading https://learnopengl.com/PBR to learn about PBR. In the theory slide (https://learnopengl.com/PBR/Theory), the author has the reflectant equation as The theta (the angle ...
3
votes
0answers
44 views

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-...
4
votes
1answer
124 views

Do straight lines always remain straight when projected with a perspective camera?

If I have a straight line in 3D space and I use a camera matrix to do a perspective projection into a 2D plane/screen will the resulting line always be straight too? If I project the start point and ...

15 30 50 per page