OBJ Export with nervoussystem on Android with version 3.2.1 of Processing?

edited August 2016 in Android Mode

Hi guys. I'm new to this forum but i know processing since version 2. Now i started learn it and got a big problem with my code for android. Here's my code:

import nervoussystem.obj.*;
boolean record = false;

void setup() {
  size(400, 400,P3D);
}

void draw() {
  if (record) {
    beginRecord("nervoussystem.obj.OBJExport", "filename.obj");
  }  
  beginShape();
  vertex(-100, -100, -100);
  vertex( 100, -100, -100);
  vertex(   0,    0,  100);

  vertex( 100, -100, -100);
  vertex( 100,  100, -100);
  vertex(   0,    0,  100);

  vertex( 100, 100, -100);
  vertex(-100, 100, -100);
  vertex(   0,   0,  100);

  vertex(-100,  100, -100);
  vertex(-100, -100, -100);
  vertex(   0,    0,  100);

  if (keyPressed) 
  {
    if (key == 'b' || key == 'B')
    {
      vertex (-200, 200, -100);
    }
  }

  endShape();
  if (record) {
    endRecord();
    record = false;
  }
}

void mousePressed() {
  record = true;
}

I've got errors with the functions: beginRecord() and endRecord(). Processing says that the functions aren't exist, but on the java mode it works well. This library means much to me for the beginning, so, are there any solutions to solve this problem? Or do i have to write my own library? Thanks in advance ;) Greetings Argandos

Answers

  • maybe you should try adding the .jar file of nervoussystem to the sketch via Sketch>Add File

Sign In or Register to comment.