Jump to content
  • Advertisement
Sign in to follow this  
ControlDenied

Visible-to-camera points of a 3d model

This topic is 5230 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello guys, I have a 3d object in terms of points and triangles and a camera. I want to get the points that are visible to the camera. I had an idea which is: I take every point of the model one by one and, together with the position of the camera, construct a line. Then I check this line with every triangle of the model. If there is intersection with at least one triangle, then the point is not visible to the camera, else it lies on the visible-to-camera surface of the model. I think that it is right, does anybody has any objection? Is there any other better way? I think that the above solution will be slow. I am sure that this problem is already solved in game programming so there may be optimized solutions. I heard something about z-buffering or ray-tracing but I don't know what they are exactly about. Thank you for any suggestions

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!