Gadget add-on module: 3D viewer

From: Carsten Frigaard <carsten_frigaard_at_hotmail.com>
Date: Tue, 10 Jul 2007 10:45:24 +0200

Dear *,

I've placed a very small C++/OpenGL gadget snapshot viewer on the site:

   http://frigaard.homelinux.org/pub/gadget_addon_gview-0.1.tgz

The projects compiles and runs under Linux and gcc. (Linux version
2.6.17(Mandriva), gcc version 4.1.2), and is intended as a small
user-interactive viewer, that easily can be extended to display any speacial
features of a gadget simulation, say smoothing lengths.

Later I will release C++ gadget-snapshot analysis tools for calculating the
gridded density, finding the power spectrum, finding the twopoint
correlation function, and extracting the mass variance in spheres. These
tools may already exist in form of Matlab, C or IDL sources, but I have
found none of them in a public, robust and well documented form.

Regards
Carsten F.

**************************************
Extracted from gview man page:
**************************************

Cosmo-modules(1)
Cosmo-modules(1)

NAME
      gview - displays a 3D view of a series of gadget snapshot files.

SYNOPSIS
      gview [inputfile]

DESCRIPTION
      gview displays a 3D view of a single snapshot file or a series of
snap&#8208;
      shot files. The snapshot series is recognized via the filebasename
      plus the suffix of '000', '001', etc.

      The view is rotatable, translatable and zoomable using the mouse
      and keyboard a user interactive input.

      gview uses the OpenGL rendering library.

STATE
      The state of gview is stored in a file called ' gview.ini'. If no
file
      arguments are given, gview loads the file found in this file. The
      format of the file is

      gview_settings:
        axis 1
        drawbbox 1
        smoothlens 0
        migrateparticles 1
        drawpoints 1
        colorpoints 0
        windowx 900
        windowy 700
        windowox 20
        windowoy 20
        translatex 0
        translatey 0
        rotx 42
        roty -13
        zoom 0.0923908
        timer 0
        snapshot test-snapshot-010
        subsample 1
        subsnap 0.5
      end

      but the file will be re-created using default values if erased.

OPTIONS
      <inputfile> Gadget2 snapshotfile in format 1 for the 3D view.

KEYBOARD
      a translate left

      d translate right

      s translate down

      a translate up

      z zoom in

      x zoom out

      n load next snapshot

      p load previous snapshot

      q quits program

      r resets view

      t autoplay, rotate and zoom animation (start/stops)

      u subsample particles (for big files)

      U re-subsample particles (for smaller files)

      1 enable/disable axis

      2 enable/disable bounding box

      3 enable/disable drawing of points

      4 enable/disable drawing of smoothing lengths (not available
in
              public version yet)

      5 enable/disable animate particle migration (snapshotfiles
must
              be sorted on particles id)

      6 enable/disable particle colors

EXAMPLE
      View test file:

           gview test-snapshot-021

      Review same file:

           gview

BUGS
      Framehandling not correct under Linux with Beryl window manager.
      Frame not drawn at all, but works correctly otherwise. The horizontal
sync
      in swapping of buffers does also not work under Linux/Beryl, output
error:

      : libGL warning: 3D driver claims to
         not support visual 0x5b

      : do_wait: drmWaitVBlank returned -1,
        IRQs don't seem to be working correctly.
        Try running with LIBGL_THROTTLE_REFRESH
       and LIBL_SYNC_REFRESH unset.

SEE ALSO
      ghead(1), gadget2(1)

COPYRIGHT
      (c) 2007 Carsten Frigaard. Permission to use, copy, modify, and
distrib&#8208;
      ute this software and its documentation for any purpose and without
fee
      is hereby granted, provided that the above copyright notice appear
in
      all copies and that both that copyright notice and this permission
      notice appear in supporting documentation.

                                10 July 2007
Cosmo-modules(1)

_________________________________________________________________
Download din yndlingsmusik på MSN Music: http://www.msn.dk/music det er
nemt og billigt
Received on 2007-07-10 10:45:35

This archive was generated by hypermail 2.3.0 : 2023-01-10 10:01:30 CET