I have 2 points in space. One is the point I’m at, which makes the other the direction I’m looking at. It might not be the best way but for me to solve this i imagine a line that runs through these points. this line will, intersect with an object in my 3d scene at some point. I would like to know the color of the spot that it runs into the object at.
Maybe imagine it as a single pixel camera?
Sorry, I really am trying to explain this as best as i can.
Note that the ray won’t hit verts and edges, only faces. Use the object and location of the ray_cast result and calculate the color at that point (UV?).
Thanks CoDEmanX! I looked at ray_cast but only know that I get the object. I’m wondering how I would go about “calculate the color at that point” like you mention. Would I be able to take into account the rest of the scene (lights and shadows) for this point?