Hello,
We are constrain to use OpenGL native code at the current time for rendering
but
our application is mainly written in Java, and using Java3d for the sensors
description.
Is there a way to generate a handle on a Canvas3D from an OpenGL window?
There
must be a way since there exist API like Magician or Opengl for Java, but is
that
a secret?
thanks for any advice
Yohan
_______________________________________________________________________
Yohan BAILLOT
Electrical and Computer Engineer
Virtual Reality Laboratory,
Advanced Information Technology (Code 5580),
Naval Research Laboratory,
4555 Overlook Avenue SW,
Washington, DC 20375-5337
[EMAIL PROTECTED]
(202) 404 7801
Home : (703) 566 3684
Cell : (407) 222 6359
Fax : (202) 767 1122
Web : www.ait.nrl.navy.mil/people/baillot
_______________________________________________________________________
| -----Original Message-----
| From: Discussion list for Java 3D API
| [mailto:[EMAIL PROTECTED]]On Behalf Of Automatic digest
| processor
| Sent: Tuesday, June 27, 2000 3:00 AM
| To: Recipients of JAVA3D-INTEREST digests
| Subject: JAVA3D-INTEREST Digest - 25 Jun 2000 to 26 Jun 2000 (#2000-107)
|
|
| There are 18 messages totalling 1128 lines in this issue.
|
| Topics of the day:
|
| 1. size of an object (2)
| 2. Rendering problem with J3D V1_2.
| 3. Java2 Plugin and J3D? (2)
| 4. Disable rendering and sound (2)
| 5. Transforming the image in the canvas3D into a ".gif" one
| 6. PickMouseBehavior
| 7. Menu mnemonics and accelerators and Java3D
| 8. Independent research
| 9. Collision detection in Java3D
| 10. openlgl and openal (2)
| 11. Shape3D capability problem (2)
| 12. Fwd: Re: [JAVA3D] PickMouseBehavior
| 13. Area Surface of a 3d Shape ?
|
| ==================================================================
| =========
| 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".
|
| ----------------------------------------------------------------------
|
| Date: Mon, 26 Jun 2000 08:13:11 +0200
| From: =?iso-8859-1?Q?S=E1nchez_Sanz=2C_Javier?= <[EMAIL PROTECTED]>
| Subject: size of an object
|
| There is any way to know the size of an object?
|
| Javier Sánchez
| Radar, Mando y Control
| INDRA Sistemas
|
| ------------------------------
|
| Date: Mon, 26 Jun 2000 09:31:41 +0100
| From: Malcolm Binstead <[EMAIL PROTECTED]>
| Subject: Re: Rendering problem with J3D V1_2.
|
| Hi Uma, Thanks.
|
| > This problem has been fixed in 1.2.1 Beta.
|
| Is 1.2.1 available ?.
| It's not on http://developer.java.sun.com/developer/earlyAccess/
| or http://java.sun.com/products/java-media/3D/index.html
|
| Malc.
|
| ------------------------------
|
| Date: Mon, 26 Jun 2000 11:37:57 +0200
| From: Joerg 'Herkules' Plewe <[EMAIL PROTECTED]>
| Subject: Re: Java2 Plugin and J3D?
|
| Oh nice, thank you!
|
| Will I have to get a real certificate or can I come along with a test
| certificate as described on J3D.org?
| I also noticed the problem that j3d is installed to a 1.2
| directory in spite
| of 1.3. Is there any workaround?
|
| Am I allowed to distribute the java3d1_2-win32-opengl.exe from my website?
| Are there any license concerns?
|
| Currently, isn't it the best solution to have a detailed installation
| instruction on the website and let people do it by hand? The whole stuff
| seems to be in a quite experimental stage, not suitable for a
| 'common user'?
|
| What about other target platforms than Win32? Will I have to have
| a seperate
| installation jar for each?
|
| Sigh, distributing a Java app was SO easy in the early days.
| Today, it seems
| to be FAR more complicated than a native app. Is this the new spirit of
| Java? ;-((
|
| Thx again,
|
| - J
|
|
| Joerg 'Herkules' Plewe
| HARDCODE Development
| http://www.hardcode.de
|
| > -----Original Message-----
| > From: Discussion list for Java 3D API
| > [mailto:[EMAIL PROTECTED]]On Behalf Of Justin Couch
| > Sent: Montag, 26. Juni 2000 03:17
| > To: [EMAIL PROTECTED]
| > Subject: Re: [JAVA3D] Java2 Plugin and J3D?
| >
| >
| > Joerg 'Herkules' Plewe wrote:
| >
| > > I have written a small J3D programm. Of course now, I want to
| > deploy it to
| > > the web using the Java2 1.3 plugin. I ran HTMLConvert in my webpage.
| > > Obviously, the 1.3 runtime is installed successfully, but
| > without the J3D
| > > runtime!! How can I configure this?
| >
| > You need to build it into your applet's JAR file. J3d.org has a tutorial
| > on how to do this at
| >
| http://www.j3d.org/tutorials/quick_fix/auto_install.html
|
| > Perhaps someone is so kind to examine my file and give me a hint?? I'm
| sure
| > it's an FAQ, but anyway I couldn't find it.
|
| Yup, it is - in the J3D FAQ. See my sig....
|
| --
| Justin Couch Author, Java Hacker
| Software Architect [EMAIL PROTECTED]
| rbuzz.net http://www.vlc.com.au/~justin/
| Java3D FAQ http://www.j3d.org/faq/
| -------------------------------------------------------------------
| "Look through the lens, and the light breaks down into many lights.
| Turn it or move it, and a new set of arrangements appears... is it
| a single light or many lights, lights that one must know how to
| distinguish, recognise and appreciate? Is it one light with many
| frames or one frame for many lights?" -Subcomandante Marcos
| -------------------------------------------------------------------
|
| ==================================================================
| =========
| 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".
|
| ------------------------------
|
| Date: Mon, 26 Jun 2000 18:42:12 +0800
| From: Justin Couch <[EMAIL PROTECTED]>
| Subject: Re: Java2 Plugin and J3D?
|
| Joerg 'Herkules' Plewe wrote:
|
| > Will I have to get a real certificate or can I come along with a test
| > certificate as described on J3D.org?
|
| Not sure. I haven't tried this myself as all my J3D work is standalone
| apps.
|
| > I also noticed the problem that j3d is installed to a 1.2
| directory in spite
| > of 1.3. Is there any workaround?
|
| No - that's in the FAQ too :) Sun have put the change in for the
| upcoming 1.2.1 release. For the moment there is nothing you can do.
|
| > Am I allowed to distribute the java3d1_2-win32-opengl.exe from
| my website?
| > Are there any license concerns?
|
| Last time I read the Sun licensing agreements, you weren't supposed to
| distribute the install binary. However you were allowed to redistribute
| parts of the install process. Somewhere there, there was a list of the
| minimum required redistributable set of components - basically the JAR
| files and native DLLs. I probably need to go read it again, but that
| could be a potential problem that not even Sun are aware of in their
| many different license agreements.
|
|
| > Currently, isn't it the best solution to have a detailed installation
| > instruction on the website and let people do it by hand? The whole stuff
| > seems to be in a quite experimental stage, not suitable for a
| 'common user'?
|
| True, but Sun can't think of everything themselves. In particular the
| various combinations that us users do of things that are all quite
| normal and sensible to do. Remember that the auto install has only just
| been release with the FCS release of JDK 1.3 (think it might have been
| in RC2??) so it's still pretty new in general terms too. That they've
| got this far I'm really happy about!
|
| > What about other target platforms than Win32? Will I have to
| have a seperate
| > installation jar for each?
|
| Got me there. Hopefully one of the Sun team are reading this thread and
| can reply directly. If not, ping Paul directly (email on that page) and
| please let me know as I'll add that to the pages.
|
| > Sigh, distributing a Java app was SO easy in the early days.
| Today, it seems
| > to be FAR more complicated than a native app. Is this the new spirit of
| > Java? ;-((
|
| You just want to do too many things. What's wrong with a simple text
| crawl for your web page! ;P
|
| Native apps are just as bad. Most of it is hidden under InstallShield
| though - all the checks for the correct versions of DX, extra libs etc
| etc.
|
| --
| Justin Couch Author, Java Hacker
| Software Architect [EMAIL PROTECTED]
| rbuzz.net http://www.vlc.com.au/~justin/
| Java3D FAQ http://www.j3d.org/faq/
| -------------------------------------------------------------------
| "Look through the lens, and the light breaks down into many lights.
| Turn it or move it, and a new set of arrangements appears... is it
| a single light or many lights, lights that one must know how to
| distinguish, recognise and appreciate? Is it one light with many
| frames or one frame for many lights?" -Subcomandante Marcos
| -------------------------------------------------------------------
|
| ------------------------------
|
| Date: Mon, 26 Jun 2000 13:36:27 +0200
| From: Ulrich Staudinger <[EMAIL PROTECTED]>
| Subject: Re: size of an object
|
| You can use the boundingBox of an object, along with its function
| getUpper and
| getLower -> calculate the volume of this cube.
|
| Maybe the boundingSphere might help, too.
| What about polytope...?
|
| Sánchez Sanz, Javier wrote:
|
| > There is any way to know the size of an object?
| >
| > Javier Sánchez
| > Radar, Mando y Control
| > INDRA Sistemas
| >
| >
| ==================================================================
| =========
| > 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".
|
| --
| Ulrich Staudinger
|
| <[EMAIL PROTECTED]>
| Cellular: ++49 (0)173-3587204
|
| ------------------------------
|
| Date: Mon, 26 Jun 2000 08:01:00 -0400
| From: "J. Lee Dixon" <[EMAIL PROTECTED]>
| Subject: Re: Disable rendering and sound
|
| This message is in MIME format. Since your mail reader does not understand
| this format, some or all of this message may not be legible.
|
| ------ =_NextPart_000_01BFDF66.326CCC74
| Content-Type: text/plain
|
| Tried that one. Doesn't work for me. Here is a test program that has a
| toggle button that calls View.stopView() or View.startView(). The cube
| rotation stops, but the sound continues... at least on my machine. (J3D
| 1.2opengl FCS, JDK 1.3)
|
| BTW, do you know if J3D1.2 for DirectX is still scheduled for release
| this month?
|
| -Lee
|
| J. Lee Dixon
| Software Engineer
| SAIC - Celebration, FL
| [EMAIL PROTECTED]
|
|
| -----Original Message-----
| From: Kelvin Chung [mailto:[EMAIL PROTECTED]]
| Sent: Friday, June 23, 2000 5:47 PM
| To: [EMAIL PROTECTED]
| Cc: [EMAIL PROTECTED]
| Subject: Re: [JAVA3D] Disable rendering and sound
|
|
| Hi,
|
| The sound can be stop by using View.stopView().
|
| - Kelvin
|
| ------------
| Java 3D Team
| Sun Microsystems Inc.
|
| >MIME-Version: 1.0
| >Date: Fri, 23 Jun 2000 08:35:26 -0400
| >From: "J. Lee Dixon" <[EMAIL PROTECTED]>
| >Subject: [JAVA3D] Disable rendering and sound
| >To: [EMAIL PROTECTED]
| >
| >In my application, the user may select a tab in a tab stack to show
| >other windows besides my Canvas3D. When the switch is made, I
| currently
| >call Canvas3D.stopRenderer(), which turns off the full-time CPU hogging
| >rendering. But any background sound I have going keeps playing. I
| also
| >tried stopping the scheduler, but that did not work either.
| >
| >How can I stop sounds from playing when I have paused the canvas
| >rendering?
| >
| >Lee
| >
| >
| >J. Lee Dixon
| >Software Engineer
| >SAIC - Celebration, FL
| >[EMAIL PROTECTED]
| >
| >=======================================================================
| ====
| >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".
|
|
| ------ =_NextPart_000_01BFDF66.326CCC74
| Content-Type: application/octet-stream;
| name="TestBed.java"
| Content-Disposition: attachment;
| filename="TestBed.java"
|
| import java.net.*;
| import java.awt.*;
| import java.applet.Applet;
| import java.awt.event.*;
| import javax.vecmath.*;
| import javax.media.j3d.*;
| import javax.swing.*;
|
| import com.sun.j3d.utils.universe.SimpleUniverse;
| import com.sun.j3d.utils.universe.ViewingPlatform;
| import com.sun.j3d.utils.applet.MainFrame;
|
| import com.sun.j3d.utils.geometry.*;
|
| public class TestBed extends Applet implements ActionListener
| {
| private SimpleUniverse universe = null;
| private boolean toggleView=true;
|
| static public void main(String[] args)
| {
| new MainFrame(new TestBed(), 420, 300);
| }
|
| TestBed()
| {
| }
|
| public void init()
| {
| setLayout(new BorderLayout());
|
| // Create the canvas
| GraphicsConfigTemplate3D template = new GraphicsConfigTemplate3D();
| GraphicsConfiguration gcfg =
| GraphicsEnvironment.getLocalGraphicsEnvironment().
| getDefaultScreenDevice().getBestConfiguration(template);
| Canvas3D canvas = new Canvas3D(gcfg);
| canvas.setSize(300, 300);
| add("Center", canvas);
|
| // Add a button to toggle the view.
| JButton but = new JButton("ToggleView");
| but.addActionListener(this);
| add("East", but);
|
| // Create the universe.
| universe = new SimpleUniverse(canvas);
|
| // Initialize sound capability.
| AudioDevice audioDev = universe.getViewer().createAudioDevice();
|
| // Create the main branch.
| BranchGroup mainBranch = new BranchGroup();
|
| // Put a rotating color cube in the scene just for the "halibut".
| Transform3D xform = new Transform3D();
| xform.setTranslation(new Vector3f(0.0f, 0.0f, -10.0f));
| TransformGroup grp = new TransformGroup(xform);
| TransformGroup grp2 = new TransformGroup();
| grp2.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
| RotationInterpolator rot =
| new RotationInterpolator(new Alpha(-1,5000), grp2);
| rot.setSchedulingBounds(new BoundingSphere(new Point3d(), 5000.0) );
| rot.setEnable(true);
| grp2.addChild(new ColorCube());
| grp.addChild(grp2);
| mainBranch.addChild(grp);
| mainBranch.addChild(rot);
|
| // The sound.
| try
| {
| URL soundURL = new URL(getDocumentBase(), "Crickets.wav");
| MediaContainer soundMedia = new MediaContainer(soundURL);
| BackgroundSound sound = new BackgroundSound(soundMedia, 1.0f);
| sound.setEnable(true);
| Bounds bounds =
| new BoundingSphere(new Point3d(), 5000.0);
| sound.setLoop(-1);
| sound.setSchedulingBounds(bounds);
| mainBranch.addChild(sound);
| }
| catch ( MalformedURLException exc )
| {
| System.out.println("Could not open sound file!");
| }
|
| // Make the main branch live.
| universe.addBranchGraph(mainBranch);
| }
|
|
|
| public void actionPerformed(ActionEvent e)
| {
| String command = e.getActionCommand();
| if (command.equals("ToggleView"))
| {
| if (toggleView==false)
| {
| universe.getViewer().getView().startView();
| System.out.println("startView()");
| }
| else
| {
| universe.getViewer().getView().stopView();
| System.out.println("stopView()");
| }
|
| toggleView = !toggleView;
| }
| }
|
|
| }
|
|
| ------ =_NextPart_000_01BFDF66.326CCC74--
|
| ------------------------------
|
| Date: Mon, 26 Jun 2000 19:24:58 +0200
| From: Tiziana <[EMAIL PROTECTED]>
| Subject: Transforming the image in the canvas3D into a ".gif" one
|
| This is a multi-part message in MIME format.
|
| ------=_NextPart_000_0007_01BFDFA4.373C6A00
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: quoted-printable
|
| Is there a way to get the frame displayed in the canvas ?=20
| In which format can i have it? pixel by pixel ? image2D?
|
| Thank you
| Tiziana Cimoli=20
|
| ------=_NextPart_000_0007_01BFDFA4.373C6A00
| Content-Type: text/html;
| charset="iso-8859-1"
| Content-Transfer-Encoding: quoted-printable
|
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
| <HTML><HEAD>
| <META content=3D"text/html; charset=3Diso-8859-1" =
| http-equiv=3DContent-Type>
| <META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
| <STYLE></STYLE>
| </HEAD>
| <BODY bgColor=3D#ffffff>
| <DIV><FONT face=3DArial size=3D2>Is there a way to get the frame =
| displayed in the=20
| canvas ?<EM> </EM></FONT></DIV>
| <DIV><FONT face=3DArial size=3D2>In which format can i have it? pixel by =
| pixel ?=20
| image2D?</FONT></DIV>
| <DIV> </DIV>
| <DIV><FONT face=3DArial size=3D2>Thank you</FONT></DIV>
| <DIV><FONT face=3DArial size=3D2>Tiziana =
| Cimoli</FONT> </DIV></BODY></HTML>
|
| ------=_NextPart_000_0007_01BFDFA4.373C6A00--
|
| ------------------------------
|
| Date: Mon, 26 Jun 2000 15:17:05 -0400
| From: Ben Arbel <[EMAIL PROTECTED]>
| Subject: PickMouseBehavior
|
| This is a multi-part message in MIME format.
|
| ------=_NextPart_000_0145_01BFDF81.96013520
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: quoted-printable
|
| HI
|
| Can anyone please tell me how can i change the mouse mask being used in =
| java3D mouse classes,=20
| for example lets say i want to enable right mouse clicking using the =
| PickMouseBehavior class=20
| or for example the MouseRotate class=20
|
| thanks
| ben
|
| ------=_NextPart_000_0145_01BFDF81.96013520
| Content-Type: text/html;
| charset="iso-8859-1"
| Content-Transfer-Encoding: quoted-printable
|
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
| <HTML>
| <HEAD>
|
| <META content=3Dtext/html;charset=3Diso-8859-1 =
| http-equiv=3DContent-Type>
| <META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
| </HEAD>
| <BODY bgColor=3D#ffffff>
| <DIV><FONT size=3D2>HI</FONT></DIV>
| <DIV><FONT size=3D2></FONT> </DIV>
| <DIV><FONT size=3D2>Can anyone please tell me how can i change the mouse =
| mask=20
| being used in java3D mouse classes, </FONT></DIV>
| <DIV><FONT size=3D2>for example lets say i want to enable right mouse =
| clicking=20
| using the PickMouseBehavior class </FONT></DIV>
| <DIV><FONT size=3D2>or for example the MouseRotate class </FONT></DIV>
| <DIV><FONT size=3D2></FONT> </DIV>
| <DIV><FONT size=3D2>thanks</FONT></DIV>
| <DIV><FONT size=3D2>ben</FONT></DIV></BODY></HTML>
|
| ------=_NextPart_000_0145_01BFDF81.96013520--
|
| ------------------------------
|
| Date: Mon, 26 Jun 2000 14:35:18 -0500
| From: "Andrew R. Thomas-Cramer" <[EMAIL PROTECTED]>
| Subject: Re: Menu mnemonics and accelerators and Java3D
|
| My Swing menus are heavyweight, since I called
| setLightWeightPopupEnabled() on
| each.
| Since no one else has reported also experiencing problems with
| mnemonics and
| accelerators, my presumption is that it's an error in my code ...
| somewhere.
|
| -----Original Message-----
| From: Bryan Lanier <[EMAIL PROTECTED]>
| To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
| Date: Saturday, June 24, 2000 9:06 AM
| Subject: Re: [JAVA3D] Menu mnemonics and accelerators and Java3D
|
|
| >The problem is really quite simple - swing menus are
| >light weight and canvas3d are heavies, the canvas is
| >just drawing over your drop down menus. Normally, if
| >you look real close you'll see that the menu did drop
| >down and if you use your arrow keys to navigate them,
| >they will still work but just not be visible.
| >
| >__________________________________________________
| >Do You Yahoo!?
| >Get Yahoo! Mail - Free email you can access from anywhere!
| >http://mail.yahoo.com/
| >
| >=================================================================
| ==========
| >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".
| >
|
| ------------------------------
|
| Date: Mon, 26 Jun 2000 12:39:52 -0700
| From: Kuo-chang chiang <[EMAIL PROTECTED]>
| Subject: Independent research
|
| Hi,
| I am a Ph.D. candidate in Northwestern University.
| Currently, I have a project to access the potential of
|
| Java3D with respect to competing technology tools for
| 3D applications on the Internet. A very good
| compensation
| will be offered as reward for helping me doing the
| project. Please email me at [EMAIL PROTECTED] Thanks!
|
| P.S. I am now in Boston until Wednesday morning.
| If you are in Boston during the time, please
| contact with me A.S.A.P. and we can meet each
| other in person.
|
| Sincerely,
|
| Charles
|
|
|
|
|
| __________________________________________________
| Do You Yahoo!?
| Get Yahoo! Mail - Free email you can access from anywhere!
| http://mail.yahoo.com/
|
| ------------------------------
|
| Date: Mon, 26 Jun 2000 15:05:55 -0500
| From: Derek Augustus Ruths <[EMAIL PROTECTED]>
| Subject: Collision detection in Java3D
|
| I'm interested in understanding how Java3D is performing collision
| detection. If anyone could provide insight or references and pointers,
| that would be great. Thanks.
|
| DereK
|
| ------------------------------
|
| Date: Mon, 26 Jun 2000 14:21:02 -0700
| From: Kelvin Chung <[EMAIL PROTECTED]>
| Subject: Re: Disable rendering and sound
|
| Hi,
|
| Two bugs is filed for this problem:
|
| 4348236 - No background sound sometimes when startup
| 4348247 - stopView() fail to stop background sound
|
| Note that using J3D 1.1.3 stopView() can stop the sound but
| startView() fail to resume it (another bug).
|
| Thanks for your bug report.
|
| - Kelvin
| ---------------
| Java 3D Team
| Sun Microsystems Inc.
|
|
| >X-Unix-From: [EMAIL PROTECTED] Mon Jun 26 05:13:43 2000
| >MIME-Version: 1.0
| >Date: Mon, 26 Jun 2000 08:01:00 -0400
| >From: "J. Lee Dixon" <[EMAIL PROTECTED]>
| >Subject: Re: [JAVA3D] Disable rendering and sound
| >Comments: To: Kelvin Chung <[EMAIL PROTECTED]>
| >To: [EMAIL PROTECTED]
| >
| >Tried that one. Doesn't work for me. Here is a test program that has a
| >toggle button that calls View.stopView() or View.startView(). The cube
| >rotation stops, but the sound continues... at least on my machine. (J3D
| >1.2opengl FCS, JDK 1.3)
| >
| >BTW, do you know if J3D1.2 for DirectX is still scheduled for release
| >this month?
| >
| >-Lee
| >
| >J. Lee Dixon
| >Software Engineer
| >SAIC - Celebration, FL
| >[EMAIL PROTECTED]
| >
| >
| >-----Original Message-----
| >From: Kelvin Chung [mailto:[EMAIL PROTECTED]]
| >Sent: Friday, June 23, 2000 5:47 PM
| >To: [EMAIL PROTECTED]
| >Cc: [EMAIL PROTECTED]
| >Subject: Re: [JAVA3D] Disable rendering and sound
| >
| >
| >Hi,
| >
| > The sound can be stop by using View.stopView().
| >
| >- Kelvin
| >
| >------------
| >Java 3D Team
| >Sun Microsystems Inc.
| >
| >>MIME-Version: 1.0
| >>Date: Fri, 23 Jun 2000 08:35:26 -0400
| >>From: "J. Lee Dixon" <[EMAIL PROTECTED]>
| >>Subject: [JAVA3D] Disable rendering and sound
| >>To: [EMAIL PROTECTED]
| >>
| >>In my application, the user may select a tab in a tab stack to show
| >>other windows besides my Canvas3D. When the switch is made, I
| >currently
| >>call Canvas3D.stopRenderer(), which turns off the full-time CPU hogging
| >>rendering. But any background sound I have going keeps playing. I
| >also
| >>tried stopping the scheduler, but that did not work either.
| >>
| >>How can I stop sounds from playing when I have paused the canvas
| >>rendering?
| >>
| >>Lee
| >>
| >>
| >>J. Lee Dixon
| >>Software Engineer
| >>SAIC - Celebration, FL
| >>[EMAIL PROTECTED]
| >>
| >>=======================================================================
| >====
| >>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".
| >
|
| ------------------------------
|
| Date: Mon, 26 Jun 2000 17:32:01 -0400
| From: [EMAIL PROTECTED]
| Subject: openlgl and openal
|
| I was wondering, I haven't been keeping track but how goes opengl
| development with java... and now with openal becoming "Known", is there
| support or will there be? Just a general ?
|
| Thanks
| Ron Petty
|
| ------------------------------
|
| Date: Mon, 26 Jun 2000 17:31:13 -0500
| From: Derek Augustus Ruths <[EMAIL PROTECTED]>
| Subject: Shape3D capability problem
|
| In my code, I make the following call:
|
| ((Shape3D)n).intersect(path,_ray,dist)
|
| Everything is appropriately valued so that no errors
| result. However, I consistently receive the following exception:
|
| javax.media.j3d.CapabilityNotSetException: Shape3D: no capability
| to allow intersect
| at javax.media.j3d.Shape3D.intersect(Shape3D.java:226)
| ...
|
| I've looked all over the place and can't find mention of an
| INTERSECT related capability. Does anyone know what capability I need to
| enable in order for intersect to work? Thanks!
|
| DereK
|
| ------------------------------
|
| Date: Mon, 26 Jun 2000 15:48:36 -0700
| From: Kelvin Chung <[EMAIL PROTECTED]>
| Subject: Re: Shape3D capability problem
|
| >X-Authentication-Warning: forest.owlnet.rice.edu: druths owned
| process doing -bs
| >X-Sender: [EMAIL PROTECTED]
| >MIME-Version: 1.0
| >Date: Mon, 26 Jun 2000 17:31:13 -0500
| >From: Derek Augustus Ruths <[EMAIL PROTECTED]>
| >Subject: [JAVA3D] Shape3D capability problem
| >To: [EMAIL PROTECTED]
| >
| > In my code, I make the following call:
| >
| > ((Shape3D)n).intersect(path,_ray,dist)
| >
| > Everything is appropriately valued so that no errors
| >result. However, I consistently receive the following exception:
| >
| > javax.media.j3d.CapabilityNotSetException: Shape3D: no capability
| >to allow intersect
| > at javax.media.j3d.Shape3D.intersect(Shape3D.java:226)
| > ...
| >
| > I've looked all over the place and can't find mention of an
| >INTERSECT related capability. Does anyone know what capability I need to
| >enable in order for intersect to work? Thanks!
| >
|
| Please set the follow capability for the geometry under shape3D
|
| Geometry.ALLOW_INTERSECT
|
| - Kelvin
| --------------
| Java 3D Team
| Sun Microsystems Inc.
|
| ------------------------------
|
| Date: Mon, 26 Jun 2000 21:29:47 -0400
| From: Eric Reiss <[EMAIL PROTECTED]>
| Subject: Fwd: Re: [JAVA3D] PickMouseBehavior
|
| --=====================_4163046==_.ALT
| Content-Type: text/plain; charset="us-ascii"; format=flowed
|
| I forgot to mention that in each of the picking behaviors, there is a
| method called updateScene() that also needs to have the modifier buttons
| changed.
|
| The line in this method that checks the for AltDown and MetaDown should
| have the Bangs changed so that they match what you change the ones in the
| mouse behaviors to. If you look at this line in the picking behavior and
| compare it to the one in the mouse behavior, you will see that the Bang
| ("!") symbols are in the same areas.
|
| I hope this helps.
|
|
|
| >Date: Mon, 26 Jun 2000 16:42:38 -0400
| >To: Ben Arbel <[EMAIL PROTECTED]>
| >From: Eric Reiss <[EMAIL PROTECTED]>
| >Subject: Re: [JAVA3D] PickMouseBehavior
| >
| >Each pick behavior maps to a corresponding mouse behavior, so
| you actually
| >change the masking of the mouse buttons in the mouse behavior class.
| >
| >Look for the following lines in the processStimulus method within the
| >mouse classes:
| >
| >if ((id == MouseEvent.MOUSE_DRAGGED) &&
| ((MouseEvent)event[i]).isMetaDown() &&
| >
| >!((MouseEvent)event[i]).isAltDown())
| >
| >In the above example I have remapped the mouserotate behavior so that the
| >right mouse button is the one that has to be pressed. The right mouse
| >button uses the MetaDown check and the middle button uses the
| AltDown check.
| >
| >So for the above case it says, is the mouse dragged, is the meta button
| >(right) clicked and is the alt button (middle) NOT clicked (notice the
| >bang in front of the last check)
| >
| >So the checks for the desired button would be as follows:
| >
| >Left mouse button:
| >if ((id == MouseEvent.MOUSE_DRAGGED) &&
| >!((MouseEvent)event[i]).isMetaDown() &&
| >
| >!((MouseEvent)event[i]).isAltDown())
| >
| >Middle button
| >if ((id == MouseEvent.MOUSE_DRAGGED) &&
| >!((MouseEvent)event[i]).isMetaDown() &&
| >
| >((MouseEvent)event[i]).isAltDown())
| >
| >Right button
| >if ((id == MouseEvent.MOUSE_DRAGGED) &&
| ((MouseEvent)event[i]).isMetaDown() &&
| >
| >!((MouseEvent)event[i]).isAltDown())
| >
| >Another combination would be to hold two buttons or the
| equivalent shift key.
| >What I mean is that clicking the left button while holding the Alt key on
| >the keyboard is the same as just clicking the middle
| >button. Unfortunately there is no Meta key on a PC running as Windows OS
| >so be warned.
| >
| >So to use a combination with both modifier keys, I would suggest using
| >this condition check:
| >if ((id == MouseEvent.MOUSE_DRAGGED) &&
| ((MouseEvent)event[i]).isMetaDown() &&
| >
| >((MouseEvent)event[i]).isAltDown())
| >
| >And to get it, hold the Alt Key on the Keyboard while holding the right
| >mouse button. this would be equivalent to holding the middle and right
| >buttons.
| >
| >I have done this because I use the left button for something completely
| >different. I use middle button for mouse translate (move), right button
| >for mouse rotate and Alt Key and right mouse button for Zoom.
| >
| >It made it easier to remember. Mibble = move, Right = rotate, and then
| >Zoom is the oddball one where you have to use both modifiers.
| >
| >This question comes up over and over again on this forum and i think that
| >Sun will eventually modify the classes so that you get to map
| the buttons
| >without having to edit the classes.
| >
| >On final tip would be to not edit the Java3D behaviors but to copy their
| >code into your workspace and configure the packages as your own so that
| >you won't ever have to worry about someone running your code on an
| >un-modified Java3D install (one without your remapped buttons).
| >
| >
| >At 03:17 PM 06/26/2000 -0400, you wrote:
| >>HI
| >>
| >>Can anyone please tell me how can i change the mouse mask being used in
| >>java3D mouse classes,
| >>for example lets say i want to enable right mouse clicking using the
| >>PickMouseBehavior class
| >>or for example the MouseRotate class
| >>
| >>thanks
| >>ben
|
| ***********************************************************************
| Eric Reiss - http://www.sigda.acm.org/Eric/
| Email: [EMAIL PROTECTED]
|
| SIGDA Internet Server Manager - http://www.sigda.acm.org/
|
| Assistant Systems Manager - School of Engineering
| University of Pittsburgh
| ***********************************************************************
| --=====================_4163046==_.ALT
| Content-Type: text/html; charset="us-ascii"
|
| <html>
| I forgot to mention that in each of the picking behaviors, there is a
| method called updateScene() that also needs to have the modifier buttons
| changed.<br>
| <br>
| The line in this method that checks the for AltDown and MetaDown should
| have the Bangs changed so that they match what you change the ones in the
| mouse behaviors to. If you look at this line in the picking
| behavior and compare it to the one in the mouse behavior, you will see
| that the Bang ("!") symbols are in the same areas. <br>
| <br>
| I hope this helps.<br>
| <br>
| <br>
| <br>
| <blockquote type=cite cite>Date: Mon, 26 Jun 2000 16:42:38 -0400<br>
| To: Ben Arbel <[EMAIL PROTECTED]><br>
| From: Eric Reiss <[EMAIL PROTECTED]><br>
| Subject: Re: [JAVA3D] PickMouseBehavior<br>
| <br>
| Each pick behavior maps to a corresponding mouse behavior, so you
| actually change the masking of the mouse buttons in the mouse behavior
| class.<br>
| <br>
| Look for the following lines in the processStimulus method within the
| mouse classes:<br>
| <br>
| if ((id == MouseEvent.MOUSE_DRAGGED) &&
| ((MouseEvent)event[i]).isMetaDown() &&<br>
| <x-tab> </x-tab><x-
| tab> </x-tab><x-tab
| > </x-tab><x-tab>&n
| bsp; </x-tab><x-tab> 
| ; </x-tab><x-tab> &n
| bsp; </x-tab>!((MouseEvent)even
| t[i]).isAltDown())<br>
| <br>
| In the above example I have remapped the mouserotate behavior so that the
| right mouse button is the one that has to be pressed. The right
| mouse button uses the MetaDown check and the middle button uses the
| AltDown check.<br>
| <br>
| So for the above case it says, is the mouse dragged, is the meta button
| (right) clicked and is the alt button (middle) NOT clicked (notice the
| bang in front of the last check)<br>
| <br>
| So the checks for the desired button would be as follows:<br>
| <br>
| Left mouse button:<br>
| if ((id == MouseEvent.MOUSE_DRAGGED) &&
| !((MouseEvent)event[i]).isMetaDown() &&<br>
| <x-tab> </x-tab><x-
| tab> </x-tab><x-tab
| > </x-tab><x-tab>&n
| bsp; </x-tab><x-tab> 
| ; </x-tab><x-tab> &n
| bsp; </x-tab>!((MouseEvent)even
| t[i]).isAltDown())<br>
| <br>
| Middle button<br>
| if ((id == MouseEvent.MOUSE_DRAGGED) &&
| !((MouseEvent)event[i]).isMetaDown() &&<br>
| <x-tab> </x-tab><x-
| tab> </x-tab><x-tab
| > </x-tab><x-tab>&n
| bsp; </x-tab><x-tab> 
| ; </x-tab><x-tab> &n
| bsp; </x-tab>((MouseEvent)event
| [i]).isAltDown())<br>
| <br>
| Right button<br>
| if ((id == MouseEvent.MOUSE_DRAGGED) &&
| ((MouseEvent)event[i]).isMetaDown() &&<br>
| <x-tab> </x-tab><x-
| tab> </x-tab><x-tab
| > </x-tab><x-tab>&n
| bsp; </x-tab><x-tab> 
| ; </x-tab><x-tab> &n
| bsp; </x-tab>!((MouseEvent)even
| t[i]).isAltDown())<br>
| <br>
| Another combination would be to hold two buttons or the equivalent shift
| key.<br>
| What I mean is that clicking the left button while holding the Alt key on
| the keyboard is the same as just clicking the middle button.
| Unfortunately there is no Meta key on a PC running as Windows OS so be
| warned.<br>
| <br>
| So to use a combination with both modifier keys, I would suggest using
| this condition check:<br>
| if ((id == MouseEvent.MOUSE_DRAGGED) &&
| ((MouseEvent)event[i]).isMetaDown() &&<br>
| <x-tab> </x-tab><x-
| tab> </x-tab><x-tab
| > </x-tab><x-tab>&n
| bsp; </x-tab><x-tab> 
| ; </x-tab><x-tab> &n
| bsp; </x-tab>((MouseEvent)event
| [i]).isAltDown())<br>
| <br>
| And to get it, hold the Alt Key on the Keyboard while holding the right
| mouse button. this would be equivalent to holding the middle and
| right buttons.<br>
| <br>
| I have done this because I use the left button for something completely
| different. I use middle button for mouse translate (move), right
| button for mouse rotate and Alt Key and right mouse button for
| Zoom.<br>
| <br>
| It made it easier to remember. Mibble = move, Right = rotate, and
| then Zoom is the oddball one where you have to use both modifiers.<br>
| <br>
| This question comes up over and over again on this forum and i think that
| Sun will eventually modify the classes so that you get to map the
| buttons without having to edit the classes.<br>
| <br>
| On final tip would be to not edit the Java3D behaviors but to copy their
| code into your workspace and configure the packages as your own so that
| you won't ever have to worry about someone running your code on an
| un-modified Java3D install (one without your remapped buttons).<br>
| <br>
| <br>
| At 03:17 PM 06/26/2000 -0400, you wrote:<br>
| <blockquote type=cite cite><font size=2>HI</font><br>
| <br>
| <font size=2>Can anyone please tell me how can i change the mouse mask
| being used in java3D mouse classes, </font><br>
| <font size=2>for example lets say i want to enable right mouse clicking
| using the PickMouseBehavior class </font><br>
| <font size=2>or for example the MouseRotate class </font><br>
| <br>
| <font size=2>thanks</font><br>
| <font size=2>ben</font></blockquote></blockquote><br>
| <div>*************************************************************
| **********</div>
| <div>Eric Reiss -
| <a href="http://www.sigda.acm.org/Eric/"
| EUDORA=AUTOURL>http://www.sigda.acm.org/Eric/</a></div>
| <div>Email: [EMAIL PROTECTED]</div>
| <br>
| <div>SIGDA Internet Server Manager -
| <a href="http://www.sigda.acm.org/"
| EUDORA=AUTOURL>http://www.sigda.acm.org/</a></div>
| <br>
| <div>Assistant Systems Manager - School of Engineering</div>
| <div>University of Pittsburgh</div>
| ***********************************************************************
| </html>
|
| --=====================_4163046==_.ALT--
|
| ------------------------------
|
| Date: Tue, 27 Jun 2000 10:03:18 +0700
| From: Tiza Iskandar <[EMAIL PROTECTED]>
| Subject: Area Surface of a 3d Shape ?
|
| Hi all,
|
| I want to know whether there is a method in Java3D that
| counts the area
| of an irregular 3d Shape ? or a way in counting the area of an
| irregular 3d
| Shape ? thanks in advanced :)
|
| Take Care and Keep Smilling!
| Tiza
|
| ------------------------------
|
| Date: Tue, 27 Jun 2000 08:58:33 +0200
| From: [EMAIL PROTECTED]
| Subject: Re: openlgl and openal
|
| hi Ron,
|
| there are several Java bindings for openGL. One of them is Magician, i was
| working with some time ago. You can use all opengL features via Java
| calls. AFAIK openAL is an open source 3D audio library for Linux.
|
| Gernot Veith
|
| janet Ges. f. interaktive Medien mbH
| Garmischer Str. 19/21
| D-81377 Muenchen
| fon: +49 (0) 89 - 54 26 21 - 19
| fax : +49 (0) 89 - 54 26 21 - 15
| mail: [EMAIL PROTECTED]
|
|
|
| [EMAIL PROTECTED]
| Sent by: Discussion To:
| [EMAIL PROTECTED]
| list for Java 3D API cc:
| <JAVA3D-INTEREST@JAV Subject:
| [JAVA3D] openlgl and openal
| A.SUN.COM>
|
|
| 26.06.00 23:32
| Please respond to
| Discussion list for
| Java 3D API
|
|
|
|
|
|
| I was wondering, I haven't been keeping track but how goes opengl
| development with java... and now with openal becoming "Known", is there
| support or will there be? Just a general ?
|
| Thanks
| Ron Petty
|
| ==================================================================
| =========
| 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".
|
| ------------------------------
|
| End of JAVA3D-INTEREST Digest - 25 Jun 2000 to 26 Jun 2000 (#2000-107)
| **********************************************************************
|
===========================================================================
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".