Help finding a library

edited February 2018 in Library Questions

Hello

I'm trying to get old landscape generator to work.

https://openprocessing.org/sketch/46391#

But it requires a library that I can't seem to find. I understand it's old but if anyone could help I'd be very thankful.

import surface.calculation.*; import surface.*

Answers

  • edited February 2018

    Thanks for the help guys. Koogs that looks promising. Just trying to get it to work now but it doesn't recognise that it's there.

    *Ok, got it all in but now I'm getting a big error.

    java.lang.NullPointerException
        at java.io.DataInputStream.readInt(DataInputStream.java:387)
        at processing.core.PFont.<init>(PFont.java:350)
        at processing.core.PApplet.loadFont(PApplet.java:6245)
        at test_ds.setup(test_ds.java:45)
        at processing.core.PApplet.handleDraw(PApplet.java:2412)
        at processing.opengl.PSurfaceJOGL$DrawListener.display(PSurfaceJOGL.java:859)
        at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:692)
        at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:674)
        at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:443)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1293)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
        at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
        at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
        at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
        at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
        at java.util.TimerThread.mainLoop(Timer.java:555)
        at java.util.TimerThread.run(Timer.java:505)
    

    Any of you wonderful people given it a go?

  • that is a loadFont error. are you loading fonts? do you have the files?

    font = loadFont("Serif-48.vlw");
    

    you can use createFont() instead - https://processing.org/reference/createFont_.html

    just pick a common font and it should work

Sign In or Register to comment.