show foregroud transparent (instead of cutting away)

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
max6666north
Posts: 15
Joined: Fri Jun 03, 2011 9:35 am

show foregroud transparent (instead of cutting away)

Post by max6666north »

Hi

is it possible to show parts in foreground transparent instead of cutting them
away with the near option in camerasettings automaticaly?

thangs
max
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Post by Radikalizm »

Not natively, no; you'll have to implement this yourself

You could check every vertex of an object for its distance relative to the near plane, you can then set its vertex alpha accordingly
You should set a distance range in between which you want your vertices to become transparent, you can then do an interpolation between the distance vertex <-> near plane and the distance range to get your desired alpha value
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Post by Mel »

Other way is to make the scene nodes transparent when they pass between the camera and the target. Check the collision methods, it is somewhat easy to do something like that.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Klunk
Posts: 264
Joined: Mon Jan 10, 2011 5:21 pm

Post by Klunk »

this sort of thing could also handled in a shader a bit like a backwards fog but working on vertex alpha.
Post Reply