Questions tagged [raytracing]

Ray tracing is a physics-based method for simulating photorealistic 3D scenes. Light rays are drawn from the eye through each pixel of the desired image, and the rays' interactions with the scene determine the displayed pixel color.

Ray tracing is a method (both physically-based and non-physically-based) for simulating photorealistic 3D scenes. Light rays are traced from the eye (or camera) through the geometry of the scene and the rays' interactions with the objects determine the final displayed pixel color.

It is capable, among other visual effects, to simulate light scattering, reflection, dispersion and refraction more realistically than other graphics rendering methods.

More information: http://en.wikipedia.org/wiki/Ray_tracing_%28graphics%29

1049 questions
-1
votes
1 answer

issue with ray tracer light diffuse

I wrote the light diffusing code and it's just not working I dont know why this is the code I wrote for diffusing t_vec pi = vec_add(ray.org,vec_times_double(ray.dir, t)); t_vec hp = vec_diff(light.pos, pi); t_vec…
-1
votes
1 answer

How can I obtain UV coordinates of rectangle in 3D with raytracing method?

I am currently working on raytracing. I have problem with view Ray collisions. I cant figure out how to get intersection point of ray and plane, to be more precise, my problem is not figure out intersection point of ray vs plane, problem is to…
-1
votes
2 answers

Producing a JPG via Ray Tracing(Ray Tracing in one Weekend)

I'm following the book Ray Tracing in on Weekend in which the author produces a small Ray Tracer using plain C++ and the result is a PPM image. The author's code Which produces this PPM image. So the author suggests as an exercise to make it so…
RandomOne
  • 3
  • 3
-1
votes
2 answers

Can get a full view of my car model on a Ray-tracer

I currently have an ray-tracer that can read .obj models and then render the objects described on them. Until now, I was basically working with .obj models where the vertices where around the origin, generally closer than 10 of distance, at maximum…
user2752471
  • 444
  • 1
  • 6
  • 14
-1
votes
1 answer

How to convert a picture into different view by the test position using ray tracing

Now I want train a path loss model, and I have a map picture, and I want to convert this map into different views by the test location(x,y) I need a conversion algorithm to produce a lot different map views by the test location.Now I can show a…
Hong Cheng
  • 318
  • 1
  • 4
  • 19
-1
votes
1 answer

(C++) Comparing two pieces of code, one works and one doesn't, can't figure out the difference

I am currently writing a ray tracer. I have to write a function called ClosestIntersection that checks if a ray intersects with a triangle and it should also return (update to be exact) some information about the closest intersection. My code: bool…
Schytheron
  • 715
  • 8
  • 28
-1
votes
1 answer

g++: CreateProcess: No such file or directory. Can't find solution

Edit: whoops. Forgot to put the correct link while formatting I'm following this tutorial, but I have gotten an error I can't fixed (I've looked at my code and then back at his for around 25 minutes. I'm sure it's not a typo…
Ducktor
  • 337
  • 1
  • 9
  • 27
-1
votes
1 answer

How can i handle a camera direction parallel to the y-axis my raytracer

I'm working on my raytracer and it seems I can't manage to handle the case where the direction vector of my camera is parallel to the vector (0,1,0). I think it is linked to my way to compute the vector up and right for camera but I can't manage to…
-1
votes
2 answers

Simple Progressive Rendering Window for a Path Tracer

Hope everyone is doing great.Been pondering on this for a while,out of curiosity more than anything.Been using Maya with Arnold for a while now.Just for hobby stuff,mostly simple renders to compare with my path tracer.I realized their Renderer has…
-1
votes
1 answer

Lighting in my ray tracer is working oddly

This is a ray tracer code I'm working on. When I tested it out, everything seemed to be working fine until I started changing the camera(view point) position. Here are some of the results: campos(-60, 100, -30), lightPos(-70, 100, -30) The light on…
Jason J.Y. Kim
  • 183
  • 2
  • 12
-1
votes
1 answer

Compute camera rotation in raytracer

I'm currently coding my own raytracer for school and i'm running in a bit of a problem while setting up my camera. I know where my camera is (cX, cY, cZ) and i know where it is looking at (lX, lY, lZ) I need to convert those data in : where my…
-1
votes
1 answer

Unity3D random vector3 in local space

I have to randomize vector3 between -variable and variable in X and Y axis. So Z axis is forward and I need find random vector3 in a circle around that vector, but that all in local space. Creating vector3 and adding it to local space is a bad…
Konrad
  • 21,590
  • 4
  • 28
  • 64
-1
votes
2 answers

Basic idea of a distributed ray tracer

what I am trying to do is improving my actual Ray Tracer to create a Distributed Ray Tracer. I have been wandering on internet and all I could found about its implementation was just short stuff like: -Replace single ray with distribution of…
Tarta
  • 1,729
  • 1
  • 29
  • 63
-1
votes
3 answers

Draw debug ray in perspective mode

I've had success casting and drawing debug rays with an Orthographic camera, but I change this to Perspective and none of my rays seem to work anymore (in the scene view, my debug ray is not moving with my mouse). This was my code for Orthographic,…
user3822370
  • 641
  • 7
  • 20
-1
votes
1 answer

Kinds of ray tracing - differences

Can someone explain differences between following kinds of ray tracing: - backward RT - forward RT - recursive RT I'm wondering which one is the best for which situation. I'm intrested in the adventages and disatventages of this, not definitions.…
user3565261
  • 344
  • 1
  • 6
  • 19
1 2 3
69
70