Results 1 to 6 of 6

Thread: Good 3D data Visualization Library

Hybrid View

  1. #1
    Join Date
    Jan 2008
    Beans
    57
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Good 3D data Visualization Library

    Hi there, I am a bit of a noob with all the terminology around this subject so I am just going to spell out exactly what I am trying to do and any advice or tips are very welcome.

    The Plan:
    I have created some software for simulating the flight path of hobby rockets which is being released soon as a tool box for Octave: http://cambridgerocket.sourceforge.net/

    But now I want to turn it into a stand-alone program. So I have written the core simulation part in C++ and it works great but it just produces lots of numbers and I need to visualize them.

    So I want my program to output 2D and 3D scatter and line plots of flight paths after a simulation. So I guess I need a library for c++ or another language is fine too (e.g. Java), but it must be open source.

    Help please!:
    I am quite new to all this and web searches are just bamboozling me with terms like OpenGL VTK etc none of which I fully understand. If you have any tips for good libraries or resources that can help me learn more please let me know! Thanks.

    TN.

  2. #2
    Join Date
    Aug 2008
    Location
    Bengaluru
    Beans
    157
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Good 3D data Visualization Library

    Check out GNUPlot.

    Excerpt :
    Gnuplot is a portable command-line driven interactive data and function plotting utility for UNIX, IBM OS/2, MS Windows, DOS, Macintosh, VMS, Atari and many other platforms. The software is copyrighted but freely distributed (i.e., you don't have to pay for it). It was originally intended as to allow scientists and students to visualize mathematical functions and data. It does this job pretty well, but has grown to support many non-interactive uses, including web scripting and integration as a plotting engine for third-party applications like Octave. Gnuplot has been supported and under development since 1986.

    Gnuplot supports many types of plots in either 2D and 3D. It can draw using lines, points, boxes, contours, vector fields, surfaces, and various associated text. It also supports various specialized plot types.
    Debugging tip:
    When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
    --- Sherlock Holmes.

  3. #3
    Join Date
    Jun 2008
    Beans
    287

    Re: Good 3D data Visualization Library

    Gnuplot is a really good idea. In case you want another, a really nice option in the pngwriter libraries. It can be installed from synaptic (libpng12-0) and (libpng12-dev).

    You can find full details on the package at
    http://pngwriter.sourceforge.net/
    which details how to do everything you could want.


    For an simple example program take the following.

    Code:
    #include "pngwriter.h"
    #include <iostream>
    int main()
    {
       int i;
    
       pngwriter png(400,300,0.999,"test.png");
       /*Make a 400,300 white window called test*/
    
       for(i = 1; i < 900;i++)
         {
            png.plot(i,150+100*sin((double)i*45/900.0), 1.0, 0.0, 0.0);
            /*The above plots a red sin graph*/
         }
       png.close();
    
       system("eog test.png");/*If you want to show the file*/
       system("rm test.png");/*If you want the remove the file after*/
    
       return 0;
    }
    Once you installed pngwriter, compile the above, remembering to link to the pngwriter library (check the link above if stuck how to do this) and bob's your uncle.

  4. #4
    Join Date
    Aug 2008
    Location
    Brunei & Australia
    Beans
    24
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Good 3D data Visualization Library

    You know what would be cool...

    Use NVIZ and draw your trajectories in 3D against satellite imagery back drops and other 3D features.

  5. #5
    Join Date
    Dec 2006
    Location
    1 AU from sun
    Beans
    80
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Good 3D data Visualization Library

    I have good experiences with piping C++ sim data to gnuplot worked for me without any problem
    mostly harmless
    8)
    GS d- s+: a-- C++ UL P L++ E--- W++ N o K w+ O- M- V- PS- PE- Y+ PGP t+ 5++ X++ R+ tv++ b++++ DI- D++G e+++ h-- r-- y-

  6. #6
    Join Date
    Dec 2005
    Beans
    Hidden!

    Exclamation Re: Good 3D data Visualization Library

    Quote Originally Posted by slaanco View Post
    I have good experiences with piping C++ sim data to gnuplot worked for me without any problem
    Windows doesn't have the notion of pipes. Your solution is not portable.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •