A small script for creating a normal map of a sphere using ImageJ.
First step, how to create a flat white circle
let imp = IJ.createImage("disk", "8-bit black", 256, 256, 1); IJ.run(imp, "Macro...", " code=[if (d < 128) {v = 255;}]");
No comments:
Post a Comment