Skip to content

P3D not working? #269

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
skpai3 opened this issue May 6, 2025 · 2 comments
Open

P3D not working? #269

skpai3 opened this issue May 6, 2025 · 2 comments

Comments

@skpai3
Copy link

skpai3 commented May 6, 2025

Does Processing.R still work with P3D? I tried something simple like this and got no graphic window:

settings <- function() {
  size(200, 200, P3D)
}

setup <- function() {
}

draw <- function() {
  background(0)
}

I also imported peasycam to try the code below from the tutorial Processing Libraries: importLibrary().
I get error class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')

settings <- function() {
  importLibrary("peasycam")
  size(200, 200, P3D)
}

setup <- function() {
  cam = PeasyCam$new(processing, 100)
  cam$setMinimumDistance(50)
  cam$setMaximumDistance(500)
}

draw <- function() {
  rotateX(-.5)
  rotateY(-.5)
  background(0)
  fill(255, 0, 0)
  box(30)
  pushMatrix()
  translate(0, 0, 20)
  fill(0, 0, 255)
  box(5)
  popMatrix()
}
@nasaares
Copy link

nasaares commented May 6, 2025 via email

@gaocegege
Copy link
Member

We do not implement the P3D with this extension. Sorry for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants