Plot 3D line object with alpha gradient
Mostra commenti meno recenti
Dear all,
I have a 3D point set which I would like to plot as connected line segments. In addition, I would like the points (lines) furthest away (from the point of perspective) to appear more distant by having an alpha gradient, i.e points closer to the viewer should have higher alpha values than those further away (like looking in a fog).
I tried using
mfig=patch(p(:,1),p(:,2),p(:,3));
set(mfig,'facealpha',0);
set(mfig,'edgealpha',...
and then play with the different alphamappings but unfortunately I don't get it to work.
Does anyone know how to do this (if possible)?
Thanks!
Cheers, Filip
Risposta accettata
Più risposte (1)
Filip Persson
il 8 Feb 2012
Categorie
Scopri di più su Logical in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!