Export Obj - get wrong file
in
Contributed Library Questions
•
1 year ago
Hey!
At the Moment i try to export .obj files from processing.
I use the nervous obj export library (
Nervous Obj Export ), but its pretty weird,
every time i want to export for example, 100 spheres,
i get a large .obj file in my folder, but when i import the obj file in a 3d program, theres only 1 sphere saved.
Processing also shows this error
" isRecording(), or this particular variation of it, is not available with this renderer. "
( but i've read thats just a bug in Processing, that has not any effect to the functionality of the sketch ? )
I also tried the muehlseife library to export a obj file, and it worked fine, but i think theres no opportunity to export objs for every frame ? I found this example (
Create Obj with Muehlseife ), but i don't know, how he modified the library to get it work.
- import nervoussystem.obj.*;
- boolean record;
- void setup() {
- size(800,600,P3D);
- }
- void draw () {
- if (record) {
- beginRecord("nervoussystem.obj.OBJExport", "filename###.obj");
- }
- for ( int i=0 ; i <= 100 ; i++ ) {
- translate(random(300),random(300),random(300));
- fill(0,255,0);
- sphere(2);
- }
- if (record) {
- endRecord();
- record = false;
- }
- }
- void mousePressed() {
- record = true;
- }
I hope somebody can help me with my problem.
Thanks in advance!
1