masking the backface of a mesh?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  11 November 2009
masking the backface of a mesh?

Hi

So i want to mask out stuff that appears behind the cameraview. im doing cameraprojections on a mountain from 8 different angles, and i have images etc from those angles. Is is possible to make the projection black on the backside of the mountain? im doing batchbake on the projections so i want to stitch the stuff together - would be ALOT easier if the unprojected faces are blacked out

tried flipped normal with samplerinfo but that doesnt work since the normal is correct.. dont think the facingratio works either, i think the output of that one is absolute'd

thanks

Last edited by lymth : 11 November 2009 at 01:54 PM. Reason: typo
 
  11 November 2009
solved

ok i solved this. how is how i did it:

parent directional light to my image projection camera
use surface luminance out -> vCoord @ ramp

this ramp i have 1 black color and the other color is my projected texture. I use very little/no interpolation on this ramp. had to do manual tweaking, dont know what value to use here exactly but i think it should be the same for all (?)

i hook it up to the incadenscence of a lambert shader which is all black in color. Then i get a texture without the lambert shading =). maybe can use surfaceshader aswell maybe, didnt try this

ok, then i use batch bake selecting my projection camera there..


cheers
 
  11 November 2009
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 03:01 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.