loadModel(model);
Load a 3D model.
Arguments
model
The 3D modelfunction setup()
createWindow(600, 600, GL3D);
ship = loadModel('path/to/your/ship.obj');
end
function draw()
background('purple');
model(ship);
end
Output
model(obj);
Render a 3D model.
Arguments
obj
The 3D modelfunction setup()
createWindow(600, 600, GL3D);
ship = loadModel('path/to/your/ship.obj');
end
function draw()
background('purple');
model(ship);
end
Output