ProcessingJoy —— 加载本地 obj 文件和网格动画【JAVA】
发布日期:2021-07-01 05:50:59 浏览次数:3 分类:技术文章

本文共 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(){  // 以

转载地址:https://panda1234lee.blog.csdn.net/article/details/113174822 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:ProcessingJoy —— 流光隧道【JAVA】【GLSL】
下一篇:ProcessingJoy —— 获取附近的若干粒子并高亮【JAVA】

发表评论

最新留言

感谢大佬
[***.8.128.20]2024年05月06日 06时25分52秒