Join or
Log in
3d forums home Resources for 3d artists


3D rendering of only visible faces



3d Forum -> 3D Rendering
Previous topic | Next topic
zeeshanzia84
3d Graphics Peasant
Joined: 23 Feb 2009
Posts: 3
Posted: February 23, 2009
Post subject: 3D rendering of only visible faces
Reply
Hi,

I am actually doing Computer Vision research and have no experience in 3D rendering.

I have a 3D model and I know that the camera is looking at the model from a particular direction, now I want to render only those faces that will be visible from that camera. Can someone please point me to some algorithms for calculating which faces would be visible and which won't be visible.

Thanks a lot in advance.

3d artist gallery Andyba
Site Admin
Joined: 25 Jul 2005
Posts: 1038
Posted: February 23, 2009
Post subject:
Reply
One idea is to shoot a ray from the camera and stop it when it intersects the closest polygon to the camera.
In dependence of quality you can shoot different number of rays for every pixel.

Another idea is to use the polygon normals - if the angle between direction of camera and the polygon normal direction is less than 90 degrees you can remove this polygon from rendering.


_________________
Andyba, 3d artist
skills: 3d modeling, texturing, rendering, 3d character animation, compositing
3d software experience: 3ds max, Maya, Softimage XSI, Deep Paint 3d, Body Paint 3D, Wings 3D, Z Brush
2d software experience: Adobe Photoshop, Adobe After effects, Macromedia Flash, Freehand

zeeshanzia84
3d Graphics Peasant
Joined: 23 Feb 2009
Posts: 3
Posted: February 23, 2009
Post subject:
Reply
Thanks a lot.

Do I have to read the values of surface normals from the 3D model file or is there someway to find it directly.

I mean, ofcourse I can take a cross-product, but depending upon the ordering of the vertices, I can get two opposite directions. Is there any way to choose the 'right' one?

3d artist gallery Andyba
Site Admin
Joined: 25 Jul 2005
Posts: 1038
Posted: June 12, 2009
Post subject:
Reply
Actually the 3d models usually contain information about polygon surface direction. In 3d modeling packages it is usually possible to change this direction, in 3ds max it is called inverse normals.
_________________
Andyba, 3d artist
skills: 3d modeling, texturing, rendering, 3d character animation, compositing
3d software experience: 3ds max, Maya, Softimage XSI, Deep Paint 3d, Body Paint 3D, Wings 3D, Z Brush
2d software experience: Adobe Photoshop, Adobe After effects, Macromedia Flash, Freehand

Reply to topic    3d Forum -> 3D Rendering Previous topic | Next topic
Username:
Message body:
To Attach an Image to your post write the message then press the Go Advanced button. In the bottom of the advanced reply screen you will see an option to upload an image from your computer.

Confirmation code: Enter the code with CAPITAL LETTERS. There is no zero. Please add the result of 10-2*3= in front of the code.