tinyfiledialogs
  • Member for 7 years, 1 month
  • Last seen more than a month ago
Fast Ray Sphere collision code
0 votes

Given a ray defined as: x = x1 + (x2 - x1)*t = x1 + i*t y = y1 + (y2 - y1)*t = y1 + j*t z = z1 + (z2 - z1)*t = z1 + k*t $$ \begin{align} x &= x_1 + t(x_2 - x_1) = x_1 + it \\ y &= y_1 + t(y_2 ...

View answer
Best way to find line segment intersection
Accepted answer
2 votes

This problem can be extremely easy or extremely difficult; it depends on your application. If all you want is the intersection point, the following should work: Let A,B,C,D be 2-space position ...

View answer
How do game engines manage to 'detect' the opengl supported in a computer
0 votes

The calls to glGetString don't always work without an existing opengl context. One way to avoid creating a context to get the answers you are looking for is to launch glinfo (or wglinfo.exe) , and ...

View answer
Unity3D profiler isn't helping. How to debug increased memory?
-2 votes

valgrind could help you detect memory leaks. I think there is an OSX version.

View answer
How to hide a post-processed mesh outline when/where the mesh is hidden
0 votes

1) in a frame buffer object, you can run a laplacian shader in the GPU to obtain the contour. 2) you have to use the final depth buffer when you draw your object in the FBO, that way you will draw ...

View answer