I am new to 3d programming. I want to know if below is technically possible and what is the solution ?
Given a 2d image that is rendered from a 3d model, as far as I understand each pixel in the 2d image maps to a point (x,y,z) in 3d space in the 3d model from which the image was rendered. How do I find such mapping for all or any given pixel in the image? Is there a graphic rendering library that has the API ( prefer python or java) to generate this mapping file either during rendering process or some other way ?
Given a 2d image that is rendered from a 3d model, as far as I understand each pixel in the 2d image maps to a point (x,y,z) in 3d space in the 3d model from which the image was rendered. How do I find such mapping for all or any given pixel in the image? Is there a graphic rendering library that has the API ( prefer python or java) to generate this mapping file either during rendering process or some other way ?