Hello Guillaume,
To answer your first question, the way that I've used to get the menu items
to appear on top of the Canvas3D is to use a java.awt.MenuBar instead of a
java.swing.JMenuBar and use Menu and MenuItem instead of JMenu and
JMenuItem.
This is because the Canvas3D is heavyweight and therefore you need the menu
to also be heavyweight if you want it to appear on top. The java.awt
components are heavyweight, while the java.swing components are (except for
the JFrame, etc) lightweight.
Rob
-----Original Message-----
From: Guillaume ALLEON [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 07, 2000 12:38 PM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Picking and other stuff for scientific viz
Hi,
In order to have things more practical I join some source code (It is
derived
from one Java3D demo and is quite bad at that time).
The application I want to design is a scientific visualisation application.
Roughly
we want to visualize a large number of triangles (millions) and put colors
on
triangles and/or vertices. Up to now, all my triangles are part one a single
Shape3D.
Having one shape by triangle is an overkill !
My question are the following:
- Is there a way to have the Menu coming on top of the canvas3D (there is
a discussion on that topic on j3d.org but only for Popup menu.
- Is there a way to assign colors onto triangles rather than on their
vertices
without duplicating nodes
- At the moment we have a Color bar making the correspondance between
the real physical value and the color. We have put it in a AWT Pane. I have
the feeling that it would be better to have it in the scene. How to do it
without
having tons of shapes that speed down rendering ?
- The more interesting question is dealing with Picking there are a lot of
Picking functions but these are all oriented for mouvement (translation,
rotation, zoom).
I would like to Pick (single click) my scene and get back the indice of my
triangle
in my triangle array so that I can modify locally my triangle or I can
display the local
physical value on that picked point.
Thanks for your help and time
Regards
Guillaume
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".