3D Surface Plot

edited March 2016 in How To...

How do I create a 3D surface plot like this one? http://www.agocg.ac.uk/reports/graphics/34/appii97/image21.gif



  • Start by posting the code you have so far, formatted properly (HINT Select code and press Ctrl+o), You will probably need code that uses noise() to make both a 2D array of Y values, and an image to use as the texture for the surface. ColorMode(HSB) is your friend too. Then it is a simple matter of having a 3D sketch, drawing the axis, and the surface in 3D. You'll need a couple of for loops to iterate over your array.

    It's quite a bit of work, and not something we can just demo for you quickly. You will actually have to develop this software (hence why people are called SOFTWARE DEVELOPERS!) in steps, gradually, over time, making sure things work along the way.

    Here's some starting code!

    PImage img;
    float[][] values;
    void setup(){
    void draw(){
  • yeah, start by drawing the 3 grids, that's hard enough...

    the floor and the 2 walls


Sign In or Register to comment.