Re: [OpenDX2-users] OpenDX on Solaris SMP

2006-09-13 Thread David Thompson
Solaris should have automatic SMP capabilities. Have you used the 
Partition module on your data?

David

Hi,

I have a quick question about the SMP capability of OpenDX. If I want to
be able to use multiple threads, I have to compile Opendx with
--enable-smp-linux. Does that literally mean only Linux? What about
other Unixes which have pthread support?

I'm trying to use more than one thread on a 8-way SMP machine with
Solaris. I've started OpenDX with dx -processors 8, but when I start
the computation prstat shows that dxexec doesn't use more than 12% of
the resources (which is approx. 100% / 8).

Could anybody clarify that?

- Chris

-- 
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
 Phone : (406)756-7472
___
OpenDX2-users mailing list
OpenDX2-users@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/opendx2-users


[opendx-dev] User Forums now available as well.

2005-11-30 Thread David Thompson
Since the IBM server has had disk space problems lately and the 
mailing lists have been down, I wanted to let everyone know that I've 
setup a User Forum for OpenDX. These can be accessed directly from 
the OpenDX.org web-site. Also, for those that like the e-mail lists 
better, you can set up the forums to notify you of new topics, etc. 
(I've done it and it works pretty well)--similar to a mailing list.


--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] slab + arbitrary dimension

2005-11-30 Thread David Thompson

You want MapToPlane instead. The plane can be arbitrary.


Hi,

I am wandering if there is a way to have a slab cut on an arbitrary 
direction, not

only planes along the coord axes. Any hint will be appreciated.


Thanks,
Vlad



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] startup weirdness

2005-09-28 Thread David Thompson

Sorry,

But I will not be able to help. No experience with that system.

David


i compiled dx myself.
Open Visualization Data Explorer Executive, version 04.3.2000 (15:19:36, Sep
19 2005)
Open Visualization Data Explorer User Interface, version 04.03.0002 (15:20:04,
Sep 19 2005)
Open Visualization Data Explorer Script, 04.3.2000
I run 2.6.12-gentoo-r6 (gentoo) x86_64
compiled with
gcc (GCC) 3.4.3 20041125
./configure --enable-smp-linux CFLAGS=-march=k8 CXXFLAGS=-march=k8
FFLAGS=-march=k8


On Tuesday 27 September 2005 17:36, David Thompson wrote:

 Need more info. Is this a binary you downloaded or one you built?
 What OS? Which version?

 Dear opendx users,
 
 I got an issue with starting opendx
 first the good news. opendx is running fine when started with dx
 however when i try to open my program with dx -edit or dx -program
 the program hangs i ran with strace to see where thing go wrong and it
  seems to be during startup of the server.
 
 read(6, Starting DX executive\n, 8192) = 22
 write(3, B\0\7\0\336\0\240\2\21\0\240\2\0\0\0\0\230\2\0\0\0\0\1..., 212)
  = 212
 read(3, \34\356\237\t\321\0\240\2\371\0\0\0Vj,\5\0\0\240\2\250..., 32) =
  32 read(3, 0x7f83c440, 32) = -1 EAGAIN (Resource
  temporarily unavailable)
 select(4, [3], NULL, NULL, NULL)= 1 (in [3])
 read(3, \1\1\266\t\0\0\0\0\321\0\240\2\0\0\0\0\0\0\0\0\33\0\0\0..., 32)
  = 32 select(9, [6 8], NULL, NULL, NULL
 
 and that's it  nothing else happens.
 The strange thing is that i can load a .net file stop and start the server
 with no problems when i started with dx - Edit Visual Program.
 
 i deleted my .dx-ad and reinstalled dx and dx-samples as user to exclude
  any permission issues.
 any ideas?
 
 cheers
 Thomas Geenen



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] startup weirdness

2005-09-27 Thread David Thompson
Need more info. Is this a binary you downloaded or one you built? 
What OS? Which version?



Dear opendx users,

I got an issue with starting opendx
first the good news. opendx is running fine when started with dx
however when i try to open my program with dx -edit or dx -program
the program hangs i ran with strace to see where thing go wrong and it seems
to be during startup of the server.

read(6, Starting DX executive\n, 8192) = 22
write(3, B\0\7\0\336\0\240\2\21\0\240\2\0\0\0\0\230\2\0\0\0\0\1..., 212) =
212
read(3, \34\356\237\t\321\0\240\2\371\0\0\0Vj,\5\0\0\240\2\250..., 32) = 32
read(3, 0x7f83c440, 32) = -1 EAGAIN (Resource temporarily
unavailable)
select(4, [3], NULL, NULL, NULL)= 1 (in [3])
read(3, \1\1\266\t\0\0\0\0\321\0\240\2\0\0\0\0\0\0\0\0\33\0\0\0..., 32) = 32
select(9, [6 8], NULL, NULL, NULL   


and that's it  nothing else happens.
The strange thing is that i can load a .net file stop and start the server
with no problems when i started with dx - Edit Visual Program.

i deleted my .dx-ad and reinstalled dx and dx-samples as user to exclude any
permission issues.
any ideas?

cheers
Thomas Geenen



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Java Explorer question

2005-08-29 Thread David Thompson

Joel,

Right now, this is not available. I suppose you could use the Pick 
interface and then construct a URL based on its return -- but then 
how to transmit this information back to the browser is a tough 
question.


If you want to bounce some ideas off me, I'm willing to discuss it with you.

David


I've been experimenting with Java Explorer (with a fair
amount of success) and I'm
wondering if there is any way - by hook or by crook - to
make objects in a scene hypertext links - when the user
clicks on one while in Pick mode, the end result is the
object's URL target is opened in a new browser window.

My gut tells me this is not supported, nor will it
be easy to implement. Obviously, my net has to somehow
communicate the URL to the applet, which must open the
new browser window.

Assuming this is not currently possible, I'm willing to
dig in and try to implement it, if that seems like a
good idea. It would sure be useful for the things I'm
trying to do.

Any advice from the experts?

Thanks in advance,
Joel



--

===
Joel Richardson, Ph.D.   Phone: (207) 288-6435
The Jackson Laboratory   Fax:   (207) 288-6132
600 Main Street  URL:   www.informatics.jax.org
Bar Harbor, Maine 04609
===



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Image Module2

2005-08-28 Thread David Thompson
You're going to have to send us an example network to show this. I 
don't understand what is causing the error or even how to re-produce 
it.


David


If I write directly the path of files in the 'template' of the Format Module
using the line

name_of_directory/file.%02d.dx

the direct-inteation works!!

Somebody Knows why it is happening?? Please


Marcelo Mariano

IEN- Brasil



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] DX Arrays of strings

2005-08-27 Thread David Thompson
You need to create the array and then strcpy(data_array_ptr[index], 
str_value.c_str());


David


Hello,

Hopefully this is a question with a simple answer:

I'd like to have a DX Array of strings (TYPE_STRING).  When I use 
DXGetArrayData(...) to get the array, is the return type char* 
(pointer to an array)?  I'm not finding documentation on this.


My code looks something like:

char* data_array_ptr = (char*)DXGetArrayData(array);
data_array_ptr[index] = str_value.c_str();
// str_value is an object of the C++ STL string class, where the 
c_str() method returns a null-terminated C-style string.


However, C++ errors out during compilation with the following message:

   invalid conversion from `const char*' to `char'

I have also tried char** in place of char*, as that makes more 
sense, given I'm expecting to see an array of arrays.  However, that 
results in a similar compile error too:


   invalid conversion from `const char*' to `char*'

Any ideas?  I must be making an incorrect assumption here about what 
is returned from the DXGetArrayData() function, but I don't see any 
documentation that helps me figure it out.


Thanks,

Matt
--



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] BW/grey

2005-08-23 Thread David Thompson
I'm betting that you are having a problem with the Ribbon's normals. 
Use Tube instead and see if that fixes it.


David


Hi!

I use the color-module to create black lines for Showbox and for
Isosurface-lines. When I try to get thicker lines with the Ribbon-module,
the black gets lost and the lines are grey. How can I avoid that?

Thanks in advance, Bernd.

--
  Bernd Jaeger, Institut fuer Physikalische Chemie, Universitaet Wien,
  Waehringer Strasse 42, A-1090 Vienna, Austria
  Tel.: +43-1-4277-52417, FAX: +43-1-4277-9524
--- mailto:[EMAIL PROTECTED] 



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Dividing a surface into disconnected parts

2005-07-25 Thread David Thompson
The lack of response is due to the lack of an easy answer. The 
problem would be that the isosurface that is returned is a single 
field and thus not easily divided. You could use something like 
include on the positions to try and do this, but its not going to be 
easy.


David


Hello,

I'm new to OpenDX, so please forgive me if what I'm asking is trivial. I have
a 3-d scalar field f(x,y,z), and I managed to import it into OpenDX and have
it calculate an isofurface f(x,y,z)=c using the Isosurface module. For my
input data, this surface consist of several disconnected parts. How can I
plot each part in a separate color? Right now, since by definition the value
of the field is constant for each surface, they are all plotted in the same
color.

Is there an easy way to accomplish this? Any help would be much appreciated.

Thanks,

  Lutz



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Configuring OpenDX on a Mac

2005-07-19 Thread David Thompson

Joel,

You can set the following environment variables to override things:

DXMDF=path2mdf/file.mdf
DXMACROS=path2macrosdirectory
DXARGS=-directory /workingpath

.bashrc is not consulted from an app that is not started from a 
terminal. You can follow the thread on Apple's X11 mailing list for 
more information on environment variables and apps, see 
http://lists.apple.com/archives/x11-users/2004/Dec/msg00085.html


Your best bet would be to place these variables in the 
~/.MacOSX/environment.plist as mentioned here 
http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/Concepts/EnvironmentVars.html


By the way, you will need to logoff and login for environment.plist 
to take effect.


A technote from Apple talks about creating this file 
http://developer.apple.com/qa/qa2001/qa1067.html.


I just tried it out to make sure it works and it does as I state. I 
will make sure to add this to the documentation for the next release. 
It really is a nice feature. If you have the Property List Editor 
from the developer tools, it can help to make sure the syntax is 
correct.


David


Hey DXers,

I am running the Vis Inc. distribution of OpenDX 4.3.2 on a Powerbook
G4 running OSX 10.3.9.

I've got a bunch of macros and runtime loadable modules that I'd
like to have available every time I start dx. Similarly, I'd like
the working directory to be set to a particular location.
The standard mechanism (setting env variables) works fine if I
invoke dx from the command line. But if I launch it via the 
application icon or open a .net file, my settings have no effect. 
The variables

are set in my .bashrc file.

I'm able to make the macros visible by placing them under
${HOME}/Library/Application Support/OpenDX/macros
as described in the distribution notes. But I cannot make
my loadables visible, and the working directory is always /.

Thanks in advance,
Joel


--

===
Joel Richardson, Ph.D.   Phone: (207) 288-6435
The Jackson Laboratory   Fax:   (207) 288-6132
600 Main Street  URL:   www.informatics.jax.org
Bar Harbor, Maine 04609
===



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Configuring OpenDX on a Mac

2005-07-19 Thread David Thompson
I tested the DXARGS specifically because this was the most 
interesting and it worked with no problems (changed my directory to 
my Desktop). Can you check it again? Can you check it on the command 
line and see if it works? I guess, I should also know what you mean 
by it doesn't work (mine made all FileSelectors and Open/Save dialogs 
default to the Desktop folder I set it to.)


Remember you have to log out and log in each time you make a change 
to the environment.plist file (its only read once at log in time.)


Can you set the -host localhost okay via the command line? You could 
also try to set DXHOST=unix which will just assume a localhost but 
not even try to look up the machine name.


David


David,

Thanks - this works as advertised ... mostly!

1. Setting DXMDF, DXMODULES, and DXMACROS in ~/.MacOSX/environment.plist
works just fine.
2. Setting DXARGS to change the working directory does not work - I
still end up at the root dir.
3. Also, I'd like to set host to localhost. (Otherwise ssh complains,
and I have to open a connection manually from VPE.)
If I set DXHOST (or add -host localhost to DXARGS) in
environment.plist, dx fails to launch. I see the launcher
progress bar, but it just goes away, and there's no dx main menu.
I *can* set DX*host in ~/.dx-ad, however.

Thanks,
Joel



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Valid / Invalid Positions

2005-07-11 Thread David Thompson

Emmanuelle,

I looked at your program and determined the 
problem. DX is working as it should. It is a 
problem with the construction of your tube. You 
have a tube that only has 3 points in Z, and the 
bottom point is below your zmin value so it is 
invalidated, thus the bottom half disappears. You 
can easily fix this by making your tube higher 
than the zmin (which you should do), but you 
should also increase the tube's resolution. I'd 
suggest setting Grid's density to at least 20 
since your grid is not evenly distributed.


I hope this helps and if you should need more 
help in the future, we can usually answer these 
kinds of problems very quickly if you purchase a 
single tech support incident from VIS, Inc.


David


Hi,

I've recently post a topic for a problem concerning the visualisation of a
tube in a 3D field, which isn't complete because of invalid positions.

I didn't find the solution of my problem, so I've put a smal version of
the program and the corresponding data on the web.
You can download it at :

http://www.savefile.com/files/5041823

and click on 'Download'

The principle of the programm is to visualize a 3D field on a grid
contained in another file, and to map it on a tube.

If anyone could take some time to look at it, it would really help me!!

Thanks

--
Emmanuelle LAFONT

NUMTECH
6, allée Alan Turing - BP 30242
Parc Technologique de La Pardieu
63175 AUBIERE Cedex
Tel: 04 73 28 75 95
Fax: 04 73 28 75 99
www.numtech.fr



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Valid / Invalid Positions

2005-06-22 Thread David Thompson
Which modules are you running your data through that produces the 
invalid positions?


David


Hi,


I'ld like to understand how and why any valid positions become invalid.
I've searched in the doc, but it's not clear for me.
Is there a way to avoid positions to become invalid?


Thanks!



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


[opendx-users] New functionality for cygwin in CVS.

2005-06-21 Thread David Thompson
I have just recently uploaded some fixes to the cvs repository for 
the following:


Requirements for building loadable OpenDX modules in the Cygwin environment.

Loadable modules on the Windows platform have been possible since 
OpenDX was released. There are many intricate operations that must be 
performed, but those operations have been incorporated into the build 
operation since OpenDX 4.2.


Building OpenDX under the Cygwin environment has not gotten the same 
attention to detail due to the lack of funding or interest. Loadable 
modules have never been tested by any of the major OpenDX players.


VIS, Inc. was approached by a University-based research group to 
provide this functionality for one of their software projects.


After a thorough investigation, here is what we have found and have 
since added the appropriate functionality within the build 
environment to allow for loadable modules within Cygwin/OpenDX.


Loadable modules within Cygwin must be compiled as a Window's .dll. 
There are several things that must be set up within the .dll to allow 
proper interaction between it and the dxexec executable. This assumes 
that the cygwin/gcc environment is being used.


1. The source files for loadable modules must be compiled with the 
-shared flag.


2. The dxexec must be compiled to export all symbols that may be used 
by the loadable module. These include the entire DX library.


3. The linker when linking the dxexec must produce the link table 
that can then be used to link to the loadable module. This gives the 
entry points of all the functions in the DX library (within the 
executable) to the loadable module. This is done with the 
--out-implib link option (done automatically during a build).


3. The entry point must be defined when linking the loadable module 
with the -e link option.


4. To produce the dll, all the source objects for the loadable 
module, and the link table for the dxexec must be linked together.


All of the build processes have been updated to reflect these 
requirements and the Makefile's produced by the module builder have 
been dramatically changed to reflect these requirements.




--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] newbie question about lookup

2005-05-26 Thread David Thompson
Which version of DX are you using? I found a bug in 4.3.2 in the 
Lookup module and it has been fixed in CVS.


David


I'd like some help wrt Lookup.

As a starting point I used GroceryList and almost got to where I
wanted to be. What remains is getting the sizes of the spheres to be
relative to the corresponding entry in 'column2'. Apparently, I
haven't understood Lookup yet. Any hint will be appreciated.

Thanks,

Marko


--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] 3D barchart

2005-05-20 Thread David Thompson
If you can put your data on a connections dependent grid and then 
Rubbersheet, you will get a 3D bar chart.


David


Hi,

I'm trying to generate a 3D barchart. The input is an array of scalar values.
With the barchart-module it's very simple to generate a 2D barchart,
but how can I expand this with a third dimension? Is there a easier way to do
this, than drawing every single bar and put them at the end together?

Best regards,

Marco



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Plotting circles in a plane

2005-05-12 Thread David Thompson

Your Glyph call isn't quite right for what you're trying to achieve. You want

Glyph(data, circle, 1.0, 1.0, 0.0, 0.0);

I think that whill get you what you want.

David


Hello OpenDX-users,

I would like to plot circles with a given position and radius in a plane.
Is that possible?

Up to now, I have tried the following: I have written out a file blobs.dx
with the content

object 1 class array type float rank 1 shape 2 items 2 data follows
0.2 0.3
0.6 0.7
object 3 class array type float rank 0 items 2 data follows
0.5
0.3
attribute dep string positions
object blobs class field
component positions value 1
component data value 3
end

and I used the script commands:

data = Import(blobs.dx);
glyphs = Glyph(data, circle, 1.0, 1.0);
camera = AutoCamera (glyphs);
image = Render(glyphs, camera);
Display(image);

Unfortunately, the output does not really fit my expectations, i.e. the
radii are not correct.  I have also played around with the visual editor,
but also with little success.  What am I doing wrong?  Does anyone know a
script or visual program where such a thing is done?

Thank you for any information,

Nicolas.



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] merge 2d scalar fields

2005-05-10 Thread David Thompson

Create the grid big enough for both meshes and then use Map.

David


Hi,
I have several rectangular 2D scalar fields (intensity vs. 2D coordinate,
regular square grid), all with the same step size (i.e. they live on the same
mesh, but in different areas and only partially overlap). I would now like to
merge them into one field, so that I can e.g. transpose and and then average
them. CollectMultiGrid does not create a single field as output, so doesn't
work. When I try to first regrid the input fields on the same field made by
construct, the areas where no data exist are not zero, but some interpolated
value, and adding the input fields afterwards will add that interpolated
intensity to the other patches. The approach with compute that works e.g.
with merging two scalar fields that live on the same grid to obtain a vector
field does not work, since the grids of the input fields are not the same and
overlap at best partially. Making a large field encompassing the area of the
input fields, filling it with zeroes and then trying to add the individual
fields to it fails since the sizes of the grids do not match.
So I ran out of ideas. Am I missing something obvious?
Thanks for any hints,
Wolfgang
--
Dr. Wolfgang Braun
Paul-Drude-Institut
für Festkörperelektronik
Hausvogteiplatz 5-7
D-10117 BERLIN

phone (downtown office): +49-(0)30-20377-366
phone (BESSY): +49-(0)30-6392-3436
fax (downtown): +49-(0)30-20377-201
fax (BESSY): +49-(0)30-6392-2969
mobile: +49-(0)160-99882210



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] shading problem with cubes

2005-05-05 Thread David Thompson
I'm not quite sure what you are saying, but I think I see what you 
mean. The problem lies with the shading. If you Import- 
ShowBoundary- AutoColor- Shade(faceted)- Image. I think you will 
see your problems disappear.


The smooth shading you see is going to try and phong shade each 
boundary--it appears that their may be a small problem in ordering of 
the nodes (but not positive).


David


Hi,
I have reposted the problem but the answers did not solve the 
problem. I have 4 cubes.


+---++---+
|   |   B|   |
|   A   ++   D   |
|   |   C|   |
+---++---+

The shading of B,C is erroneous. I included this simple exaple in an 
import.dx file. Try 
Import(file=import.dx)-ShowBoundary-AutoColor-Image. See bottom 
and front view


In a mush more complex flow field I have to diel with, looks very agly...



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] shading problem with cubes

2005-05-05 Thread David Thompson
Looking at this further, it appears that cubes may have a smooth 
shading problem due to the way the normals are calculated. If you 
AutoGlyph the normals of a smooth shaded object, I'm not sure they 
are right; however, this is a moot point since what you want is 
faceted shading on these cubes anyway (normals are connection based 
not positions based).


David


Hi,
I have reposted the problem but the answers did not solve the 
problem. I have 4 cubes.


+---++---+
|   |   B|   |
|   A   ++   D   |
|   |   C|   |
+---++---+

The shading of B,C is erroneous. I included this simple exaple in an 
import.dx file. Try 
Import(file=import.dx)-ShowBoundary-AutoColor-Image. See bottom 
and front view


In a mush more complex flow field I have to diel with, looks very agly...



 object nodes class array type float rank 1 shape 3 items 20 data follows
0 0 0
1 0 0
2 0 0
3 0 0
0 1 0
1 1 0
2 1 0
3 1 0
0 0 1
1 0 1
2 0 1
3 0 1
0 1 1
1 1 1
2 1 1
3 1 1
1 0 0.5
2 0 0.5
1 1 0.5
2 1 0.5

 object  cubes class array type int rank 1 shape 8 items  4 data follows
 0 1 4 5  8 9 12 13
 16 17 18 19 9 10 13 14
 1 2 5 6 16 17 18 19
 2 3 6 7 10 11 14 15
 attribute element type string cubes
 attribute ref string positions

 object data class array type float rank 0 items  4 data follows
 0
 1
 1
 2
 attribute dep string connections


 object field class field
 component positions value nodes
 component connections value cubes
 component data value data



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Statistics

2005-05-03 Thread David Thompson

Include - Statistics.


Hi,
I want to use the 'Statistics' module to get mean and stddev of the 
data in my field. My problem is, that I do not want all data 
included, but only the values 0. How can I do that?


Thanks in advance!

Christoph



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] unable to connect to dxexec

2005-04-13 Thread David Thompson

From the faq http://www.opendx.org/faq.html#cantconnect

The user interface and the server (exec) communicate over sockets. 
Netwoking must work in order for this process to work completely. 
There are several reasons why this communictaion may fail. One may be 
that your hostname does not resolve properly. You can test this by 
using the ping, and hostname commands to determine if you can ping 
your own machine or you can try setting the DXHOST environment 
variable to unix to default to the local machine. A second reason 
may be that you have a firewall running on your system that refuses 
the socket communication over the IP ports that DX uses. Try shutting 
off your firewall to see if this fixes the problem.


Other tests to try: Does dx -execonly work?
--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] unable to connect to dxexec

2005-04-13 Thread David Thompson

One of the tests you can always do is

dx -uionly 
dx -execonly

Then go into the UI and try to connect to an already running server. 
See if it allows you to get past it. If not, then I'd almost bet that 
there is some kind of network problem on the machine (sockets are 
somehow getting blocked).


David

--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] vtk format in opendx

2005-04-05 Thread David Thompson
Does VTK have a full description of their data format? If so, it 
wouldn't take much to write and importer for it.


David


Hi,

is there any way to import vtk formated data files in
opendx. The structure of these data files look like:


?xml version=1.0?
VTKFile type=RectilinearGrid format=ascii
  RectilinearGrid WholeExtent=1 82 1 50 1 66
Piece Extent=1 82 1 50 1 66
  Coordinates
DataArray NumberOfComponents=1 format = ascii 
type=Float32 Name=x-coords

  0.
  0.10001
  0.30012
  0.5
  ...
  ...
/DataArray
DataArray NumberOfComponents=1 format = ascii 
type=Float32 Name=y-coords

  0.
  0.0116908271
  0.0362415649
  0.0632473826
  ...
  ...
/DataArray
DataArray NumberOfComponents=1 format = ascii 
type=Float32 Name=z-coords

  0.00E+00
  1.00E-01
  3.00E-01
  5.00E-01
  ...
  ...
/DataArray
  /Coordinates
  PointData Vectors=VelocityPhase1
DataArray NumberOfComponents=3 format = ascii 
type=Float32 Name=VelocityPhase1

  1.000189E-10   1.000189E-10   1.000189E-10
  1.000189E-10   1.000189E-10   1.000189E-10
  1.000189E-10   1.000189E-10   1.000189E-10
  ...
  ...
/DataArray
  /PointData
/Piece
  /RectilinearGrid
/VTKFile

I mean, could this be done with a sort of 'general' file or
does there even exist some kind of module to import these kind of
data formats? Would be realy nice!

Best Greetings!
Fabian



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Linewidth

2005-03-31 Thread David Thompson
To get your ShowBox on top of the Isosurfaces (you're probably seeing 
a blending of the Box and the Isosurface), you need to add some fuzz 
to it. Search for fuzz in the documentation.


David


Hi!

I use the Isosurface module to generate lines within my 2D-data. How can
I control the linewidth?
And one more question: I use Showbox to get a black frame around my
figures, but with colored lines for the isosurfaces, there are colored
dots in the frame, where an Isosurface hits the frame. How can I make sure
that the frame is black?

Thanks in advance, Bernd.

--
  Bernd Jaeger, Institut fuer Physikalische Chemie, Universitaet Wien,
  Waehringer Strasse 42, A-1090 Vienna, Austria
  Tel.: +43-1-4277-52417, FAX: +43-1-4277-9524
--- mailto:[EMAIL PROTECTED] 



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] WriteImage and Mpeg

2005-03-31 Thread David Thompson
There is no way to create an MPEG directly from DX. We've always used 
ImageMagick or other post-processing tools to create them from stills 
or miffs.


David


I have ImageMagick and mpegvidcodec installed, and would like to create
a mpeg movie of the data sequences without the need to create a lot of
stills first.  I have found that transforming them into jpeg or such,
then creating a movie out of those results in poor picture quality. Is
there a way to say the output directly as a movie file?  I tried, but it
does not seem to append the image but rewrite the image.  Therefore,
this results in a single frame movie file.  I believe that this is what
the writeimage matrix in the reference guide is stating, but I would
like to double check with someone more in the know.

I can save the output as a miff series, but when I try to transform the
miff to mpeg using convert, I get a vbv_delay overflow error.  If I
can't generate a mpeg directly from dx (which would be ideal), then I
talk to the ImageMagick people about what a vbv_delay overflow error
is...

Thanks for the help, 


--
Brent Bailey [EMAIL PROTECTED]



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] multi-component: how to flush memory after each component

2005-03-31 Thread David Thompson
With the current Import, there is no way to do this. You would have 
to write your own custom Import. You could re-organize your data to 
be a series of fields at which point you could then select and only 
Import one at a time--but then you have the issue of how do you get 
the list of members to select from without Importing the entire data 
set.


David


Hi,

I have a .dx file which contains several fields. There is a list of 
the name of these components in the file. So I use extract to read 
in this list, which is then passwd to a Selector to pick one out for 
visualization:


FileSelector - Import - Extract (list) - Selector (showing the 
list) - Mark (one component) - IsoSurface - autoColor - Img


I noticed that when I fired up openDX it will read in ALL component 
fields. The memory requirement for each of the component field is 
not very big. But since I have 100 or so component fields, I am 
afraid DX will exhaust the memory by reading all of them in.


So my question is, how can I read in just one component each time. 
When I changed to another component (through the Selector), is it 
possible to flush the previous component and read in the new one?


Thank you for reading this.

Linhui Ye
Northwestern University



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Image: Display: Bad parameter: Cannot open X display ':0.0'

2005-03-21 Thread David Thompson

Did it really use 10.0 and not 11.0?

David


  So what is the DISPLAY set to when you run it remotely via -script?

On the remote computer:

~ echo $DISPLAY
s00505:11.0

I thought that OpenDX might have a problem with resolving the s00505
name, so I fully qualified it to DISPLAY=s00505.nersc.gov:11.0 and
ran: dx -execonly -verbose, but I got the same error.  Because I
passed the -verbose option, I was able to see the actual value
OpenDX uses: DISPLAY=s00505.nersc.gov:10.0

I really have no idea what the problem might be.


Thanks  best,
Irek



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Image: Display: Bad parameter: Cannot open X display ':0.0'

2005-03-20 Thread David Thompson

So what is the DISPLAY set to when you run it remotely via -script?

David


David,

Thank you for your e-mail.

On Fri, 18 Mar 2005, David Thompson wrote:


 Can you run dx in script mode and get an x window to pop up on your
 local system?


Yes, I can.  I can see the image.  This is my session:



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Image: Display: Bad parameter: Cannot open X display ':0.0'

2005-03-18 Thread David Thompson
No, it does work such that the OpenDX server creates an X11 window 
and then the GUI attaches itself to it. The server and the GUI talk 
to the same X window by setting up callbacks on the one X window. Can 
you run dx in script mode and get an x window to pop up on your local 
system?


David


Hi Marilyn, Brent  others,

Thanks you for your responses.


 Do you need to ssh -X to enable X data through from the server, or
 an xhosts + to let the workstation display X data from a remote
 server?


Yes, I made sure X11 forwarding is enabled.  I ran xterm to check it.
So this is not the problem.

I am not sure that OpenDX works that way: that the OpenDX server opens
a regular X11 window.  I suspect that the server communicates with the
GUI, and GUI is responsible for displaying the image.  I think that
way, because when I ran my program the GUI opened a black window for
an image.  The window remained open after I killed the server.


Best,
Irek



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] clipping off elements based on their position

2005-03-17 Thread David Thompson
Ah yes, now I see the logic mistake. I just do this so often that I 
forget about it. I always copy positions to a component named 'orig 
positions' first and then always replace it back.


Sorry about that.

David


As Karl has discovered, though, there's a flaw in this logic.
'b' yields a 'data' component that is now a scalar.
Thus, 'd' returns this scalar to positions (by default, since no 
other component is named for Unmark to direct the data back to.)
Therefore, 'f' should generate an error about trying to take the 
second component of a scalar.




--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] clipping off elements based on their position

2005-03-16 Thread David Thompson

a = Mark(yourData, positions);
b = Compute(a, a.0);
c = Include(b, 5, 10);
d = Unmark(c);

so to continue so you can clip y and z, do the following

e = Mark(d, positions);
f = Compute(a, a.1);
g = Include(f, ymin, ymax);
h = Unmark(g);

... on to z.

David



David,

Thanks for your suggestion and it has definitely pointed me in the 
right direction.  What I am still not able to figure out is how to 
relate d (in your network snippet below) back to the y and z 
coordinates - Compute is passing only the x coordinates to Include. 
I can't include y and z in this Compute because then they will be 
operated on by the same Include, which won't work with the 
coordinates of the data and besides I would like to clip those 
axes independently.  And having separate Computes and Includes for 
the x and y coordinates is not working, at least not the way that I 
have the network constructed.


Thanks for your help,
Karl



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Visualization problem

2005-03-16 Thread David Thompson
If you're curious if its a graphics card problem, then render in 
software and see if they appear.


Is it possible, you have invalid data in your data? If so, try 
culling it before doing the Isosurface.


David


Hi,


I've already ask it a few days ago but without answer.

My problem is when I visualize isosurfaces, I sometimes have parasite
bands which all go to one point in the image (often the center of the
image).I've put a sample image. There is my isosurfaces on the left, and the
parasite bands on the right.
I would like to know if it comes from my graphic card, or if it's an
OpenDX rendering problem, or anything else.
Thanks for help.


Emmanuelle,
France


Attachment converted: DataDrive:Pb 1.png (PNGf/ogle) (009F71D0)



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Bitmap Problems.

2005-03-16 Thread David Thompson


I see 3 solutions:
1-Generate a thicker isosurface (with a transverse gradient)


You can always apply a Tube to the generated lines to achieve thicker 
lines. If you are rendering in Hardware/OpenGL you can also set 
multipixel lines (look in the manual).


2-Algorithm for interpolation (I don't know what it's called... 
Consists of shading nearby regions instead of generating just one 
pixel to render the line)

3-Output in vector format


We have worked on a postscript output generator, but it has bugs. Not 
sure if/when we're going to release.


--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] header incompatibility between opendx and graphviz

2005-03-12 Thread David Thompson
It is quite a headache and can be a long and laborious process. That 
is why we charge for the CD and charge for certain versions we 
compile.


David



There's a lot of libraries to compile. I noticed that one
of the compiles (dx?) is dependant on libGLU and libstdc++.so.6,
while libGLU (built a while ago) is dependant on libstdc++.so.5.
So I should get a newer libGLU and recompile libGLU too. I wonder
if keeping the libraries updated scales exponentially? :-)

thanks Joe



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] header incompatibility between opendx and graphviz

2005-03-09 Thread David Thompson
DX does not have any such thing (support for graphviz). I think 
you're seeing something else going on. I would bet that you've 
compiled graphviz support into ImageMagick and then the Magick-config 
is pulling something in.


Sorry I can't be of more help, but I don't have any idea how this 
include could be getting pulled in. Do you have more information 
about the make process (what file was it trying to compile, etc.)?


David


I'm attempting to compile dx with graphviz support (because the configure
script looks for graphviz, but I don't really know what graphviz does)

the definition of point in graphviz-2.3 (/usr/include/graphviz/types.h)

typedef struct point {
int x,y;
} point;

the definition of point in dx-4.3.2 (../include/dx/basic.h) is

typedef struct point (
float x,y,z;
} Point, Vector;

The dx compile stops on reaching the definition of point saying that
it's already declared.

I looked in older versions of graphviz (1.12) and dx (4.2.0) to find the
same definitions, i.e. this situation has been around for a while. I've
previously compiled these older versions of dx with graphviz and not
had any trouble (I've got a working version of dx at least).

What should I do to get dx to compile?

Thanks
Joe

--
Joseph Mack PhD, High Performance Computing  Scientific Visualization
LMIT, Supporting the EPA Research Triangle Park, NC 919-541-0007
Federal Contact - John B. Smith 919-541-1087 - [EMAIL PROTECTED]



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Changing orientation of a plane at runtime

2005-02-17 Thread David Thompson
We've done this in our visualizations by allowing the user to use two 
picks or a probe list in the scene. The user can manipulate one probe 
for the center the other for the outside axis and then render some 
plane through it. You can also use three probes if you need truly 
arbitrary planes. Then from the probes, construct the plane center 
vector and normal vector.


David


Hello again :)

I have a 3-d scalar data set, and I map it to a 2-d scalar data set 
with MapToPlane. Is there a way to get a better control than the way 
supplied by 2 vectors (position and normal). I know I can use the 
slab and make it move back and forth, but I want an arbritary plane 
and as far as I know, the slab does not do that.


Basically I want to be able to rotate the plane almost as easily as 
the viewdirection.


And I still have not solved my other issue (above) :)

Any hints?
Arne



*
Arne Klaveness
Department of Chemistry, University of Oslo
PO Box 1033 Blindern
N-0315 OSLO, NORWAY

Email:  [EMAIL PROTECTED]
Mobile: +47 480 09 490
*



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] map data on construction

2005-02-16 Thread David Thompson

Yes it should.


Hallo opendx-users,

one short second question. Shouldn't it work the same way
for isosurfaces? I mean, I want to map my pressure data on
the velocity-isosurfaces.

Best Regards!
Fabian



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] ShowBoundary crash...

2005-02-15 Thread David Thompson
Please file a bug on this. You may wish to try setting cull to 0 or 1 
and try again. See if one or the other produces the correct result.


David


Hi,


I've got a problem with the ShowBoundary module.

I'm visualizing a 3D field with the ShowBoundary module without any problem.
Now, I want to reduce the domain, so I use Mark(Position), Include(new
boundaries), and UnMark just after the importation.
With MapToPlane or Isosurface I don't have problems and the domain is
correctly reduced.But if I use ShowBoundary, the program ends, 
disconnect from the server,

and I've got the following error message :
0 : Internal error detected at showboundary.c:931.
/usr/local/bin/dx: line 1: 3070 Abandon 
/usr/local/dx/bin_linux/dxexec -r -p1 -B

I really don't see what to do!


Thanks for any help


Emmanuelle Lafont
Clermont-Ferrand, France



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Simple Graphing?

2005-02-15 Thread David Thompson
There are lots of ways to do it in DX. Not quite sure what you mean 
by smooth, but take a look at the Plot examples.


David



I have been playing around with OpenDX for a few hours and it is a
cool program. One thing that I do a lot is plot lines/smoothed lines
from data in CSV files. Can OpenDX do this or do I need to use another
package for it?

Can I for example plot a line from a CSV File like this
0,100
1,49
2,24
3,12
4,6
5,3
6,1
7,0

And get graph with the points plotted and lines connecting them? What
about smoothed lines?

Whats the basic VP (Visual Program) to graph such a line from a file?

I know this may be an extremely simple task, perhaps even bellow
OpenDX, but its something I would like the be able to do so that I can
incorporate line graphs into OpenDX visualizations.

Thank you for your time,
Arrummzen



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] map data on construction

2005-02-14 Thread David Thompson
How do you want this mapping to take place? Are you looking to wrap 
your data somehow around the cube or just looking to show the data 
that intersects with the cube faces on the cube?


How is your 3D-data represented? Is it a regular 3D mesh?

David


Hi all,

I have a cube Construction on which I want to map my
pressure-data using Map; so I actually want to visualize my
3D-data from the whole domain just on that cube.

I make the cube with Construction and use ShowBoundary to
make the cube visible; the ouput of ShowBoundary is the
'input Map' and my 3-D data are the 'map Map' of Map.
Running that net I get a strange colored cube; actually the
cube has stripes on it. It looks that OpenDX is not sure
which color to represent; the ShowBoundary or the pressure
data.
I checked my pressure data with 'MapToPlane' on one side of
the cube, which works fine.

Does anybody have an idea how I can visualize my pressure
data on the cube nicely?

Best Greetings!
--
Fabian Braennstroem
Duesseldorf/Berlin



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] clipping off elements based on their position

2005-02-14 Thread David Thompson

This is fairly straight forward.

a = Mark(yourData, positions);
b = Compute(a, a.0);
c = Include(b, 5, 10);
d = Unmark(c);

Now d no longer includes those portions of the grid (you may want to 
cull the include).


David


Hello DX'ers,

I've got a 3-d field of elements having irregular positions, 
although only the z-dimension positions are actually irregular - the 
x and y positions are regularly-spaced.  It's essentially a 
finite-element mesh.  I'm trying to remove elements, not based on 
their value (which can be accomplished using the Include module), 
but rather based on their x and y positions.  For example, let's say 
that the domain ranges from x=0 to x=10, y=0 and y=20, and z=0 to 
z=5.  What I'd like to do is remove all elements from x=0 to x= 5 so 
that I can see what is happening inside the volume.  Note that the 
elements are visualized as solids using ShowBoundary and 
FaceNormals. I've tried ClipPlane, but the elements on the clipping 
plane are not rendered as opaque so they do not appear. Slab won't 
work either, because the connections are irregular.  In addition, my 
attempts at using ClipVolumeMacro have not been at all successful.


This seems like it should be pretty straight forward, but I'm 
obvioulsy missing some critical aspect.


Any help is greatly appreciated.  Thanks.

Karl Pohlmann
--
Karl Pohlmann
Associate Research Hydrogeologist
Division of Hydrologic Sciences
Desert Research Institute
755 East Flamingo Road, Las Vegas, NV  89119
Phone: 702-862-5485Fax: 702-862-5427
E-mail: [EMAIL PROTECTED]
http://www.dri.edu/People/karl/



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] random(a,b) function crashes?

2005-02-14 Thread David Thompson

Please add a bug to the bug reporter. I will try and get a look at it later.

David


Hey DX listers,

I'm running OpenDX 4.3.2 on Solaris 8. The random()
function consistently causes dx to dump core. It does
not seem to be a problem for the Mac version. I have checked the
bug database at opendx.org and there is no mention of
this, although the release note for OpenDX 4.3 mentions
a fix to random() for Windows.

Has anyone else run into this problem? Is there a workaround
or a patch?

Thanks,
Joel
--

===
Joel Richardson, Ph.D.   Phone: (207) 288-6435
The Jackson Laboratory   Fax:   (207) 288-6132
600 Main Street  URL:   www.informatics.jax.org
Bar Harbor, Maine 04609
===



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-dev] dx/src/exec/dxmods import_ss.c

2005-02-01 Thread David Thompson

Joel,

That's the one that I added.

By the way, it has been me not Greg adding all of these patches 
lately. For some reason the name on my account got switched back to 
Greg's.


David


Hi Greg,

Don't know what this patch is, but is there any chance you
could add the patch I posted a while back? See:

http://opendx.npaci.edu/mail/opendx-dev/2004.05/msg00018.html

It would be a huge help if this bug could be fixed.

Thanks,
Joel

Greg Abram wrote:

Update of /src/master/dx/src/exec/dxmods
In directory opendx.watson.ibm.com:/tmp/cvs-serv14596

Modified Files:
import_ss.c Log Message:
Add Richard's patch.



--

===
Joel Richardson, Ph.D.   Phone: (207) 288-6435
The Jackson Laboratory   Fax:   (207) 288-6132
600 Main Street  URL:   www.informatics.jax.org
Bar Harbor, Maine 04609
===



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Organization of the Image Window

2005-02-01 Thread David Thompson
You can sure set the default size and default 
view of an ImageWindow by passing in a default 
camera that you assign.


Not sure what you are trying to do with 
organization. Can you be a little more precise?


David


Hi,


I've got two questions concerning the Image Window.

First I'ld like to know if it's possible to fix the default size of the
Image Window. I don't want to use a Display or a SuperviseWindow module
because I want to keep the Options fonctionnalities of Image.
Secondly, I'm searching a way to organize the Image Window. I visualise
many data, and so, many legends obtained with 
ColorBar modules.The Image Window becomes 
rapidly saturated.


Does anyone has solutions to organize all the components?
I tried the Arrange Module, but rotations and zoom are aplied to all the
parts of the window.
Thanks for any suggestions!


Emmanuelle Lafont

-
Emmanuelle Lafont
NUMTECH
6 allée Alan Turing
63175 Aubière cedex



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Importing binary date with binary header

2005-02-01 Thread David Thompson
It is not that sophisticated. You could dig into the code for dx and 
fix it to work this way, or you could write yourself a simple little 
program to return a properly formatted .general file and import it 
with the !script option of Import.


David




 I cannot get

grid = msb binary , int, bytes 64, 0,4,0,4

to work.

I also tried

grid=msb binary, int, lines 0, 64, 4, 0, 4



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Black color problem

2005-01-27 Thread David Thompson
I think what you are seeing is the effect of light bouncing off a 
black surface. Depending on how you are rendering it, you can change 
Lighting values to effect the true blackness of the render. If you 
rotate the image, does the black look different and different 
orientations. If so, this is definitely your problem. Are you trying 
to use black on a black background (trying to make it non-existent?) 
If so, you may be better off to invalidate the data in the black 
range instead.


David


Hello,
I use OpenDX to visualize CT data in greyscale. My problem is, that 
black color in the colormap editor does not show up black but 
(light) grey in the image, e.g. the black-to-white distribution is 
reduced to gray-to-white. Any idea what causes this behaviour?


Thanks!

Christoph



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


[opendx-users] Faces Loops and Edges behavior - please comment

2005-01-10 Thread David Thompson
I've been working on a Illustrator/Postscript to dx converter and 
have found an interested FLE issue that I had never been presented 
with before. I thought I had found a hole slew of bugs within the 
implementation of FLE's that was going to make this converter 
worthless--however, what I found was that there are two separate 
rendering approaches to FLE's within DX. The default one is faster 
but crashes consistently when FLE's have coincidental points or 
crossing edges. The slightly slower version (which is turned on with 
an environment variable) renders all of my FLE's appropriately and 
does not crash (even with crossing edges).


I'd like to hear from everyone--if they would be opposed to changing 
the default to the non-crashing version and have it set so that you 
can choose the faster version with an envirnonment variable instead.


Let me know.
--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] cvs space error

2005-01-04 Thread David Thompson

Did you just try this today or earlier. Peter just kicked the server yesterday.

David


When trying to download from the CVS:


cvs -d :pserver:[EMAIL PROTECTED]:/src/master checkout dx
can't create temporary directory /tmp/cvs-serv7784
No space left on device


Am I doing something wrong? Is it possible to fix this?


Thank you.

Marilyn



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] VPE: Error, Connection to the server has been broken ??

2004-12-20 Thread David Thompson
You're probably going to need to upgrade your OpenDX pkg to one 
that's been compiled for 5.3. Connection to the server is done with 
sockets and it is possible that something is working quite right with 
the binaries. The other thing to check is if you have some type of 
firewall installed. If so, you need to open up port 1900.


David


Hello,

I have upgraded my FreeBSD operating system, from 4.10 to 5.3.

Under 4.10, OpenDX was running like a charm.

Now, the OpenDX VPE does not anymore connect to the server
(whatever that means), by popping up an error dialog:

  Error
  Connection to the server has been broken.

Of course I tried to reconnect, play a bit with the options
etc., but to no avail. Also, I don't really know what's going
on here. Can somebody help me with this?
What is OpenDX doing when it tries to connect to the server?

I desperately need to run OpenDX, but I can't do anything as
it is now.

Thanks!
Rob.



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Window focus on Macs

2004-12-17 Thread David Thompson

Joel,

This is the function of the quartz-wm Window manager. It is a pain 
especially for dx. I've changed my focus policy within the window 
manager so that it focuses on the window that the mouse is over 
immediately. It solves the problem you talk about with the 
ImageWindow always gaining focus. To do that, you need to add the key 
wm_ffm as true to the com.apple.x11.plist file in your 
~/Library/Preferences file. I've read that it can be set using:


in terminal

defaults write com.apple.x11 xm_ffm true

then to delete the behavior if you don't like it,

defaults write com.apple.x11 delete wm_ffm

I didn't have any luck with this, so I editted the file by hand and added it.

Of course you will need to restart X11 whenever you change this file.

David


I've been running OpenDX on my Mac and mostly everything is great.
My one problem is having to first click on a window to make it active, before
doing whatever in that window. Since working with OpenDX usually requires
frequent switching between windows (control panels, dialog boxes, 
image windows,
etc.) all those extra clicks add up to a real pain. Even worse, 
focus automatically
switches to the image window on every execution, so activities like 
stepping through

values in a control panel becomes a truly frustrating experience.

On my Sun box, this is not an issue, because I have it configured to 
give focus to

whichever window the mouse is over. I cannot find a way to do this on a Mac.
(I'm running OS X 10.3.6, using Apple's X11 v.1.0 - based on XFree86 4.3.)

Does anyone else have this problem, and is there a way around it?

Thanks!
Joel



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] ColoBar adjusts color

2004-12-16 Thread David Thompson
Are you talking about the ColorBar or the Colormap? The ColorBar just 
represents the colors that are used. If it is changing, then your 
Colors are changing (are you using AutoColor?) If you are using a 
ColorMap, then don't data drive it--if you are using AutoColor, set 
it's min and max.


David


Hi,

I visualize some data sequences from several data-files.
This works actually nice, but I have trouble to get the ColorBar not
changing the colors for every different data-file. Right, now
ColorBar adjusts the new data-file. I tried to avoid this by setting
the 'min' and 'max' values, but this did not help.

Can anybody give me any advice?


Fabian Braennstroem
Duesseldorf/Berlin



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Probleme with the module builder

2004-11-09 Thread David Thompson
If you can write up a full bug report on OS, and how to reproduce the 
problem, we'd appreciate it. I haven't seen a seg fault in the Module 
Builder since 4.3.


David


I've got version 4.3.2.

I've made some tests : if I use two fields in input (like the Add2
module), I always have a segmentation fault.




 Which version of OpenDX are you running?

 David


Hi,


I want to create a module with the Module Builder. This module must
take two fields in input (in order to concatene them).I tried the
exemple  Add.mdf and it works.
I tried to write my module, but when I click on Build and Create All,
the Module Builder close, and I've got a segmentation fault.Next I
tried  the exemple Add2.mdf which is applied in
'dx/samples/program_guide', and which takes two fields in input. But
I've got the same result.I don't understand.


Is there something I've done wrong?


 Thanks



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Increasing width of lines in output

2004-11-08 Thread David Thompson
You will have to use hardware rendering to see the results of this, 
however. The way to do it with software rendering is to tube your 
line.


David


--On 11/08/2004 09:14:28 AM +1300 [EMAIL PROTECTED] wrote:

I want to be able to control the width of lines drawn in a DX application,
but can't see how.


Use module Options to set line width and up to about 30 other 
attributes. This module just hangs the attribute on the field for 
use by other downstream modules such as Plot and Image. Check the 
docs to see which attribute is used by what.


Kent



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Probleme with the module builder

2004-11-08 Thread David Thompson

Which version of OpenDX are you running?

David


Hi,


I want to create a module with the Module Builder. This module must take
two fields in input (in order to concatene them).I tried the exemple 
Add.mdf and it works.

I tried to write my module, but when I click on Build and Create All, the
Module Builder close, and I've got a segmentation fault.Next I tried 
the exemple Add2.mdf which is applied in

'dx/samples/program_guide', and which takes two fields in input. But I've
got the same result.I don't understand.


Is there something I've done wrong?

Thanks



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Printing informations on a Control Panel

2004-11-08 Thread David Thompson
Sorry the answer is no. But this sounds quite 
useful. Why don't you file a feature request in 
the bugreporter at http://www.opendx.org/bugs


David


Hi,


I'm searching a way to print informations on a control panel. Like a label
who which react to the data.
I can do that with a SelectorList, but I don't want buttons because there
is nothing to choose, it's only informations which depends on the data.
Is there a way to do that?

Thanks for any ideas!

-
Emmanuelle Lafont
NUMTECH
6 allée Allan Turing
BP 30242
63175 AUBIERE Cedex



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Making Hardware Rendering Look Good--Do I need a new video card?

2004-10-25 Thread David Thompson
Are there two different coincident surfaces there? If not--you 
guarantee that there isn't, then my suggestion is to look at some of 
the hardware rendering options that can be added such as two-sided 
lights, etc. Look in the html documentation.


David

I'm having trouble using hardware rendering of a parametric surface 
(an adaptation of Bruce Land's net)  in openDX--for lack of better 
words, it just looks plain ugly.  See the attachments for the piece 
of the net that's giving us trouble and a comparison of how software 
and hardware rendering look on this machine. My set-up includes a 
duel Xeon 3.0 gHz processor, 4 gigs of RAM, a PCI express bus, and 
an nVidia GeForce PCX 5750 video card.  We are considering upgrading 
to a high end video card designed for scientific visualization such 
as the 3DLabs Wildcat Realism 800.  If using a new video card won't 
improve things, we won't waste the money.  What cards are some of 
you using for scientific visualization?  How can we make this look 
better?  Any help would be greatly appreciated, as this is part of a 
figure for a paper that we need to send off for publication ASAP.


P.S.   We need to use hardware rendering because the macro we are 
using to do stereo images stops working when changed from hardware 
to software rendering mode.


Thanks for taking a look,
Abbye McEwen
Department of Molecular and Cellular Biology
The University of Texas at Dallas


--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] boxing colormap from Autograyscale

2004-10-21 Thread David Thompson
You need to change the color of the Annotation parts of the Colorbar. 
If you open the CDB for Colorbar, you should see the controls for 
changing their colors. Look at the docs for Colorbar for more info.


David


Hi all
I'm using autograyscale to form an image of 2D data.
The colormap coming from autograyscale is the input for colorbar.
through Collect the colorbar is merged with the Autograyscale mapped data
to for the final output image. As I use a white background, I'd like to put
a frame on the edges colorbar. Can anyone suggest the way to do that?
Cheers
Michele



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Bug?

2004-10-15 Thread David Thompson
To do hardware rendering in with dx script, you 
must add Options before sending to Display.


myImage = Options(rendering mode, hardware);
Display(myImage, camera);

Are you using a 64 bit OS with this system? If 
so, I'd bet that somewhere a long vs int problem 
is causing this.


David


Ulrich Ölmann [EMAIL PROTECTED] writes:


 I am not an advanced DX user therefore I know nothing about the
 scripting possibilities you are using. In the networks I build in the
 visual program editor I use the 'image' module to produce the
 graphics. Doing so an 'image' window opens when the program is
 run. If I choose 'Options -- Rendering Options...' in the menu I can
 choose between software and hardware rendering. I encountered strange
 black lines comparable to yours before when I switched from one to the
 other and reexecuted the visualization network.

 Would be interesting to know if this resolves your problem! And it
 would perhaps explain why other people with other graphics hardware do
 not see this black line.

 Greetings to Heidelberg
 Ulrich Oelmann


I looks as if you are right, it is a rendering problem. One strange thing
is that when I start DX in interactive mode, I do not see the diagonal line
(but the color of the square is white).  Then when I open the Rendering
Options window, choose Software Rendering (i.e. do nothing because it is
the default) and Execute Once to redisplay, the diagonal line is there.
Switching to hardware rendering gives the picture without diagonal (and the
color is changed to blue).  But I do not know how I can force hardware
rendering from within dx/script (I have tried several things which did not
work).  Maybe this indicates that some libraries for hardware rendering are
not found by dx/script?

Hmm, maybe I should face now the task of interfacing my PDE solver to the
GUI-DX via DXlink...  I'll ask some questions in a separate message.

Thank you, Nicolas.



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


RE: [opendx-users] Installing New Fonts on Windows OpenDX (Viz, Inc Version)

2004-10-14 Thread David Thompson
This is not a problem finding the file, but a problem with the file 
itself. I would say that the way that you uncompressed the file has 
corrupted it somehow. What software did you use to uncompress it--I'd 
suggest trying to use something else.


David


Hi David,

I have tried typing in the name of the font, but I get this Error:
Text:  Invalid data: 1st item in 'connections' component (171862130) is
not between 0 and 231 / file 'C:\Program Files\OpenDX\urw\Dingbats.dx'
line 181 / as font file

Any suggestions?  Thanks!

Sum Yee Lai
Hewlett Packard
(541) 715-0848



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Bug?

2004-10-13 Thread David Thompson
I tested this on MacOS X and don't see any problem. What bit-depth do 
you have your X-server set to?


David


Hello,

I have posted about this problem before, but without any answer.  I assume
this is a bug in my version of DX (04.03.0002 from Debian/testing).  Could
someone confirm that my observation is correct?


--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Runtime loadables on a Mac

2004-10-13 Thread David Thompson
I would suggest getting the autoconf macros we developed and look at 
them. They help quite a bit when looking at building loadable 
modules. Even if you don't use autoconf, at least you can look at all 
the flags needed in the acinclude.m4 file.


David


Has anyone gotten runtime loadable modules to work on a Mac?
I have several that I want to port, and wondered if there are any
specific instructions or gotchas before I start.

I'm using the Viz, Inc., Mac build of OpenDX 4.3.2. My Mac is a
PowerBook G4 running OS X version 10.3.4.

Thanks,
Joel



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Memory Problem

2004-10-12 Thread David Thompson

You probably need to add more physical memory to your machine.

David


Hi!
Unfortunately this doesn't help.

The first Line in the message Windows show allway:
Memory cache will use 324 MB (20 for small items, 304 for large)
independent of the -memory option I give.

Any more ideas?

Thanks in advance, Bernd.



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Memory Problem

2004-10-12 Thread David Thompson
You need to give full info when you do this then. Which OS are you 
operating on. What are your user limits on the system. Which version 
of OpenDX are you running.


David


There is 1GB memory available, so I can't see why OpenDX just uses
324 MB

Bernd.


--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


RE: [opendx-users] image rendering - antialias and line width

2004-10-01 Thread David Thompson
Use UpdateCamera on the output of the camera from Image. With it, you 
can change the camera's size.


David


Well,
it does work, but (probably due to Xfree) the resolution is the one on the
screen.
thanks anyway
giulio


--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] image rendering - antialias and line width

2004-09-30 Thread David Thompson

Martin,

I just dug through a whole bunch of this for the ExportPS module I 
wrote. It actually is the fact that any off screen rendering cannot 
support the OpenGL rendering. It must be rendered on screen (no code 
for offscreen OpenGL support has been written). So often what has to 
happen is the updated Camera and Object have to be supplied to 
Display and then the ReadImageWindow module has to be used to write 
the resultant image.


David


On Thu, 2004-09-30 at 12:03, Giulio Antonutto wrote:

 I am connecting 'option module' to 'image module' with:

 attribute, value
 rendering mode, hardware
 antialias, lines
 line width, 2

 and the image looks correct on the sceen (openGL).

 Now I would like to save it in a much higher resolution and to do that I am
 using the option 'allow rendering' on the image control panel.
 Unfortunately the resulting image has not antialias and the lines are 1
 pixel thin.

I wonder if the problem is DXROOT/lib/dxfSaveCurrentImage.net.  This
is the macro that's secretly used to 'Allow Rerendering' then save.
It extracts the previously rendered object from cache using the
GetScene module (to which users don't
have access) and provides that as input to the Render module. 
Maybe the object that is

cached by the Image module doesn't have Options saved inside?  That
would mean that GetScene isn't supplying them to Render.

Hmmm.

Martin



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Isn't 4GB enough RAM for OpenDX?

2004-09-29 Thread David Thompson
So I guess I don't know how much dx is using of your 4 GB, but when 
you get screen subdivision failings--that usually indicates that the 
renderer is trying to render too much information (I also have had 
this happen when trying to render huge images). There is no reason to 
pass such huge amounts of data to the renderer since there are a 
limited number of pixels that can be used to display. For example--if 
you have a 640x480 image window, try to keep the amount of data to be 
rendered under 5-6MB. Anything above that and you will not be able to 
discern the differences. So if you are sending the renderer things 
that are say 500MB data objects, then you need to reduce their sizes 
somehow (SimplifySurface, Speedy Glyphs, Reduce). There are other 
techniques that can be helpful as well--and we are always available 
for tech support at VIS, Inc.


David


Actually, I expect 4GB should be enough. However...

Even with 4GB on NetBSD there are a couple of data files I can't open
on my OpenDX *.net. Somebody said something about the per-process limit.
I get this...among others...

ERROR: Image: Display: Out of memory: Screen subdivision failed

I reset the server and get the same again. The NetBSD gurus said I might
look into sysctl. So...

From man sysctl I find I have like so...

snip
NetBSD 1.6.2_RC3 June 6, 19936
baal: {5} sysctl proc
proc.curproc.corename = %n.core
proc.curproc.rlimit.cputime.soft = unlimited
proc.curproc.rlimit.cputime.hard = unlimited
proc.curproc.rlimit.filesize.soft = unlimited
proc.curproc.rlimit.filesize.hard = unlimited
proc.curproc.rlimit.datasize.soft = 134217728
proc.curproc.rlimit.datasize.hard = 1073741824
proc.curproc.rlimit.stacksize.soft = 2097152
proc.curproc.rlimit.stacksize.hard = 33554432
proc.curproc.rlimit.coredumpsize.soft = unlimited
proc.curproc.rlimit.coredumpsize.hard = unlimited
proc.curproc.rlimit.memoryuse.soft = 3744112640
proc.curproc.rlimit.memoryuse.hard = 3744112640
proc.curproc.rlimit.memorylocked.soft = 1248037546
proc.curproc.rlimit.memorylocked.hard = 3744112640
proc.curproc.rlimit.maxproc.soft = 160
proc.curproc.rlimit.maxproc.hard = 532
proc.curproc.rlimit.descriptors.soft = 64
proc.curproc.rlimit.descriptors.hard = 1772
baal: {6}
/snip

Which, if any of the above should I tamper with to let OpenDX take fuller
advantage of my new glut of RAM? Or do the DX gurus opine that I had ought
to rebuild my kernel? And if so, what ought I change?

TIA,

Gan

--

 Mistera Sturno - Rarest Extinct Bird

 (+)__   Gan Uesli Starling
  ((__/)=-Kalamazoo, MI, USA
   `||`
++http://starling.us



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Autocolor tube on a formula

2004-09-26 Thread David Thompson

To compute a data value based on position,

a = Mark(positions);
b = Compute(sqrt(a.0**2+a.1**2+a.2**2));

Now do your AutoColor and Image.

David


Nils Smeds wrote:

This is one way to do it, I think. There might be other better still.

/Nils


Never mind about the GLX. I figured that out. Had to enable it in 
XFree86. And thank you Nils! But I still have a question or two. 
Sorry

if this sounds dumb but is getting late and my brain is tired.

The supplied file newfoo.net from Nils colors nicely along the Z
axis. But I am still needing to color outward spherically from a mid
point at X,Y,Z = 0,0,0 rather than linearly along Z.

It's 03:32 hours now and I think I'll give up for the night and go at
it again tomorrow. Whoever has further advice, I'd be very pleased to
receive it.

TIA,

Gan


--

 Mistera Sturno - Rarest Extinct Bird

 (+)__   Gan Uesli Starling
  ((__/)=-Kalamazoo, MI, USA
   `||`
++http://starling.us



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Re: Connection to X server failed - Error during initializatioin

2004-09-23 Thread David Thompson
This could be an OS limitation. You may need to investigate things 
like ulimit and see what a single process can use for memory.


David


It appears that OpenDX was asking for more memory than the OS allows.
Once I set the memory option to 2010 and not anything higher, then
the error Connection to server baal failed goes away.

Strangely, though, 2010 MB seems not enough as I get this error on
execute...

Out of memory cannot expand data segment...

...which is the whole reason I bought 4GB of RAM in the first place.
But I think I saw somebody else's thread on this and I will look into
that now.

Thanks to all,

Gan

David Thompson wrote:
As a work around, you can always set the DXHOST environment 
variable. Look at that for starters.


David


Okay, I have added baal as a 2nd alias after baal.amalekite.net in
my /etc/hosts so that I now only get...

ERROR - Connection to server baal failed - Error during initialization.

...and not any other connection error. I can do this...

baal: {1} ping -c 1 baal
PING baal.amalekite.net (192.168.0.2): 56 data bytes
64 bytes from 192.168.0.2: icmp_seq=0 ttl=255 time=0.155 ms

baal.amalekite.net PING Statistics
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.155/0.155/0.155/0.000 ms
baal: {2}

...so it's nothing to do with /etc/hosts. Yet all my other X programs
work as befofe. Is there some log in OpenDX which would tell me what
to look for next? why it fails to connect?

TIA

Gan

Gan Uesli Starling wrote:


Machine baal is the same as localhost. The /etc/hosts file
lists it as baal.amalekite.net but I can add baal, of course.
It had always connected before as localhost. All of my other
X utilities, blackbox, IceWM, mozilla, thunderbird, NEdit,
Sodipodi etc, etc...all work fine.
Gan
Mattijs Janssens writes:


Your machine (baal) is not in /etc/hosts?
Mattijs
Gan Uesli Starling wrote:


I made an oops in the first report.
Under the window which says...
ERROR -- Connection to server baal failed -- Error during initialization.
...is another window which says...
ERROR -- Unable to resolve baal, connecting locally.
...it never used to say...
ERROR -- Connection to server baal failed -- Connecting locally
...I had just misremembered that part. I have also attached my
XFree86 log if that is informative.
TIA
Gan

Gan Uesli Starling wrote:

I just upgraded my PC with a new Intel D875PBZ motherboard, a 
3.2GHz P4 and 4 GB RAM. The sad part is that the upgrade cost 
a fortune and I did it ONLY for OpenDX. And so far as I can 
tell, OpenDX is the only program

that is having a problem with itor so it seems.
Everything EXCEPT OpenDX continues to work as before. But on 
running a program in OpenDX I now get this error...

Connection to server baal failed - Error during initialization
...whereas I had used to get...
Connection to server baal failed - Connecting locally
...and it would just work.
I have just uninstalled/reinstalled OpenDX on my NetBSD 
1.6.2_RC4 box to no better result. It does the same.

What to do next???
Thanks,
Gan




--

 Mistera Sturno - Rarest Extinct Bird

 (+)__   Gan Uesli Starling
  ((__/)=-Kalamazoo, MI, USA
   `||`
++http://starling.us







--

 Mistera Sturno - Rarest Extinct Bird

 (+)__   Gan Uesli Starling
  ((__/)=-Kalamazoo, MI, USA
   `||`
++http://starling.us



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Re: Connection to X server failed - Error during initializatioin

2004-09-22 Thread David Thompson
As a work around, you can always set the DXHOST environment variable. 
Look at that for starters.


David


Okay, I have added baal as a 2nd alias after baal.amalekite.net in
my /etc/hosts so that I now only get...

ERROR - Connection to server baal failed - Error during initialization.

...and not any other connection error. I can do this...

baal: {1} ping -c 1 baal
PING baal.amalekite.net (192.168.0.2): 56 data bytes
64 bytes from 192.168.0.2: icmp_seq=0 ttl=255 time=0.155 ms

baal.amalekite.net PING Statistics
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.155/0.155/0.155/0.000 ms
baal: {2}

...so it's nothing to do with /etc/hosts. Yet all my other X programs
work as befofe. Is there some log in OpenDX which would tell me what
to look for next? why it fails to connect?

TIA

Gan

Gan Uesli Starling wrote:

Machine baal is the same as localhost. The /etc/hosts file
lists it as baal.amalekite.net but I can add baal, of course.
It had always connected before as localhost. All of my other
X utilities, blackbox, IceWM, mozilla, thunderbird, NEdit,
Sodipodi etc, etc...all work fine.
Gan
Mattijs Janssens writes:


Your machine (baal) is not in /etc/hosts?
Mattijs
Gan Uesli Starling wrote:


I made an oops in the first report.
Under the window which says...
ERROR -- Connection to server baal failed -- Error during initialization.
...is another window which says...
ERROR -- Unable to resolve baal, connecting locally.
...it never used to say...
ERROR -- Connection to server baal failed -- Connecting locally
...I had just misremembered that part. I have also attached my
XFree86 log if that is informative.
TIA
Gan

Gan Uesli Starling wrote:

I just upgraded my PC with a new Intel D875PBZ motherboard, a 
3.2GHz P4 and 4 GB RAM. The sad part is that the upgrade cost a 
fortune and I did it ONLY for OpenDX. And so far as I can tell, 
OpenDX is the only program

that is having a problem with itor so it seems.
Everything EXCEPT OpenDX continues to work as before. But on 
running a program in OpenDX I now get this error...

Connection to server baal failed - Error during initialization
...whereas I had used to get...
Connection to server baal failed - Connecting locally
...and it would just work.
I have just uninstalled/reinstalled OpenDX on my NetBSD 
1.6.2_RC4 box to no better result. It does the same.

What to do next???
Thanks,
Gan



--

 Mistera Sturno - Rarest Extinct Bird

 (+)__   Gan Uesli Starling
  ((__/)=-Kalamazoo, MI, USA
   `||`
++http://starling.us



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Changing Help Location to online HTML docs

2004-09-21 Thread David Thompson
This is already the case. See 
http://opendx.npaci.edu/docs/html/pages/usrgu018.htm


David


Hello -

I was wondering if it is possible to make the Help tab invoke an HTML
browser pointing to the online HTML help (which seems to be much more
extensive).  Any suggestions?

Would it be possible to make a change in help location permanent as
part of the installation or build process?  Is there a reason that the
older online documentation is the default?

Thanks for all the help both now and in the past.

Best -
Ken



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] socket bufsize mismatch on SuSE 9.1

2004-09-16 Thread David Thompson

You can ignore these. What version of DX did you compile?

David


Hi,
I have compiled dx from the current sources on SuSE 9.1 32bit PC with dynamic
libraries. Worked fine, but when I load an example, I usually get popup
windows with 'SOCKET bufsize mismatch: send/rcv buffer' and a number. The
samples seem to run anyway.
-1- can I ignore these messages or how do they affect the operation of dx?
-2- how can I get rid of these errors?
Thanks a lot for any hints,
Wolfgang
--
Dr. Wolfgang Braun
Paul-Drude Institute
for Solid State Electronics
Hausvogteiplatz 5-7
D-10117 Berlin

office: +49-(0)30-20377-366
bessy: +49-(0)30-6392-3436
mobile: +49-(0)160-99882210
fax  : +49-(0)30-20377-201



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Outboard problems in DX 4.1.3

2004-09-15 Thread David Thompson
It is fixed in cvs as of about a month ago. If you have to have 
outboard modules, get the latest cvs and compile it. My suggestion as 
always is to build loadable modules since they tend to be faster (no 
latency when starting and shutting down).


David

I am not sure whether the users' mailing list is the correct one to 
pose this question: I have written several outboard modules that 
worked fine with DX 4.1.3, but produce an error connection to 
localhost failed when compiled and used with 4.2.0, 4.3.0 or 4.3.2.


Is this a known problem with a known solution? In the archive I 
found a posting by someone of 2002 with a similar problem (though 
that person didn't contrast behaviour with older versions) to which 
a possible solution was posted that involved changes to the DX 
source:

  http://opendx.npaci.edu/mail/opendx-dev/2002.07/msg00021.html

Those changes seem to 'go back' to 4.1.3 code, but I suppose 
questions as to why that code has been changed into a form that some 
people think is worse than the old (and kept in the new form until 
today) are better asked in the developers' list...



--
Urs Enke [EMAIL PROTECTED]

High-Performance Computing
Center for Computing and Communication
RWTH Aachen University



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] how to size and color scalar glyphs with different data sets

2004-09-08 Thread David Thompson
Ooh, this is the problem with using the general importer. It creates 
a separate field for each of the variables. If it constructed a 
separate component for each that would make this problem easier to 
solve--but I digress.


You want to

a = Select(0)
b = Select(1)

c = Rename(a, data, radius)
d = Replace(b, c)

e = AutoColor(d)
f = Mark(e, radius)
g = AutoGlyph(f)
Image(g)

Sorry if this is too scripty, but it's easier than trying to draw all 
those lines.


David




Hi,

I have a data set described by a general header file that
is included below. The data are a bunch of unstructured 3-d points
and all I want to do is create glyphs with the size set by
the 'radius' component and color by the 'species' component.
I can size and color by one component but I can't do the
combination. I thought I saw this before on the list but
of course I can't find it now. I thought I was getting the
hang of DX but apparently ... any help would be appreciated.

Thank you,
Jon.

*** Header file ***

file = S:/Projects/Viz/CyberCell/Data-09_2004-09-07/data_101.dat
points = 14423
format = ascii
interleaving = field
field = locations, radius, species
structure = 3-vector, scalar, scalar
type = float, int, int

end

*** Data file ***

1.327666e+02 2.445515e+02 2.533560e+02 2 2
1.337666e+02 2.449611e+02 2.580994e+02 2 2
1.287666e+02 2.632022e+02 2.369761e+02 2 2
1.327666e+02 2.654938e+02 2.563728e+02 2 2
1.325667e+02 2.604992e+02 2.589639e+02 2 2
...


--
Jon I Johansson *  Research Computing Support
[EMAIL PROTECTED]   *  Computing and Network Services
Tel.: (780) 492-9304*  University of Alberta
Fax.: (780) 492-1729*  Edmonton, Alberta, CANADA




--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


[opendx-users] font2dx now available

2004-08-03 Thread David Thompson
Wanted to comment that Jerry Hagon has been kind enough to release 
his font conversion utility. It is now available from www.opendx.org 
for download. So if you're ready to use that special font that you 
use in all your other illustrations, pick it up--convert the font and 
add it to DX.


David
--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Compiling Only DX lib in MS Windows

2004-07-29 Thread David Thompson
Look at VisualDX from the 4.3.2 source. In there, there is a project 
for building the libraries as dlls.


David


You did'nt understand me. I don't want to use Cygwin.
I have C++Builder for windows, I want to compile dx lib only to use 
them as dll in my programs. Is it possible?


On Wednesday 28 July 2004 11:47, Kent Eschenberg wrote:
  Is it possible to compile dx library in MS Windows?
 www.opendx.org = Downloads (Windows Cygwin 1.3.22)



--
Renato Gomes Damas



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Compiling Only DX lib in MS Windows

2004-07-29 Thread David Thompson
It already is removed if you do the native windows compile from MSVC 
that's provided. Of course the GUI can't build. In CVS today, I'm 
checking in some new stuff that will create a threaded exec that will 
let you write some pretty minimal DXLink applications within C# -- an 
example is provided (dxconcsharp).


David


--On July 29, 2004 12:33:03 PM [EMAIL PROTECTED] wrote:

You did'nt understand me. I don't want to use Cygwin.
I have C++Builder for windows, I want to compile dx lib only to use them
as dll in my programs. Is it possible?


I *think* the problem with that is that it is almost impossible to 
remove, from DX, its calls to the X Window System. Does anyone know 
if that is the case?


Kent



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] How to display polydisperse spheres?

2004-07-15 Thread David Thompson

Import-Mark(size) - AutoGlyph

Then you can use the scale and ratio options of AutoGlyph to change 
appropriately.


David



Greetings,

I'm following this list for quite a while (basically since I started
using dx 3 month ago). I really like this program, but now I've got a
problem I couldn't solve so far. I'm sure there is a very simple way of
doing it, but I can't see it right now.

I've created a program that is generating a box filled (not tightly
packed) with spheres of randoms sizes. Its output is of the following
structure (assuming 100 spheres):



object 1 class array type float rank 1 shape 3 items 100 data follows
-0.6902   -5.5948   0. [x,y,z coordinate]
...

object 2 class array type float rank 0 items 100 data follows
0. [radius]
...
attribute dep string positions

object data class field
component positions value 1
component size value 2
end



How can I display these spheres on their correct positions and with the
correct radius according to the size component? At the moment, I'm using
Import-Glyph-Image which displays the spheres at the correct position
but with the same radius (r=1 IIRC).

Do I have to choose a diffent output for my program? (Wouldn't be a
problem if so.)

Thanks for your help,
Kai



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


RE: [opendx-users] How to fixed the max values in Colormap?

2004-07-10 Thread David Thompson
If you got our book, you'd see that this is much easier. If you are 
able to import the whole data set but not able to color the whole 
data set (memory problems), then just feed the whole data set into 
the min value of the AutoColor module (or Colormap) and it will fix 
the min and max for you to the whole data set not the single slice. 
OpenDX: Paths to Visualization covers this topic.


David


Fawen,

At 06:43 AM 10/07/04, you wrote:

I appreciate your help. My problem is: if I color-map the whole data set
before the animation occurs, I've get memory problem. I know the range
of my data, is there any module that can be used to define the known
min/max values for color-map?


Just type the relevant values (in the units of your data) into the 
parameters 'Min' and 'Max' of {AutoColor}.


If you want to get fancy you can define your own color map (I think 
the QickStart Guide shows how to do this). This is handy if, for 
example, you want orange/red to represent data that exceeds a 
critical value.



Regards,


Allen H. Nugent
Graduate School of Biomedical Engineering
University of New South Wales
Sydney NSW 2052 Australia
Tel: +61 2 9385 3916 Fax: +61 2 9663 2108



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Are OpenDX manuals worth printing?

2004-07-08 Thread David Thompson
The current manuals are only available as HTML, that's where all the 
updates have been. Of course they really aren't printable. The 3.1.4 
manuals are a good start if you're looking for hard-copy, but since 
some things have changed, you'd best look at the html docs before 
asking for help. Plus there's a search engine with the new HTML 
manuals.


David


Hi all,

I just installed OpenDX and am looking for some
tutorials/manuals. In the OpenDX site, I have found
some manuals in PDF format (quickstart guide, user
guide etc.), but they refer to Version 3, Release 1,
Modification 4, and I have the OpenDX 4.3.2. Are there
any newer manuals, preferably in a printable format
(PS or PDF)? Or there are no significant changes
between the mentioned versions, and I can use these
(old) manuals with newer versions of OpenDX?




__
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Zoom In/Out

2004-07-01 Thread David Thompson
You really need to go through the tutorial or purchase a copy of our 
book OpenDX: Paths to Visualization. Simplistic questions like this 
will probably not get much of a response from the mailing list.


David


Hi,

How can I do image zoom in/out in OpenDX ?
Which module should I used ?
Thanks.

Regards,
KC



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Formatting 4-vectors.

2004-07-01 Thread David Thompson
Are you asking to select a single element from the 4-vector to send 
to Format? If so, use compute with a statement like a.n where n is 
the number of the element you want -- for example a.0 will give you 
the first element in the vector.


David

I have a field in which the positions component is a 4-vector, ie 
each data component
has associated with it four numbers in the positions component. I 
want to selected a single

component from the positions component and format it for output.

So far I have extracted the positions component from the field and 
used select to choose the item I want to output to screen, but the 
format module does not like the 4-vector. Any ideas?


Thanks

John Vaul



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Streamlines and Pick

2004-06-30 Thread David Thompson
You want to look at using Get, Set, and the List modules. Look for 
examples with these.


David


Hello.

I'm new in Opendx.

I'm using the Pick function to define the starting point of streamlines.
Is there a simple way to accumulate the Pick positions so the image
shows all the streamlines, not only the last one.


Thanks



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] How to change the colorbar label color?

2004-06-28 Thread David Thompson
Set the annotation to {frame, labels, ticks} then set colors to 
{clear, yellow, red}. That should let you change them--does 
this help?



Hi all,

I am new to OPEN DX. Is there anybody know how to change the label color
on colorbar?

Thanks much in advance!

Fawen Zheng



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Building loadable modules under Mac OSX

2004-06-03 Thread David Thompson
Which version of gcc are you using? You can look at the symbol table 
of your loadable module with nm and determine what symbols are in 
there. When I first was writing modules for MacOS X, the compiler 
used libtool for the linking and the compiler inserted the underscore 
(_) on all function names--that's why DXEntry became _DXEntry as the 
load symbol. Maybe that has now changed.


David


The short path here is because I am invoking dx from the command line, with:

dx -mdf ./FancyRibbon.mdf

I did also check to see if changing the LOADABLE line in the mdf 
file to the complete full path would make a difference. I get the 
same error message  just with the complete path now instead of just 
a relative path, i.e. that DX cannot find the entry point DXEntry in 
the module.


Still think that another linker switch is needed to make DXEntry the 
actual entry point for the module.


Thanks,
Norm



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Building loadable modules under Mac OSX

2004-06-02 Thread David Thompson
I would say that the biggest problem probably lies within your mdf 
file. You should define the full path to the loadable module instead 
of a relative path ./FancyRibbon.


David


Hello DX'ers,


I am attempting to get the FancyRibbon module compiled under Mac 
OSX. Up to this point, I have not been fully successful. After 
playing with the linker switches for a while, I can build the source 
successfully, but I get an error when DX tries to load the module. 
Has anyone successfully built a loadable module for OSX?


Here are the details:
OSX 10.2.8, Dec 2002 Developer Tools, VIS, Inc build of DX 4.3.0

I get the following error on load:

 0:  ERROR:  MDF file: Invalid data: cannot find entry point 
'DXEntry' in file './FancyRibbon' / module FancyRibbon


I compiled the source with the following makefile :
*
DXARCH = macos
BASE = /Applications/OpenDX/OpenDX.app/Contents/dx

DXCC = cc
INCLUDES = -I$(BASE)/include
DXCFLAGS = -no-cpp-precomp -dynamic -Wall -I/usr/X11R6/include 
-fno-common -fPIC


LINK = ld
CHECK = -bundle_loader $(BASE)/bin_macos/dxexec
LDFLAGS = -bundle -flat_namespace $(CHECK) -e _DXEntry
LIBS = -L$(BASE)/lib_macos -L/sw/lib -lm -ldl

FancyRibbon:FancyRibbon.c userFancyRibbon.c
$(DXCC) $(INCLUDES) $(DXCFLAGS) -c FancyRibbon.c
$(DXCC) $(INCLUDES) $(DXCFLAGS) -c userFancyRibbon.c
	$(LINK) $(LDFLAGS) $(LIBS) -o FancyRibbon userFancyRibbon.o 
FancyRibbon.o /usr/lib/bundle1.o

rm FancyRibbon.o
rm userFancyRibbon.o

userFancyRibbon.c:  FancyRibbon.mdf
			$(BASE)/bin/mdf2c -m FancyRibbon.mdf  
userFancyRibbon.c


*

The entry point is defined on the linker command line, but it does 
not appear to have stuck, making me think something else is wrong. 
It the underscore is omitted before DXEntry, the linker complains 
that it cannot find DXEntry.


Any ideas as to what to change or try?

Thanks,

Norm



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Princeton Ocean Model, calculating depth from Sigma

2004-05-27 Thread David Thompson

Steve,

You don't quite understand the notation. I think what you are looking for is

[a.x, a.y, a.z*b/22].

The input for b is the marked data component for temp. Since your 
grid is the same for both, then the order at which the data is stored 
is the same (typically). So when dx starts doing its calculations in 
row order then the a.z and temp should be at the same position on the 
grid.


With that calculation, you then Unmark back to positions (now in 3d) 
and then use a Shade module (to help show the relief). However, a lot 
of times with visualizations, you may have to scale your Z to make it 
even look good which is what Rubbersheet does.


David



So I'm guessing that I'd use Make3DField then to add a third dimension?
I'm finding no documentation of Make3DField.  Has anybody used this to
create a 3D array out of a 2D array where each vertical slice (Dimension
Z) is a copy of the original 2D array?  I see the Stack module and I've
given it a try too but it isn't cooperating (or I guess I'm not).  I
can't see where to tell it that I want the 3rd dimension to have 22
levels.

What I want is to multiply a(x,y,z) by b(x,y) where b(x,y) is the depth
at grid point (x,y).  It really isn't a vector so I don't think mag()
applies.  I think that if I can construct a 3D version of the depth
array then I'd just do:

[a.x, a.y, a.z * b.z / 22 ]

Thanks very much for your help,

Regards,

Steve
--
__
 Steve Cousins, Ocean Modeling GroupEmail: [EMAIL PROTECTED]
 Marine Sciences, 208 Libby Hallhttp://rocky.umeoce.maine.edu
 Univ. of Maine, Orono, ME 04469Phone: (207) 581-4302



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] cell-based data

2004-05-25 Thread David Thompson
Depends on what it is. If it is a custom tool that would just be used 
by a few--OpenDX.org can host modules (there are a few there 
already). If it is something that could benefit just about every 
OpenDX user, it is possible to add it to the code base--but would 
have to be approved by the main developers as well as copyright given 
away.


David

Thanks Chris - ShowBoundary was just what i needed to complete the 
picture! As well, your other advice about invalid connections (this 
is a nice tool that I could never get AVS to do) is greatly 
appreciated.


So, is there a module repository for those who write custom 
modules and would like to contribute them to the cause?


cheers,
Karl

Chris Pelkie wrote:

Welcome to DX-land, then!

I think you are looking for ShowBoundary which puts a polygonal 
face on a volumetric data set. You can fiddle with the opacity of 
the boundary by adding a Color module afterward and only changing 
the opacity (existing colors will be unaffected). Or add a 
Colormap, adjust the opacity curve and hook up the rightmost output 
of Colormap to the rightmost input of Color to drive the opacity by 
data.


To knock out blocks, create an invalid connections component. 
This can be done either via Color/Colormap where Colormap excludes 
values outside a range (automatically), or Include (also 
range-based), or by algorithmically (Compute) generating an array 
of bytes (1=invalid true, 0=invalid false), one per connection 
element (voxel, here). Make this array 'dep' 'connections' (use 
Options to add this attribute to your array), then Replace it onto 
your field as the invalid connections.


You may find, as I did long ago, that volume rendering in DX leaves 
much to be desired. First and foremost to me, no perspective 
rendering (ugh).
So, to see interior voxels, use Isolate followed by ShowBoundary 
and play with the Isolate value. In conjunction with the invalids, 
you should be able to get some interesting pics.



On Monday, May 24, 2004, at 20:51 America/New_York, Karl Pohlmann wrote:

Hi,

I'm new to OpenDX (though I've got a long history with AVS 5) and
after going through all the tutorials and examples, I'm still having
trouble visualizing my data set. I've got model results on a regular
(finite difference) 3-D mesh and I'd like to visualize them as
voxels, that is as connection-dependent so that values are
assigned to the entire cell, not to the vertices of the cell. In
fact, the data are cell-based cubes so they should look like solid
bricks in the visualization. Now, I've been able to generate
visualizations that are pretty much want I want with the exception
that the colors on the cell faces are not opaque. Therefore, when
the looking at the visualization, there is enough transparency that
one cannot discern the colors of cell faces closest to the viewer.

Any thoughts on how best to treat these data? I'd also like to cut
away at the mesh by removing bricks of a certain value (sort of like
isosurface, but without interpolation.

Thanks in advance,
Karl


Karl Pohlmann
Associate Research Hydrogeologist
Division of Hydrologic Sciences
Desert Research Institute
755 East Flamingo Road, Las Vegas, NV 89119
Phone: 702-862-5485 Fax: 702-862-5427
E-mail: [EMAIL PROTECTED]
http://www.dri.edu/People/karl/
- - - __o
- - - - _`\,_
- - - - - (_)/ (_)



___
Chris Pelkie
Scientific Visualization Producer
622 Rhodes Hall, Cornell Theory Center
Ithaca, NY 14853



--
Karl Pohlmann
Associate Research Hydrogeologist
Division of Hydrologic Sciences
Desert Research Institute
755 East Flamingo Road, Las Vegas, NV  89119
Phone: 702-862-5485Fax: 702-862-5427
E-mail: [EMAIL PROTECTED]
http://www.dri.edu/People/karl/
 - - - __o
 - - - - _`\,_
 - - - - -  (_)/ (_)



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Errors importing file into Opendx....please tell me what I am doing wrong!!

2004-05-24 Thread David Thompson
The bufsize mismatch is just a warning and can be ignored. It is some 
code that lets you know that socket bufsize's are not matching but 
does not cause any kind of error message.


The problem you are having with Import is relative to the 3rd message 
you report ERROR: Import: internal error: unspecified error in 
Import


Is your data file really a dx file? What does the first line in the 
file look like?


David


--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] How to remove Welcome window

2004-05-24 Thread David Thompson
Since you are using the dx startup process, dx, every-time you 
click Open or New program, it is going to shutdown the current visual 
programming setup and start a new one. You are better off using the 
File menu in the programming environment and selecting New or Open 
from there and then you won't get the splash screen. The other way 
that most users start dx when editing programs is to use dx -edit 
to start thus bypassing the startup window.


There is no way to shutoff the welcome window.

David


Hi,

Any option, eg -quiet, to avoid welcome window keep
showing up ? I think it should show up once at DX startup, but
not everytime I open a visual program.


Kuang-Chun Cheng
[EMAIL PROTECTED]



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Hello loadable module

2004-05-24 Thread David Thompson
You must compile with the proper flags for a linux loadable module to 
make sure it links correctly add


--shared -eDXEntry

to the compile line.

David

--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


[opendx-users] New fonts for OpenDX now available

2004-05-21 Thread David Thompson
I would like to say thank you to Jerry Hagon from the Physics Centre, 
School of Natural Sciences, The University, Newcastle upon Tyne for 
his wonderful work in converting some copyleft fonts for OpenDX. They 
are now available for download at 
http://opendx.npaci.edu/bin/urwfonts.tgz. These fonts were 
converted from the Ghostscript source which is GNU licensed so we 
will have to keep them as a separate download.


Jerry does have a script that can convert Type 1 Postscript fonts to 
the DX format and may be willing to help you convert a font you 
need--read the README included for more info. Please do not inundate 
him as this is a very special privilege.


Thanks again Jerry!
--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Execution with SIDE_EFFECTs

2004-05-20 Thread David Thompson
Going back and reading the documentation a bit on this, it appears 
that your assumption that adding SIDE_EFFECT results in the module 
always runs is correct. However, the assumption that the downstream 
modules assume that the output has changed is incorrect. A 
SIDE_EFFECT is exactly that. If the input to your new module getTime 
doesn't change then the cache assumes that the output will also not 
change; however the module will run to produce the SIDE_EFFECT. It 
is doing what it was designed to do and you will have to tell compute 
to not cache so it always looks up the new value from your module.


David


I just tried that and it has no effect...

Somehow, the Compute is not being executed, even though
its input is clearly changing. If I change
Compute's output to no caching, it forces execution,
but that shouldn't be necessary, if I'm
understanding things correctly.

Joel


--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Execution with SIDE_EFFECTs

2004-05-19 Thread David Thompson
Have you tried setting the output of getTime to cache No results. 
I'm betting that Compute is seeing getTime as not changing so it 
cache's the input value.


David


I have written a small inboard module, getTime, that returns the
current system clock, using the gettimeofday() call. The module
is marked as having side effects, so it is called on
every execution, as expected.

The problem is the downstream Compute. I want to use the
time of day as a random number seed. Even though the
time value is changing, the Compute is *not* being reexecuted,
so I'm getting the same random numbers every time.

The following also shows the problem. In this net, the first value
printed by Echo changes each time, but the second remains fixed.

[getTime]
|
 +--+-+
||
|  [Compute(a)]
 ||
[Echo]

I can force the Compute to execute by setting the output caching
to No results, but I thought that wouldn't be necessary here?

I have verified this behavior in verions 4.3.2 and 4.2.0, both
on Solaris 8.

Am I missing something?

Thanks,
Joel

===
Joel Richardson, Ph.D.  [EMAIL PROTECTED]
The Jackson Laboratory  Phone:  (207) 288-6435
600 Main Street Fax:(207) 288-6132
Bar Harbor, Maine 04609 URL:www.informatics.jax.org
===



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


[opendx-users] Proof prints of OpenDX book for sale

2004-03-26 Thread David Thompson
VIS, Inc. has three proof print copies of OpenDX: Paths to 
Visualization that we are willing to sell at a discount. We've put 
one of them up on eBay at 
http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItemitem=3597976382. If 
you'd like the book but didn't want to pay full price, now is the 
time to jump on these.


The proof prints are in good shape, the covers are not coated, the 
trim may be a little off (but does not hamper reading), and there may 
be a page or two loose. These were printed on different paper stocks 
so we could decide on which paper was best for our final runs. I just 
need to clean up my office and thought somebody could use them.


The highest bidder gets choice of one or all 3, if the bidder just 
wants one--I'll offer others to the next lowest bidder.


David
--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] irix64 port using gcc

2004-03-26 Thread David Thompson
I don't think anybody has done any work with gcc 64 bit compiling 
with OpenDX. It was primarily ported with Irix's native compilers by 
Randy oh so long ago. If you start going through it with a debugger 
and find the problems and get things working. Please submit your work 
to the tree.


David

--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] irix64 port using gcc

2004-03-26 Thread David Thompson
You might try turning the signal handling off when starting DX. I've 
had problems on other OS's where that was the only fix until the 
vendor fixed the signal libraries.


David


David Thompson wrote:
I don't think anybody has done any work with gcc 64 bit compiling 
with OpenDX. It was primarily ported with Irix's native compilers 
by Randy oh so long ago. If you start going through it with a 
debugger and find the problems and get things working. Please 
submit your work to the tree.


Tried the resident dbx but that didn't give any information. gdb6.0 
in 32 and 64 bit mode both complain about some unknown signal '?' 
and don't do anything.


Only funny thing I can think of is the fact that the port number (on 
the 'Connect' menu when connecting to a running server) is displayed 
as '0'. Cycling one up takes it to 1901, cycling one down brings it 
to 1900. So guess it tries the correct port but just the display on 
that box is not correctly initialized.


Any ideas on how to tackle this? As said OpenDX compiled with 32bit 
gcc  producing 32bit code works fine. (we normally run things with 
the 64bit gcc and never had any problems with the code generated by 
it so I don't suspect a compiler problem)


Regards,

Mattijs

--
/*-*\
| ===   Mattijs Janssens|
| \\/   Development Engineer|
|  \\  /|
|   \\/ Nabla Ltd.  |
|\\  /  The Mews, Picketts Lodge|
| \\/   Picketts Lane, Salfords,|
| F ieldSurrey RH1 5RG. |
| O perationTel: +44 (0)1293 821272 |
| A nd  Email: [EMAIL PROTECTED]   |
| M anipulation URL: http://www.Nabla.co.uk |
\*-*/



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] pick

2004-02-26 Thread David Thompson
You must put a Pick module on the canvas in order to use it. Please 
see the samples that deal with Pick.


David

What do I have to do in order to have pick enabled. 
Which additional modules (pick) do I need to have

installed.  Where do I get them (aix/linux)?  The menu
item is grey out in my installation.



__
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] stack segfaults with tiffs

2004-01-16 Thread David Thompson

Can you provide a small demo that shows the problem that others could test?

David


David Thompson wrote:
Here's something to try. ReadImage - Post(positions) - 
CollectSeries - Stack - Isosurface. If this solves the problem, 
please file a bug report.


This does not fix the problem :-(. I'm very sure that it is the 
stack module now, if I put a describe module before the stack 
module, it is still executed, if I put it behind it it's not. Any 
other ideas?

Cheers
Jochen



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


  1   2   3   4   >