Most Popular

1500 questions
3
votes
1 answer

Expressing a reflected ray at a point as a function of the incoming ray and the normal to the surface at that point

Said L the incoming ray (at a point $P$). $R$ is the reflected ray. $N$ is the normal to the surface at the point $P$. $\alpha$ is the angle between $N$ and $L$ (and $N$ and $R$ also). It is assumed a smooth surface (like a plane). $P_{R1}$ is the…
Nick
  • 321
  • 1
  • 9
3
votes
1 answer

How to store > 256 transparency values in textures?

I am making an engine with 2D volumetric transparent objects and need advice how to store transparency data. There are 3 requirements: - The transparency textures need to be easily editable with common tools (e.g paint.NET, so .png preferred) -…
sydd
  • 253
  • 1
  • 4
3
votes
2 answers

Checking the correct offset direction for Bezier curve offset

I am implementing Bezier curve offset. My approach is simple: Given the handles, calculate the vectors normal to them Move the handle along the normal vector. If the new curve intersects the old one, reverse the offset direction. etc. I would like…
user1790813
  • 131
  • 1
3
votes
1 answer

How to create specular surface in Mitsuba Renderer

I am a newbie in computer graphics and I am trying to develop a special case of path tracing really slowly! But first: I came up studying the Mitsuba renderer and one of its uses in the so-called GDPT (Gradient Domain Path Tracer). I am trying to…
Tarta
  • 355
  • 1
  • 12
3
votes
1 answer

What is the definition of "motion to photon" in VR?

The rough definition of "MTP" is clear. But the exact one is not. You can refer to these links: What is Motion-To-Photon Latency? | chioka.in Motion-to-photon latency | xinreality.com/wiki. But from different online articles, we get different…
Hao Zhang
  • 109
  • 6
3
votes
0 answers

What does these FXAA settings do?

I been looking for a way to do anti-aliasing with deferred rendering with WebGL as my target platform. WebGL does not support multisampled FBOs. I found FXAA implmentations such as this https://github.com/mattdesl/glsl-fxaa/blob/master/fxaa.glsl and…
user4874
  • 31
  • 1
3
votes
1 answer

Find closest point on surface interpolated by 2d matrix of points

I have rectangular matrix of 3d points sampled from a parametric surface. In my program this matrix provides base points for bilinear interpolation of surface (In any (u,v) point it returns 3d point interpolated from neighboring sampled values). Now…
Ibraim Ganiev
  • 393
  • 1
  • 5
3
votes
1 answer

Sobel edge detection line thickness

My goal is to implement an edge detection algorithmus that is capable to find edges of arbitrary 3d meshes. I want to find the edges by detecting normal discontinuities. Furthermore, I want the edges to be one pixel wide. I render the color values…
enne87
  • 601
  • 2
  • 7
  • 15
3
votes
1 answer

Can't make blending work

I have a 3 dimensional dataset where each value of the dataset is normalized to [0, 1]. I want to visualize this dataset by using texture, and blending. However, it seems that I can't make it work. Here is what I have done so far: int main(){ …
Sayan Pal
  • 263
  • 1
  • 9
3
votes
1 answer

How to deform some mesh so that it fits along a spline curve?

Given a set of vertices, transforming them to fit onto some spline curve. For example 3D modelling software has extrude along curve and Unreal Engine has a spline mesh component that takes some mesh and stretches it along a defined curve. Is there…
Arch
  • 33
  • 1
  • 3
3
votes
1 answer

Issue with size() function in Processing language?

I´m new to the Processing language. Trying to do my first sketch I´m having trouble with the dimension of the display window width and height because even though I´ve tried putting a variety of values in the size() function, the size of the window…
3
votes
1 answer

Fastest way to put a point on the circumference of a circle

My goal is to take a point that is inside of a circle with a given radius and put it on the circumference. Recently I have been normalizing the vector between the point and the center of the circle then multiplying that by the radius. However I…
J.Doe
  • 1,445
  • 12
  • 23
3
votes
1 answer

Maximal and minimal no. of angles obtained from clipping a convex polygon with n angles

I'm trying to figure this out for my Computer Graphics course, but I find it very hard to understand. I believe the minimum number of angles obtained from clipping a convex polygon with n angles is 0, for example if the polygon is outside of the…
Alex
  • 163
  • 5
3
votes
3 answers

How to determine if SceneKit can produce sufficiently 3D graphics like Minecraft?

Inspired by Minecraft and LEGOs, we created an app to promote creativity on smartphones. Many people like being creative but find a blank canvas daunting. "Recipes" inside the app let users create like the most talented individuals -- similar to how…
Crashalot
  • 181
  • 2
  • 6
3
votes
2 answers

Is there a performance implication if the frame buffer resolution and the physical screen resolution are different?

I was under the impression that the frame buffer resolution always has to be the same as the physical screen resolution, so changing the software resolution settings would not affect rasterization. But after I made a demo and ran a profiler against…
Chun-Fu Chao
  • 133
  • 2