Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7129243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T11:13:20+00:00 2026-05-28T11:13:20+00:00

My requirement is to create a 3d surface plot(should also display the x y

  • 0

My requirement is to create a 3d surface plot(should also display the x y z axis) from a list of data points (x y z) values.The 3d visualization should be done on ANDROID.

My Inputs : Currently planning on using open gl 1.0 and java. I m also considering Adore3d , min3d and rgl package which uses open gl 1.0. Good at java ,but a novice at 3d programming.
Time Frame : 2 months

I would like to know the best way to go about it? Is opengl 1.0 good for 3d surface plotting?Any other packages/libraries that can be used with Android?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T11:13:21+00:00Added an answer on May 28, 2026 at 11:13 am

    Well, you can plot the surface using OpenGL 1.0 or OpenGL 2.0. All you need to do is to draw the axes as lines and draw the surface as triangles. If you have your heightfield data, you would do:

    float[][] surface;
    int width, height; // 2D surface data and it's dimensions
    
    GL.glBegin(GL.GL_LINES);
    GL.glVertex3f(0, 0, 0); // line starting at 0, 0, 0
    GL.glVertex3f(width, 0, 0); // line ending at width, 0, 0
    GL.glVertex3f(0, 0, 0); // line starting at 0, 0, 0
    GL.glVertex3f(0, 0, height); // line ending at 0, 0, height
    GL.glVertex3f(0, 0, 0); // line starting at 0, 0, 0
    GL.glVertex3f(0, 50, 0); // line ending at 0, 50, 0 (50 is maximal value in surface[])
    GL.glEnd();
    // display the axes
    
    GL.glBegin(GL.GL_TRIANGLES);
    for(int x = 1; x < width; ++ x) {
        for(int y = 1; y < height; ++ y) {
            float a = surface[x - 1][y - 1];
            float b = surface[x][y - 1];
            float c = surface[x][y];
            float d = surface[x - 1][y];
            // get four points on the surface (they form a quad)
    
            GL.glVertex3f(x - 1, a, y - 1);
            GL.glVertex3f(x, b, y - 1);
            GL.glVertex3f(x, c, y);
            // draw triangle abc
    
            GL.glVertex3f(x - 1, a, y - 1);
            GL.glVertex3f(x, c, y);
            GL.glVertex3f(x - 1, d, y);
            // draw triangle acd
        }
    }
    GL.glEnd();
    // display the data
    

    This draws simple axes and heightfield, all in white color. It should be pretty straight forward to extend it from here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We've a requirement to create a web application, where data isretrieved from the FTP
I have a requirement to create an application to upload data into database from
If I have a requirement to create a data structure that has the following
I am new to MySQL coming from Oracle. I have a requirement to create
My requirement is to create an Enum based on values present in a table
I have a requirement to take client side XAML (from Silverlight) and create a
I have a requirement to create a dynamic table from an xml file similar
HI, I have a requirement to create instance for list object at runtime using
In my app I have a requirement to create a video from the screen
I have a requirement to create a simple database in Access to collect some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.