raytracing
Pointer giving garbage values even after being set
I am having a weird problem with pointers .I am building a k-d tree for ray tracing and during the BuildKDtree function I print root->left and root->right and I get correct values for various attribut[详细]
2023-01-19 21:31 分类:问答How to deal with refraction when the rays start inside of a nested object
I am building a simple raytracer for educational purposes and want to add refraction to objects. Using Snells Law, I am able to create a new ray recursively at the intersection points. The raytracer s[详细]
2023-01-19 03:48 分类:问答C or ObjC for real-time raytracer on iOS?
I\'m starting to build a real-time raytracer for iOS.I\'m new to this raytracing thing, all I\'ve done so far is write a rudimentary one in ObjC.It seems to me that a C-based raytracer is going to be[详细]
2023-01-18 09:57 分类:问答Can someone describe the algorithm used by Ken Silverman's Voxlap engine?
From what I gathered he used sparse voxel octrees and raycasting.It doesn\'t seem like he used opengl or direct3d and when I look at the game Voxe开发者_如何学Clstein it appears that miniature cubes a[详细]
2023-01-18 02:06 分类:问答How to do ray tracing in modern OpenGL?
So I\'m at a point that I should begin lighting my flatly colored models. The test application is a test case for the implementation of only latest methods so I realized that ideally it should be impl[详细]
2023-01-15 12:11 分类:问答Reading in polygons from a Object File Format (.off) file
I need to read in a list of polygons from a Object File Format (.off) file (in c++). The format of .off files is basically like this:[详细]
2023-01-13 15:10 分类:问答How can I change this raycasting algorithm to not go diagonally?
// Arg0 - Map, Arg1 - X, Arg2 - Y, Arg3 - Distance, Arg4 - MaxDistance var xx,yy,dist, x1, y1, dir, maxdist, obj, res, map;[详细]
2023-01-08 06:14 分类:问答How to keep a list of instances of a class?
I\'m writing a raytracer in C++ and need to be able to check intersections with every object in a scene (optimizations will come later), and to do this, I need to keep a running list of class instance[详细]
2023-01-06 23:28 分类:问答Simple C/C++ library for triangle-intersection acceleration structure
I\'m raytracing and would like to speed it up via some acceleration structure (kd-tree, BVH, whatever). I don\'t want to code it up myself. What I\'ve tried so far:[详细]
2023-01-04 09:13 分类:问答Determining if and where a photon will collide with a polygon in 3D space
The problem is straight forward: 1) We have a photon traveling from Point 1 (x,y,z) to Point 2 (x,y,z), both of which could be located anywhere in 3D space.[详细]
2023-01-01 14:22 分类:问答