Search - User list
Full Version: Hi how to automatic invert normal.
Root » Technical Discussion » Hi how to automatic invert normal.
Stalevarov
Hi, how to make automatic invert this normal without selecting by hands, or how to blast it by inverted normal. thx
Herve
if, like it seems to be the case from your screenshot, the majority of your primitives have correct normals, and you want to just correct the "few" inverted ones, then you can simply use a Clean SOP node with the option "orient polygons" checked. Unless you have some really messed up geometrym, it will work.

And after that, if you want to delete the initially inverted normals, then I'd add a primitive wrangle after that. first input from the output of clean node, second input from the output of your node before Clean/initial geometry (as long as both input get the same prims numbers, and order); with this code, for example:

vector normA = prim_normal(0,@primnum,0.5,0.5);
vector normB = prim_normal(1,@primnum,0.5,0.5);

if (normA != normB)
    removeprim(0,@primnum,1);

.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB