本文共 432 字,大约阅读时间需要 1 分钟。
代码并不复杂,这里主要是用了 lunar 这个第三方库,具体使用详解,已相应附代码注释
主流程 main.pde
import lunar.*;// 噪声种子LVector offset = new LVector();LVector direction = new LVector(0.01, 0.01, 0.01);// Timer,用于动画int timer = 0;int interval = 180;/// @note 本地网格PShape humanScaleModel;void settings(){ size(800, 800, P3D); smooth(8);}void setup(){ /// @note 加载本地网格 humanScaleModel = loadShape(sketchPath() + "/data/humanScaleModel.obj");}void draw(){ // 以
转载地址:http://swvxf.baihongyu.com/