Results 1 to 2 of 2

Thread: I want to plot 2*10^6 dots how to organise?

  1. #1

    I want to plot 2*10^6 dots how to organise?

    I have a such a structure
    class CStone{
    float x, y, z;
    int color;
    float mass;
    }
    I have a data file with 2000000 particles.
    I want to plot this particles and rotate, zoom in 3D space. How to do that via OpenGL?Is there some fast way to do?
    Please help me.
    Thank You.
    Arman.

  2. #2
    Member Contributor
    Join Date
    Sep 2003
    Location
    Jersey, Channel Islands
    Posts
    66

    Re: I want to plot 2*10^6 dots how to organise?

    It sounds like you need to do some serious stuff for space partitioning. However, ever before you get there, you need to be extra careful with the data structures you're using, because for this size of model, even minor problems can cause horrible slow downs.

    Assuming you have done everything, and you're ready to consider drawing, how do you thing 2 million particles will look like on screen?

    Possibly, something like this: http://astronomy.swin.edu.au/~pbourk.../universe.html

    You can probably get ideas for visualizing your data by looking at simulations in astrophysics/astronomy, like the one above.

    The answer to your question depends on the requirements. As mentioned above, some sort of major space partitioning is in order.

    mad

Similar Threads

  1. green dots and crashes
    By in forum OpenGL: User Software
    Replies: 3
    Last Post: 05-04-2004, 11:42 AM
  2. 'Still unable to open 'dots.def'
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 02-26-2004, 07:03 PM
  3. Unable to open 'dots.def'
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 02-26-2004, 04:58 PM
  4. moving random dots
    By shosking in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 09-23-2003, 04:30 PM
  5. Glowing dots
    By ucaboys in forum OpenGL: macOS
    Replies: 0
    Last Post: 03-14-2003, 08:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean