Join or
3d forums home Resources for 3d artists


3D rendering of only visible faces




3d Forum -> 3D Rendering Previous topic | Next topic
zeeshanzia84 Posted: February 23, 2009   Post subject: 3D rendering of only visible faces
3D Graphics Starter


Joined: 23 Feb 2009
Posts: 3

Back to top
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 Posted: February 23, 2009   Post subject:
Site Admin


Joined: 25 Jul 2005
Posts: 732

Back to top
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 Posted: February 23, 2009   Post subject:
3D Graphics Starter


Joined: 23 Feb 2009
Posts: 3

Back to top
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 Posted: June 12, 2009   Post subject:
Site Admin


Joined: 25 Jul 2005
Posts: 732

Back to top
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 exactly as you see it. The code is case sensitive and zero has a diagonal line through it.
 
submit to reddit Delicious Delicious Stumble It
3d artists | 3d jobs | Free Textures | Photo References | 3d Gallery | 3d Tutorials | Post a Job offer | FAQ


Powered by phpBB | hosted by Royal Web Hosting | CG archive | Privacy policy
Best viewed with latest versions of Firefox, Opera, Chrome or Safari browsers.