preload ".obj" file with processing.js ?
in
Processing with Other Languages
•
5 months ago
Example:
- /* @pjs preload="box.obj"; */
- PShape s;
- void setup() {
- size(700, 700, P3D);
- s = loadShape("box.obj");
- }
- void draw() {
- background(0);
- lights();
- shape(s, 0, 0);
- }
I get this error though:
Resource interpreted as Image but transferred with MIME type text/plain: http://127.0.0.1:62818/box.obj.
Attempting
- s = loadShape("box.obj");
1