AnnoyinC
  • Member for 2 years, 8 months
  • Last seen more than a month ago
BVH uses aabb for a sphere in Ray Tracing: The Next Week
1 votes

I agree with @xasp's answer, but to understand why you would do it like that: Checking for ray-circle intersections is not the most expensive in terms of cpu-time required, but a ray-aabb intersection ...

View answer
Debugging refraction in a sphere
1 votes

You need to make use of a discriminant, also when dealing with floating point comparisons it is wise to use an epsilon (small value for accommodating fp-error). Also keep in mind that it matters ...

View answer
THREEjs: updating an object's matrix doesnt change it's position and rotation params
Accepted answer
0 votes

I think you need to call setFromMatrixPosition(m) again after updating the matrix. After all, you need to update both the position and matrix, not just the matrix. mesh.position.setFromMatrixPosition(...

View answer
Defining "inside" and "outside" of a 3D space
0 votes

I think you can make a graph of the entire surface and have your algorithm "walk" over it. Your planes would be hugging the surface but it would be the shortest. You could fix the hugging ...

View answer
How to visualize density data as volume using OpenGL?
0 votes

What you're looking for is "volumetric rendering", here is one resource with code that takes data in the form of images of the layers: Getting started with Volume Rendering using OpenGL A ...

View answer
Inverted Normals in Raytracer
0 votes

When you take the dot product of two unit vectors, you are essentially calculating the cosine of the angle between them. This value can become negative when the two vectors are less than 90 degrees ...

View answer
What exactly is the orthographic projection used by Matlab
0 votes

All of the above. If you look on matlabs page a little further down, it becomes apparent that matlab initializes a canvas (the screen), then looks for each pixel what is directly behind that screen. ...

View answer
How can I raycast with chunks?
-1 votes

Have you confirmed that objects that clip a chunk border are stored in both chunks? Have you confirmed that octrA[map.x/2][map.y/2][map.z/2] can't point to anything weird? In fact, what even is ...

View answer