[JAVA3D] Join Rich Rein on Yahoo! Messenger!

2006-10-31 Thread Rich Rein


































Rich Rein wants to talk with you using the new Yahoo! Messenger:











Accept the Invitation




Free worldwide PC-to-PC calls.* All you need are speakers and a microphone (or a headset). If no one's there, leave a voicemail!



IM Windows Live Messenger friends too. Add your Windows Live friends to your Yahoo! contact list. See when they're online and IM them anytime.



Stealth settings keep you in control. Now you can get in touch on your time, by controlling who sees when you're online.


So what are you waiting for? It's free. Get Yahoo! Messenger and start connecting how you want, when you want.

























If the link above doesn't work, please go to:http://invite.msg.yahoo.com/invite?op=accept=us=0KPH8b..1WgArysHqNOpNOVeqqYUeM9hEcegxE6y5tDwX56K6XN9C7jfeBr23_.al7gGkz4lz9QRKFX5XijmUvXTV24f1gg6LCCdya3FTidhEmL1rFL5ZAAtXLGxL0rcorN7QLrMSBc-
* * Emergency 999 calling services not available on Yahoo! Messenger. Please inform others who use your  Yahoo! Messenger they must dial 999 through traditional phone lines or cell carriers.  By using Yahoo! Messenger you agree to not use PC-to-PC calling in countries where prohibited. The above features apply to the Windows version of Yahoo! Messenger.








===
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".


Re: [JAVA3D] Java3D coordinate system

2005-07-25 Thread Mike Goldwater
Try  the rotX(3.14159/2) method of your Transform3D.

Regards
___
Mike Goldwater


 -Original Message-
 From: Discussion list for Java 3D API. We have moved to
 https://java3d.dev.java.net/ [mailto:[EMAIL PROTECTED] On
 Behalf Of Zak Nixon
 Sent: 25 July 2005 00:57
 To: JAVA3D-INTEREST@JAVA.SUN.COM
 Subject: [JAVA3D] Java3D coordinate system

 In Java3D, the coordinate system is Y-up by default.
 Is there anyway to change this without having to change the
 coordinates of all my objects to that system? I need it to be Z-up
 instead.

 Thanks

 Zak

 ==
 =
 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.

===
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.


Re: [JAVA3D] Java3D coordinate system

2005-07-25 Thread Zak Nixon
And that would be the Transform3D of what object ?
The parent node of everything I place in the scene ?

Zak

- Original Message -
From: Mike Goldwater [EMAIL PROTECTED]
To: JAVA3D-INTEREST@JAVA.SUN.COM
Sent: Monday, July 25, 2005 2:46 AM
Subject: Re: [JAVA3D] Java3D coordinate system


 Try  the rotX(3.14159/2) method of your Transform3D.

 Regards
 ___
 Mike Goldwater


  -Original Message-
  From: Discussion list for Java 3D API. We have moved to
  https://java3d.dev.java.net/ [mailto:[EMAIL PROTECTED] On
  Behalf Of Zak Nixon
  Sent: 25 July 2005 00:57
  To: JAVA3D-INTEREST@JAVA.SUN.COM
  Subject: [JAVA3D] Java3D coordinate system
 
  In Java3D, the coordinate system is Y-up by default.
  Is there anyway to change this without having to change the
  coordinates of all my objects to that system? I need it to be Z-up
  instead.
 
  Thanks
 
  Zak
 
 
==
  =
  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.


===
 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.

===
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.


Re: [JAVA3D] Java3D coordinate system

2005-07-25 Thread Mike Goldwater
 And that would be the Transform3D of what object ?
 The parent node of everything I place in the scene ?

This would be the transform of everything which is not part of the viewing
platform. If things appear upside-down try -Math.PI/2.

Regards
___
Mike Goldwater


 -Original Message-
 From: Discussion list for Java 3D API. We have moved to
 https://java3d.dev.java.net/ [mailto:[EMAIL PROTECTED] On
 Behalf Of Zak Nixon
 Sent: 25 July 2005 09:42
 To: JAVA3D-INTEREST@JAVA.SUN.COM
 Subject: Re: [JAVA3D] Java3D coordinate system

 And that would be the Transform3D of what object ?
 The parent node of everything I place in the scene ?

 Zak

 - Original Message -
 From: Mike Goldwater [EMAIL PROTECTED]
 To: JAVA3D-INTEREST@JAVA.SUN.COM
 Sent: Monday, July 25, 2005 2:46 AM
 Subject: Re: [JAVA3D] Java3D coordinate system


  Try  the rotX(3.14159/2) method of your Transform3D.
 
  Regards
  ___
  Mike Goldwater
 
 
   -Original Message-
   From: Discussion list for Java 3D API. We have moved to
   https://java3d.dev.java.net/ [mailto:[EMAIL PROTECTED] On
   Behalf Of Zak Nixon
   Sent: 25 July 2005 00:57
   To: JAVA3D-INTEREST@JAVA.SUN.COM
   Subject: [JAVA3D] Java3D coordinate system
  
   In Java3D, the coordinate system is Y-up by default.
   Is there anyway to change this without having to change the
   coordinates of all my objects to that system? I need it to be Z-up
   instead.
  
   Thanks
  
   Zak
  
  
 ==
   =
   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.
 
 
 ==
 =
  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.

 ==
 =
 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.

===
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.


Re: [JAVA3D] Java3D coordinate system

2005-07-25 Thread Zak Nixon
Ok, say I do that. When I do any picking actions, for instance, picking
verticies of an object
They will still be in the original coordinate system, right? Would I have to
transform those pick
points also ?

Zak


- Original Message -
From: Mike Goldwater [EMAIL PROTECTED]
To: JAVA3D-INTEREST@JAVA.SUN.COM
Sent: Monday, July 25, 2005 4:38 AM
Subject: Re: [JAVA3D] Java3D coordinate system


  And that would be the Transform3D of what object ?
  The parent node of everything I place in the scene ?

 This would be the transform of everything which is not part of the viewing
 platform. If things appear upside-down try -Math.PI/2.

 Regards
 ___
 Mike Goldwater


  -Original Message-
  From: Discussion list for Java 3D API. We have moved to
  https://java3d.dev.java.net/ [mailto:[EMAIL PROTECTED] On
  Behalf Of Zak Nixon
  Sent: 25 July 2005 09:42
  To: JAVA3D-INTEREST@JAVA.SUN.COM
  Subject: Re: [JAVA3D] Java3D coordinate system
 
  And that would be the Transform3D of what object ?
  The parent node of everything I place in the scene ?
 
  Zak
 
  - Original Message -
  From: Mike Goldwater [EMAIL PROTECTED]
  To: JAVA3D-INTEREST@JAVA.SUN.COM
  Sent: Monday, July 25, 2005 2:46 AM
  Subject: Re: [JAVA3D] Java3D coordinate system
 
 
   Try  the rotX(3.14159/2) method of your Transform3D.
  
   Regards
   ___
   Mike Goldwater
  
  
-Original Message-
From: Discussion list for Java 3D API. We have moved to
https://java3d.dev.java.net/ [mailto:[EMAIL PROTECTED]
On
Behalf Of Zak Nixon
Sent: 25 July 2005 00:57
To: JAVA3D-INTEREST@JAVA.SUN.COM
Subject: [JAVA3D] Java3D coordinate system
   
In Java3D, the coordinate system is Y-up by default.
Is there anyway to change this without having to change the
coordinates of all my objects to that system? I need it to be Z-up
instead.
   
Thanks
   
Zak
   
   
 
==
=
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.
  
  
 
==
  =
   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.
 
 
==
  =
  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.


===
 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.

===
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.


[JAVA3D] Java3D coordinate system

2005-07-24 Thread Zak Nixon
In Java3D, the coordinate system is Y-up by default.
Is there anyway to change this without having to change the
coordinates of all my objects to that system? I need it to be Z-up instead.

Thanks

Zak

===
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.


[JAVA3D] MouseOver detection - Tooltip in Canvas3D over a Shape3D

2005-07-14 Thread Omer Haybat
Hello,
by my applet user can select a shape3D object from the 3d-scene. i just
want to change the mouse-cursor to pick-cursor which i self defined when
the cursor over a pickable shape3d object is.
Any ideas ?
Thanks a lot.

===
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.


[JAVA3D] Notice : java3d-interest list is now closed

2005-07-14 Thread Chien Yang

This list is now closed. We will be moving the list to
[EMAIL PROTECTED] tomorrow or Monday.
Thank you for your interest in Java 3D.

- Java 3D Team
 Sun Microsystems Inc.

===
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.


[JAVA3D] Problem with openGl - Please help

2005-07-14 Thread Saeed Ansari
Hi all,
I have written an application using java3d. I want to run this application under Fedora with 
nvidia utra 6800 . But when I am installing the driver of nvidia the shapes that created with java3d becomes black, and there is no shade.
Iam using java3d OpenGL version.
Any help?

REgards,
Saeed
 Start your day with Yahoo! - make it your home page 
===
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".

[JAVA3D] REMINDER: java3d-interest list is now closed

2005-07-14 Thread Chien Yang

This list is now closed. We will be moving the list to
[EMAIL PROTECTED] tomorrow or Monday.

thanks,

Java 3D Team.

===
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.


[JAVA3D] REMINDER: java3d-interest list is being moved

2005-07-13 Thread Chien Yang

This is a reminder that this old Java 3D interest list will be suspended
as of this Friday, July 15. We will then automatically move all
subscribers from the old list to the new [EMAIL PROTECTED]
mailing list. See below for details.

Java 3D Team.


Kevin Rushforth wrote:

It's been one year since we launched Java 3D as a community source
project on java.net. As most of you know by now, the Java 3D team no
longer reads this old java3d-interest@java.sun.com mailing list. In
order to reduce the amount of time we spend on list maintenance, and
to better serve the needs of the community, we will decommission the
java3d-interest@java.sun.com mailing list, effective July 15.

We plan to automatically move all subscribers from the old list to the
new [EMAIL PROTECTED] mailing list. Regrettably, this may
lead to some readers getting duplicate messages, if they are already
subscribed to the new list under a different e-mail address. We will
respond to your requests to remove any duplicate e-mail addresses, or
to unsubscribe you, but we would ask for your patience during the
transition. Alternatively, you can unsubscribe from the old
java3d-interest@java.sun.com list before the transition to avoid this
problem.

We invite those who wish to do so, to come over to the new forum /
interest list now; instructions to do this are included below. Or you
can simply wait until we move the list over en masse. If you do
subscribe to the new list before July 15, you may want to unsubscribe
from the old list to avoid being subscribed twice when we move the
list. Please let us know if you have any questions concerning
this. Note that this transition will not affect the java3d-interest
archive, which we will leave in place for the foreseeable future.

--
Kevin Rushforth [EMAIL PROTECTED]
Chien Yang  [EMAIL PROTECTED]

Sun Microsystems



SUBSCRIBING TO THE NEW JAVA 3D DISCUSSION FORUM / MAILING LIST

The new Java 3D interest list is available either as a discussion
forum (which is what most of the community uses) or as a mailing
list. Messages posted to one are cross-posted to the other
automatically.

1. To participate in the discussion forum, go to the following link
and create a JavaDesktop forum account (you don't need an account if
you just want to read the forum, but the tools work better if you do,
since it keeps track of which threads you have read):

http://www.javadesktop.org/forums/account!default.jspa

The URL for the Java 3D forum on javadesktop.org is:

http://www.javadesktop.org/forums/forum.jspa?forumID=55

2. If you prefer to send/receive messages via a mailing list, you will
need follow these steps:

  A. Create a java.net account if you don't already have one:
 http://www.dev.java.net/servlets/Join

  B. Login to java.net using your username/password:
 http://www.dev.java.net/servlets/TLogin

  C. Go to the Mailing Lists page of the parent java3d
 project (java3d.dev.java.net) and subscribe to the
 [EMAIL PROTECTED] mailing list:
 http://java3d.dev.java.net/servlets/ProjectMailingListList

For a description of the various mailing lists and the forum, go here:

http://java3d.dev.java.net/#Feedback_and_Discussion

For information on how you can contribute to the Java 3D projects on
java.net, go here:

http://java3d.dev.java.net/contribute.html

===
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.

===
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.


Re: [JAVA3D] REMINDER: java3d-interest list is being moved

2005-07-12 Thread Christophe LOREK
actually, the two lists are just the same, with posters having the bad habit
to post their questions on both mailing lists, the difference lying in the
quality of answers (I'll just say in that matter, they did the right choice)

I was wondering if anybody else felt the same way!  I'm not actively
developing with Java 3D right now, but the light traffic on this list was
pretty unobtrusive and matched my interest level so I never unsubscribed.

I guess we'll see how the new list works out.

===
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.


[JAVA3D] Obtain screen coordinates from 3D objects

2005-07-12 Thread Hennie Kotze
Hello again people

I need to know how one goes about obtaining the screen x,y coordinates from
a visible 3D object in the scene. Your help will be greatly appreciated! Really!

===
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.


[JAVA3D] Java 3d over solaris

2005-07-12 Thread Jose Valentim Dos Santos Filho
=
Hi all, i had java3D over Solaris and it was work without problems. Now i have 
Solaris 9, but the java3D doesn't work!
I putted the two files libJ3D.so and libJ3DUtils.so in the directory:
/local/valentim_local/jdk1.5.0_03/jre/lib/sparc

Can you help me ?
look the output when i try to execute the applet demo:

java.lang.UnsatisfiedLinkError: 
/local/valentim_local/jdk1.5.0_03/jre/lib/sparc/libJ3D.so: ld.so.1: 
appletviewer: fatal: /local/valentim_local/jdk1.5.0_03/jre/lib/sparc/libJ3D.so: 
wrong ELF class: ELFCLASS64
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:992)
at javax.media.j3d.MasterControl$22.run(MasterControl.java:889)
at java.security.AccessController.doPrivileged(Native Method)
at javax.media.j3d.MasterControl.loadLibraries(MasterControl.java:886)
at javax.media.j3d.VirtualUniverse.clinit(VirtualUniverse.java:229)
at HelloUniverse.init(HelloUniverse.java:94)
at sun.applet.AppletPanel.run(AppletPanel.java:374)
at java.lang.Thread.run(Thread.java:595)

Thank you

José Valentim.
==
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.

===
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.


[JAVA3D] Coordinates help

2005-07-11 Thread Eli Dylan Lorimer
Hi J3D Studs,I have a simple wireframe cube displayed (extends Shape3D).Using the following, I can programmatically get at the coordinates:Point3d[] coordinates = new Point3d[24];for(int n = 0; n  24; n++){ coordinates[n] = new Point3d();}IndexedQuadArray geom = (IndexedQuadArray).getGeometry(); geom.getCoordinates(0, coordinates);System.out.println("coordinateFirst = "+coordinates[0].toString());I've allowed this cube to be transformed by the mouse - moved around, scaled, and rotated.No matter what the state of the cube though, they coordinates I get in the above code are the same. I can't for the life of me figure out how to get the real coordinates of this cube. If I've enlarged the cube to be absolutely enormous, I still get the same coords as if it is really small.Please, anyone...how can I get the true coords of this cube?cheers.===
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".


[JAVA3D] REMINDER: java3d-interest list is being moved

2005-07-11 Thread Chien Yang

This is a reminder that this old Java 3D interest list will be suspended
as of this Friday, July 15. We will then automatically move all
subscribers from the old list to the new [EMAIL PROTECTED]
mailing list. See below for details.

Java 3D Team.


Kevin Rushforth wrote:


It's been one year since we launched Java 3D as a community source
project on java.net. As most of you know by now, the Java 3D team no
longer reads this old java3d-interest@java.sun.com mailing list. In
order to reduce the amount of time we spend on list maintenance, and
to better serve the needs of the community, we will decommission the
java3d-interest@java.sun.com mailing list, effective July 15.

We plan to automatically move all subscribers from the old list to the
new [EMAIL PROTECTED] mailing list. Regrettably, this may
lead to some readers getting duplicate messages, if they are already
subscribed to the new list under a different e-mail address. We will
respond to your requests to remove any duplicate e-mail addresses, or
to unsubscribe you, but we would ask for your patience during the
transition. Alternatively, you can unsubscribe from the old
java3d-interest@java.sun.com list before the transition to avoid this
problem.

We invite those who wish to do so, to come over to the new forum /
interest list now; instructions to do this are included below. Or you
can simply wait until we move the list over en masse. If you do
subscribe to the new list before July 15, you may want to unsubscribe
from the old list to avoid being subscribed twice when we move the
list. Please let us know if you have any questions concerning
this. Note that this transition will not affect the java3d-interest
archive, which we will leave in place for the foreseeable future.

--
Kevin Rushforth [EMAIL PROTECTED]
Chien Yang  [EMAIL PROTECTED]

Sun Microsystems



SUBSCRIBING TO THE NEW JAVA 3D DISCUSSION FORUM / MAILING LIST

The new Java 3D interest list is available either as a discussion
forum (which is what most of the community uses) or as a mailing
list. Messages posted to one are cross-posted to the other
automatically.

1. To participate in the discussion forum, go to the following link
and create a JavaDesktop forum account (you don't need an account if
you just want to read the forum, but the tools work better if you do,
since it keeps track of which threads you have read):

http://www.javadesktop.org/forums/account!default.jspa

The URL for the Java 3D forum on javadesktop.org is:

http://www.javadesktop.org/forums/forum.jspa?forumID=55

2. If you prefer to send/receive messages via a mailing list, you will
need follow these steps:

   A. Create a java.net account if you don't already have one:
  http://www.dev.java.net/servlets/Join

   B. Login to java.net using your username/password:
  http://www.dev.java.net/servlets/TLogin

   C. Go to the Mailing Lists page of the parent java3d
  project (java3d.dev.java.net) and subscribe to the
  [EMAIL PROTECTED] mailing list:
  http://java3d.dev.java.net/servlets/ProjectMailingListList

For a description of the various mailing lists and the forum, go here:

http://java3d.dev.java.net/#Feedback_and_Discussion

For information on how you can contribute to the Java 3D projects on
java.net, go here:

http://java3d.dev.java.net/contribute.html

===

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.


===
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.


Re: [JAVA3D] REMINDER: java3d-interest list is being moved

2005-07-11 Thread Mona Wong-Barnum
 This is a reminder that this old Java 3D interest list will be suspended
 as of this Friday, July 15.

End of an era...it was nice being on this list and see you all on the
new one (:

cheers,
Mona

==
  Mona Wong-Barnum
  National Center for Microscopy and Imaging Research
  University of California, San Diego
  http://ncmir.ucsd.edu/

  If you don't have time to do it right, will you have time
  to do it over?
 -- unknown
==

===
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.


Re: [JAVA3D] REMINDER: java3d-interest list is being moved

2005-07-11 Thread ZACZEK, MARIUSZ P. (MARIO) (JSC-DM) (NASA)
I hate moving...I have so much damn baggage (hehe)

On the plus side, we'll get more SPAM since we get to be
on two email lists. Yes, I see the irony that my email right
now is itself SPAM  ;) ...see, it has started already.


-Original Message-
From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED]
On Behalf Of Mona Wong-Barnum
Sent: Monday, July 11, 2005 4:16 PM
To: JAVA3D-INTEREST@JAVA.SUN.COM
Subject: Re: [JAVA3D] REMINDER: java3d-interest list is being moved

 This is a reminder that this old Java 3D interest list will be
 suspended as of this Friday, July 15.

End of an era...it was nice being on this list and see you all on
the new one (:

cheers,
Mona

==
  Mona Wong-Barnum
  National Center for Microscopy and Imaging Research
  University of California, San Diego
  http://ncmir.ucsd.edu/

  If you don't have time to do it right, will you have time
  to do it over?
 -- unknown
==

===
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.

===
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.


Re: [JAVA3D] Coordinates help

2005-07-11 Thread René Schulz
have a look onto  getLocalToVworld(Transform3D);

René
(another beginner)

Eli Dylan Lorimer wrote:

 Hi J3D Studs, I have a simple wireframe cube displayed (extends
 Shape3D).

 Using the following, I can programmatically get at the coordinates:
  Point3d[] coordinates = new Point3d[24]; for(int
 n = 0; n  24; n++) { coordinates[n] = new Point3d(); }
 IndexedQuadArray geom = (IndexedQuadArray).getGeometry();
 geom.getCoordinates(0, coordinates);

 System.out.println(coordinateFirst = +coordinates[0].toString());
 

 I've allowed this cube to be transformed by the mouse - moved
 around, scaled, and rotated.

 No matter what the state of the cube though, they coordinates I get
 in the above code are the same. I can't for the life of me figure
 out how to get the real coordinates of this cube. If I've enlarged
 the cube to be absolutely enormous, I still get the same coords as
 if it is really small.

 Please, anyone...how can I get the true coords of this cube?

 cheers.

 ===


 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.

===
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.


Re: [JAVA3D] REMINDER: java3d-interest list is being moved

2005-07-11 Thread John Wright

Actually I regret they are merging the lists.  I was enjoying the light
traffic and activity.  I really don't have time to read (and delete)
more posts.  I might actually have to unsubscribe now.

- John Wright
Starfire Research

Mona Wong-Barnum wrote:

This is a reminder that this old Java 3D interest list will be suspended
as of this Friday, July 15.



End of an era...it was nice being on this list and see you all on the
new one (:

cheers,
Mona


===
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.


Re: [JAVA3D] REMINDER: java3d-interest list is being moved

2005-07-11 Thread Mona Wong-Barnum
Hi John:

 Actually I regret they are merging the lists.  I was enjoying the light
 traffic and activity.  I really don't have time to read (and delete)
 more posts.  I might actually have to unsubscribe now.

I wanted to thank you publicly for all your postings on the Java 3D
list.  I thought you were one of the few knowledge people who were always very
helpful to others.  I appreciated having you on the list (:

cheers,
Mona

==
  Mona Wong-Barnum
  National Center for Microscopy and Imaging Research
  University of California, San Diego
  http://ncmir.ucsd.edu/

  If you don't have time to do it right, will you have time
  to do it over?
 -- unknown
==

===
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.


Re: [JAVA3D] REMINDER: java3d-interest list is being moved

2005-07-11 Thread Mark Hood
 From: John Wright [mailto:[EMAIL PROTECTED]
 Sent: Monday, July 11, 2005 10:42 PM
 To: JAVA3D-INTEREST@JAVA.SUN.COM
 Subject: Re: [JAVA3D] REMINDER: java3d-interest list is being moved

 Actually I regret they are merging the lists.  I was enjoying the light
 traffic and activity.  I really don't have time to read (and delete)
 more posts.  I might actually have to unsubscribe now.

I was wondering if anybody else felt the same way!  I'm not actively developing 
with Java 3D right now, but the light traffic on this list was pretty 
unobtrusive and matched my interest level so I never unsubscribed.

I guess we'll see how the new list works out.

-- Mark Hood

===
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.


Re: [JAVA3D] drawAndFlushImage flickering

2005-07-10 Thread John Wright

That's great news Hennie.  I'm sure the community would appreciate
simplified sample code if you can provide it (I'll host it on my
webserver so it isn't lost to the community if you provide it).

- John Wright
Starfire Research

Hennie Kotze wrote:

Hello again

It gives me great pleasure to tell you that I have solved the problem of the
flickering overlay. I now have a fully functional, fast way of creating
crisp, scaleable 2D graphics by drawing directly onto the Canvas3D. The
48fps without overlay now drops to 42 +-5fps with overlay. Neither animation
(behavior) nor drawing code is very optimized, but can easily be fixed...so,
overall, I'm a happy man. I can't stop looking at it :)

The solution, though very simple, seemed to elude me as it does others. I'll
post snippets later on when I'm satisfied with the sequence of things. FYI -
It's running as an Applet on a layer in a browser (Firefox). The applet
implements an interface to network with two other applets on the same page
(one of which is another 3D scene). It's going well! Java3D pulled through
and gave me the tools I needed for this rather complex undertaking.

Hennie

PS:
It's 3am and I am coding. Have I become.a geek?!

===
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.



===
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.


Re: [JAVA3D] Picking Behaviors in Java3D

2005-07-10 Thread Todd L. Peters
John-

I still have the problem where it cannot find anything.

SceneGraphPath[] path = null;
path = mPickGroup.pickAll(ray);

path.length is equal to zero.

Do I have to set any attributes on the group?  On the derived shape3d
objects?  Can Java3D identify an object derived from Shape3D as described
below for picking?  Does it matter what group I insert the Highlight
Behavior into?

Thanks,
Todd


-Original Message-
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED] Behalf Of John Wright
Sent: Saturday, July 09, 2005 7:17 PM
To: JAVA3D-INTEREST@JAVA.SUN.COM
Subject: Re: [JAVA3D] Picking Behaviors in Java3D


Todd,

I've found that picking was not reliable unless you do a pickAll and
then loop through the scene graph path array returned (to find your
closest hit).  Clumsy but it works.

- John Wright
Starfire Research

Todd L. Peters wrote:
 I am new to Java 3D and am having trouble with picking behaviors.  The
 tutorial is not really clear to me and the examples on the web seem to use
 deprecated methods.  I think I have the basic concept correct, but things
 do not seem to be working out.

 I have a branchgroup (not the top level group) that has a number of
 children.  These children are all of one class that is derived from
 Shape3D.  The geometry of the object is set to a PointArray with one
 point.  In short, the branchgroup contains a number of points.

 I pass the branchgroup and the canvas3D object to the following behavior:

 public class Highlight extends Behavior {

private Canvas3D mCanvas;
private BranchGroup mPickGroup;
private static ColoringAttributes mColoringAttributes;
private static Appearance mHighlightAppearance;
private int mX,mY;

 /** Creates a new instance of Highlight */
public Highlight(Canvas3D cv3d, BranchGroup bg) {

 mCanvas = cv3d;
 mPickGroup = bg;
 mColoringAttributes = new ColoringAttributes();
 mColoringAttributes.setColor(1.0f, 0.0f, 0.0f);
 mHighlightAppearance = new Appearance();
 mHighlightAppearance.setColoringAttributes(mColoringAttributes);

 }

 /**
  * initialize the Behavior
  * set initial wakeup condition
  * called when behavior becomes live
  */
 public void initialize(){
 // set initial wakeup condition
 this.wakeupOn(new WakeupOnAWTEvent(MouseEvent.MOUSE_MOVED));
 return;
 }


 protected void processAWTEvent(AWTEvent e) {
 MouseEvent evt = (MouseEvent)e;
 mX = evt.getX();
 mY = evt.getY();
 return;
 }

 // called by Java 3D when appropriate stimulus occurs
 public void processStimulus(Enumeration criteria){

 WakeupCondition cond;
 AWTEvent event;

 cond = (WakeupCondition)criteria.nextElement();
 event = ((WakeupOnAWTEvent)cond).getAWTEvent()[0];
 processAWTEvent(event);

 PickRay ray = createPickRay(mCanvas, mX, mY);
 SceneGraphPath path = null;
 path = mPickGroup.pickClosest(ray);
 if (path != null) {
 Shape3D s = (Shape3D)path.getObject();
 if (s != null) {
 s.setAppearance(mHighlightAppearance);
 }
 }
 this.wakeupOn(new WakeupOnAWTEvent(MouseEvent.MOUSE_MOVED));
 return;


 }

 private PickRay createPickRay(Canvas3D canvas, int x, int y)   {
 Point3d eye_pos = new Point3d();
 Point3d mouse_pos = new Point3d();

 canvas.getCenterEyeInImagePlate(eye_pos);
 canvas.getPixelLocationInImagePlate(x, y, mouse_pos);

 Transform3D motion = new Transform3D();
 canvas.getImagePlateToVworld(motion);
 motion.transform(eye_pos);
 motion.transform(mouse_pos);

 Vector3d direction = new Vector3d(mouse_pos);
 direction.sub(eye_pos);

 return new PickRay(eye_pos, direction);
 }

 }

 It is initialized as such:

 Highlight mousemoveBehavior = new Highlight(cv, bgNodes);
 mousemoveBehavior.setSchedulingBounds(new BoundingSphere());
 bg.addChild(mousemoveBehavior);

 Where bgNodes is the aforementioned branchgroup with all the points and bg
 is the top-level branchgroup.

 However, the Highlight behavior does not seem to detect any geometry.  If
 I assign the behavior to the top-level branchgroup, it appears to detect
 other geometry in the scene (although I have trouble following the
 debugger output).

 Can anyone help clarify how I should be doing this?

 Regards,
 Todd


===
 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.


===
To unsubscribe, send email to [EMAIL PROTECTED

Re: [JAVA3D] Picking Behaviors in Java3D

2005-07-10 Thread John Wright

Todd,

You have to set the objects you want to pick as pickable.  If they
aren't set as pickable they won't trigger a pick.

- John Wright
Starfire Research

Todd L. Peters wrote:

John-

I still have the problem where it cannot find anything.

SceneGraphPath[] path = null;
path = mPickGroup.pickAll(ray);

path.length is equal to zero.

Do I have to set any attributes on the group?  On the derived shape3d
objects?  Can Java3D identify an object derived from Shape3D as described
below for picking?  Does it matter what group I insert the Highlight
Behavior into?

Thanks,
Todd


-Original Message-
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED] Behalf Of John Wright
Sent: Saturday, July 09, 2005 7:17 PM
To: JAVA3D-INTEREST@JAVA.SUN.COM
Subject: Re: [JAVA3D] Picking Behaviors in Java3D


Todd,

I've found that picking was not reliable unless you do a pickAll and
then loop through the scene graph path array returned (to find your
closest hit).  Clumsy but it works.

- John Wright
Starfire Research

Todd L. Peters wrote:


I am new to Java 3D and am having trouble with picking behaviors.  The
tutorial is not really clear to me and the examples on the web seem to use
deprecated methods.  I think I have the basic concept correct, but things
do not seem to be working out.

I have a branchgroup (not the top level group) that has a number of
children.  These children are all of one class that is derived from
Shape3D.  The geometry of the object is set to a PointArray with one
point.  In short, the branchgroup contains a number of points.

I pass the branchgroup and the canvas3D object to the following behavior:

public class Highlight extends Behavior {

  private Canvas3D mCanvas;
  private BranchGroup mPickGroup;
  private static ColoringAttributes mColoringAttributes;
  private static Appearance mHighlightAppearance;
  private int mX,mY;

   /** Creates a new instance of Highlight */
  public Highlight(Canvas3D cv3d, BranchGroup bg) {

   mCanvas = cv3d;
   mPickGroup = bg;
   mColoringAttributes = new ColoringAttributes();
   mColoringAttributes.setColor(1.0f, 0.0f, 0.0f);
   mHighlightAppearance = new Appearance();
   mHighlightAppearance.setColoringAttributes(mColoringAttributes);

   }

   /**
* initialize the Behavior
* set initial wakeup condition
* called when behavior becomes live
*/
   public void initialize(){
   // set initial wakeup condition
   this.wakeupOn(new WakeupOnAWTEvent(MouseEvent.MOUSE_MOVED));
   return;
   }


   protected void processAWTEvent(AWTEvent e) {
   MouseEvent evt = (MouseEvent)e;
   mX = evt.getX();
   mY = evt.getY();
   return;
   }

   // called by Java 3D when appropriate stimulus occurs
   public void processStimulus(Enumeration criteria){

   WakeupCondition cond;
   AWTEvent event;

   cond = (WakeupCondition)criteria.nextElement();
   event = ((WakeupOnAWTEvent)cond).getAWTEvent()[0];
   processAWTEvent(event);

   PickRay ray = createPickRay(mCanvas, mX, mY);
   SceneGraphPath path = null;
   path = mPickGroup.pickClosest(ray);
   if (path != null) {
   Shape3D s = (Shape3D)path.getObject();
   if (s != null) {
   s.setAppearance(mHighlightAppearance);
   }
   }
   this.wakeupOn(new WakeupOnAWTEvent(MouseEvent.MOUSE_MOVED));
   return;


   }

   private PickRay createPickRay(Canvas3D canvas, int x, int y)   {
   Point3d eye_pos = new Point3d();
   Point3d mouse_pos = new Point3d();

   canvas.getCenterEyeInImagePlate(eye_pos);
   canvas.getPixelLocationInImagePlate(x, y, mouse_pos);

   Transform3D motion = new Transform3D();
   canvas.getImagePlateToVworld(motion);
   motion.transform(eye_pos);
   motion.transform(mouse_pos);

   Vector3d direction = new Vector3d(mouse_pos);
   direction.sub(eye_pos);

   return new PickRay(eye_pos, direction);
   }

}

It is initialized as such:

   Highlight mousemoveBehavior = new Highlight(cv, bgNodes);
   mousemoveBehavior.setSchedulingBounds(new BoundingSphere());
   bg.addChild(mousemoveBehavior);

Where bgNodes is the aforementioned branchgroup with all the points and bg
is the top-level branchgroup.

However, the Highlight behavior does not seem to detect any geometry.  If
I assign the behavior to the top-level branchgroup, it appears to detect
other geometry in the scene (although I have trouble following the
debugger output).

Can anyone help clarify how I should be doing this?

Regards,
Todd




===


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.




===
To unsubscribe

Re: [JAVA3D] Picking Behaviors in Java3D

2005-07-10 Thread Todd L. Peters
 event;

cond = (WakeupCondition)criteria.nextElement();
event = ((WakeupOnAWTEvent)cond).getAWTEvent()[0];
processAWTEvent(event);

PickRay ray = createPickRay(mCanvas, mX, mY);
SceneGraphPath[] path = null;
path = mPickGroup.pickAll(ray);
if (path != null) {
Shape3D s = (Shape3D)path[0].getObject();
if (s != null) {
s.setAppearance(mHighlightAppearance);

}
}
this.wakeupOn(new WakeupOnAWTEvent(MouseEvent.MOUSE_MOVED));
return;


}

private PickRay createPickRay(Canvas3D canvas, int x, int y)   {
Point3d eye_pos = new Point3d();
Point3d mouse_pos = new Point3d();

canvas.getCenterEyeInImagePlate(eye_pos);
canvas.getPixelLocationInImagePlate(x, y, mouse_pos);

Transform3D motion = new Transform3D();
canvas.getImagePlateToVworld(motion);
motion.transform(eye_pos);
motion.transform(mouse_pos);

Vector3d direction = new Vector3d(mouse_pos);
direction.sub(eye_pos);

return new PickRay(eye_pos, direction);
}

}

-Original Message-
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED] Behalf Of John Wright
Sent: Sunday, July 10, 2005 10:34 AM
To: JAVA3D-INTEREST@JAVA.SUN.COM
Subject: Re: [JAVA3D] Picking Behaviors in Java3D


Todd,

You have to set the objects you want to pick as pickable.  If they
aren't set as pickable they won't trigger a pick.

- John Wright
Starfire Research

Todd L. Peters wrote:
 John-

 I still have the problem where it cannot find anything.

 SceneGraphPath[] path = null;
 path = mPickGroup.pickAll(ray);

 path.length is equal to zero.

 Do I have to set any attributes on the group?  On the derived shape3d
 objects?  Can Java3D identify an object derived from Shape3D as described
 below for picking?  Does it matter what group I insert the Highlight
 Behavior into?

 Thanks,
 Todd


 -Original Message-
 From: Discussion list for Java 3D API
 [mailto:[EMAIL PROTECTED] Behalf Of John Wright
 Sent: Saturday, July 09, 2005 7:17 PM
 To: JAVA3D-INTEREST@JAVA.SUN.COM
 Subject: Re: [JAVA3D] Picking Behaviors in Java3D


 Todd,

 I've found that picking was not reliable unless you do a pickAll and
 then loop through the scene graph path array returned (to find your
 closest hit).  Clumsy but it works.

 - John Wright
 Starfire Research

 Todd L. Peters wrote:

I am new to Java 3D and am having trouble with picking behaviors.  The
tutorial is not really clear to me and the examples on the web seem to use
deprecated methods.  I think I have the basic concept correct, but things
do not seem to be working out.

I have a branchgroup (not the top level group) that has a number of
children.  These children are all of one class that is derived from
Shape3D.  The geometry of the object is set to a PointArray with one
point.  In short, the branchgroup contains a number of points.

I pass the branchgroup and the canvas3D object to the following behavior:

public class Highlight extends Behavior {

   private Canvas3D mCanvas;
   private BranchGroup mPickGroup;
   private static ColoringAttributes mColoringAttributes;
   private static Appearance mHighlightAppearance;
   private int mX,mY;

/** Creates a new instance of Highlight */
   public Highlight(Canvas3D cv3d, BranchGroup bg) {

mCanvas = cv3d;
mPickGroup = bg;
mColoringAttributes = new ColoringAttributes();
mColoringAttributes.setColor(1.0f, 0.0f, 0.0f);
mHighlightAppearance = new Appearance();
mHighlightAppearance.setColoringAttributes(mColoringAttributes);

}

/**
 * initialize the Behavior
 * set initial wakeup condition
 * called when behavior becomes live
 */
public void initialize(){
// set initial wakeup condition
this.wakeupOn(new WakeupOnAWTEvent(MouseEvent.MOUSE_MOVED));
return;
}


protected void processAWTEvent(AWTEvent e) {
MouseEvent evt = (MouseEvent)e;
mX = evt.getX();
mY = evt.getY();
return;
}

// called by Java 3D when appropriate stimulus occurs
public void processStimulus(Enumeration criteria){

WakeupCondition cond;
AWTEvent event;

cond = (WakeupCondition)criteria.nextElement();
event = ((WakeupOnAWTEvent)cond).getAWTEvent()[0];
processAWTEvent(event);

PickRay ray = createPickRay(mCanvas, mX, mY);
SceneGraphPath path = null;
path = mPickGroup.pickClosest(ray);
if (path != null) {
Shape3D s = (Shape3D)path.getObject();
if (s != null) {
s.setAppearance(mHighlightAppearance);
}
}
this.wakeupOn(new WakeupOnAWTEvent(MouseEvent.MOUSE_MOVED));
return;


}

private PickRay createPickRay(Canvas3D canvas, int x, int y)   {
Point3d eye_pos = new Point3d

Re: [JAVA3D] Picking Behaviors in Java3D

2005-07-10 Thread Todd L. Peters
I got it now.

Apparently a PickRay is virtually impossible to intersect with a point, the
answer is to use a larger pickshape.

-Todd

===
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.


Re: [JAVA3D] Picking Behaviors in Java3D

2005-07-10 Thread John Wright

Todd,

I'm glad you got it.  Yes, a point is extremely hard to intersect with!

- John Wright
Starfire Research

Todd L. Peters wrote:

I got it now.

Apparently a PickRay is virtually impossible to intersect with a point, the
answer is to use a larger pickshape.

-Todd


===
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.


[JAVA3D] Picking Behaviors in Java3D

2005-07-09 Thread Todd L. Peters
I am new to Java 3D and am having trouble with picking behaviors.  The
tutorial is not really clear to me and the examples on the web seem to use
deprecated methods.  I think I have the basic concept correct, but things
do not seem to be working out.

I have a branchgroup (not the top level group) that has a number of
children.  These children are all of one class that is derived from
Shape3D.  The geometry of the object is set to a PointArray with one
point.  In short, the branchgroup contains a number of points.

I pass the branchgroup and the canvas3D object to the following behavior:

public class Highlight extends Behavior {

   private Canvas3D mCanvas;
   private BranchGroup mPickGroup;
   private static ColoringAttributes mColoringAttributes;
   private static Appearance mHighlightAppearance;
   private int mX,mY;

/** Creates a new instance of Highlight */
   public Highlight(Canvas3D cv3d, BranchGroup bg) {

mCanvas = cv3d;
mPickGroup = bg;
mColoringAttributes = new ColoringAttributes();
mColoringAttributes.setColor(1.0f, 0.0f, 0.0f);
mHighlightAppearance = new Appearance();
mHighlightAppearance.setColoringAttributes(mColoringAttributes);

}

/**
 * initialize the Behavior
 * set initial wakeup condition
 * called when behavior becomes live
 */
public void initialize(){
// set initial wakeup condition
this.wakeupOn(new WakeupOnAWTEvent(MouseEvent.MOUSE_MOVED));
return;
}


protected void processAWTEvent(AWTEvent e) {
MouseEvent evt = (MouseEvent)e;
mX = evt.getX();
mY = evt.getY();
return;
}

// called by Java 3D when appropriate stimulus occurs
public void processStimulus(Enumeration criteria){

WakeupCondition cond;
AWTEvent event;

cond = (WakeupCondition)criteria.nextElement();
event = ((WakeupOnAWTEvent)cond).getAWTEvent()[0];
processAWTEvent(event);

PickRay ray = createPickRay(mCanvas, mX, mY);
SceneGraphPath path = null;
path = mPickGroup.pickClosest(ray);
if (path != null) {
Shape3D s = (Shape3D)path.getObject();
if (s != null) {
s.setAppearance(mHighlightAppearance);
}
}
this.wakeupOn(new WakeupOnAWTEvent(MouseEvent.MOUSE_MOVED));
return;


}

private PickRay createPickRay(Canvas3D canvas, int x, int y)   {
Point3d eye_pos = new Point3d();
Point3d mouse_pos = new Point3d();

canvas.getCenterEyeInImagePlate(eye_pos);
canvas.getPixelLocationInImagePlate(x, y, mouse_pos);

Transform3D motion = new Transform3D();
canvas.getImagePlateToVworld(motion);
motion.transform(eye_pos);
motion.transform(mouse_pos);

Vector3d direction = new Vector3d(mouse_pos);
direction.sub(eye_pos);

return new PickRay(eye_pos, direction);
}

}

It is initialized as such:

Highlight mousemoveBehavior = new Highlight(cv, bgNodes);
mousemoveBehavior.setSchedulingBounds(new BoundingSphere());
bg.addChild(mousemoveBehavior);

Where bgNodes is the aforementioned branchgroup with all the points and bg
is the top-level branchgroup.

However, the Highlight behavior does not seem to detect any geometry.  If
I assign the behavior to the top-level branchgroup, it appears to detect
other geometry in the scene (although I have trouble following the
debugger output).

Can anyone help clarify how I should be doing this?

Regards,
Todd

===
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.


Re: [JAVA3D] Picking Behaviors in Java3D

2005-07-09 Thread John Wright

Todd,

I've found that picking was not reliable unless you do a pickAll and
then loop through the scene graph path array returned (to find your
closest hit).  Clumsy but it works.

- John Wright
Starfire Research

Todd L. Peters wrote:

I am new to Java 3D and am having trouble with picking behaviors.  The
tutorial is not really clear to me and the examples on the web seem to use
deprecated methods.  I think I have the basic concept correct, but things
do not seem to be working out.

I have a branchgroup (not the top level group) that has a number of
children.  These children are all of one class that is derived from
Shape3D.  The geometry of the object is set to a PointArray with one
point.  In short, the branchgroup contains a number of points.

I pass the branchgroup and the canvas3D object to the following behavior:

public class Highlight extends Behavior {

   private Canvas3D mCanvas;
   private BranchGroup mPickGroup;
   private static ColoringAttributes mColoringAttributes;
   private static Appearance mHighlightAppearance;
   private int mX,mY;

/** Creates a new instance of Highlight */
   public Highlight(Canvas3D cv3d, BranchGroup bg) {

mCanvas = cv3d;
mPickGroup = bg;
mColoringAttributes = new ColoringAttributes();
mColoringAttributes.setColor(1.0f, 0.0f, 0.0f);
mHighlightAppearance = new Appearance();
mHighlightAppearance.setColoringAttributes(mColoringAttributes);

}

/**
 * initialize the Behavior
 * set initial wakeup condition
 * called when behavior becomes live
 */
public void initialize(){
// set initial wakeup condition
this.wakeupOn(new WakeupOnAWTEvent(MouseEvent.MOUSE_MOVED));
return;
}


protected void processAWTEvent(AWTEvent e) {
MouseEvent evt = (MouseEvent)e;
mX = evt.getX();
mY = evt.getY();
return;
}

// called by Java 3D when appropriate stimulus occurs
public void processStimulus(Enumeration criteria){

WakeupCondition cond;
AWTEvent event;

cond = (WakeupCondition)criteria.nextElement();
event = ((WakeupOnAWTEvent)cond).getAWTEvent()[0];
processAWTEvent(event);

PickRay ray = createPickRay(mCanvas, mX, mY);
SceneGraphPath path = null;
path = mPickGroup.pickClosest(ray);
if (path != null) {
Shape3D s = (Shape3D)path.getObject();
if (s != null) {
s.setAppearance(mHighlightAppearance);
}
}
this.wakeupOn(new WakeupOnAWTEvent(MouseEvent.MOUSE_MOVED));
return;


}

private PickRay createPickRay(Canvas3D canvas, int x, int y)   {
Point3d eye_pos = new Point3d();
Point3d mouse_pos = new Point3d();

canvas.getCenterEyeInImagePlate(eye_pos);
canvas.getPixelLocationInImagePlate(x, y, mouse_pos);

Transform3D motion = new Transform3D();
canvas.getImagePlateToVworld(motion);
motion.transform(eye_pos);
motion.transform(mouse_pos);

Vector3d direction = new Vector3d(mouse_pos);
direction.sub(eye_pos);

return new PickRay(eye_pos, direction);
}

}

It is initialized as such:

Highlight mousemoveBehavior = new Highlight(cv, bgNodes);
mousemoveBehavior.setSchedulingBounds(new BoundingSphere());
bg.addChild(mousemoveBehavior);

Where bgNodes is the aforementioned branchgroup with all the points and bg
is the top-level branchgroup.

However, the Highlight behavior does not seem to detect any geometry.  If
I assign the behavior to the top-level branchgroup, it appears to detect
other geometry in the scene (although I have trouble following the
debugger output).

Can anyone help clarify how I should be doing this?

Regards,
Todd

===
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.



===
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.


Re: [JAVA3D] drawAndFlushImage flickering

2005-07-09 Thread Hennie Kotze
Hello again

It gives me great pleasure to tell you that I have solved the problem of the
flickering overlay. I now have a fully functional, fast way of creating
crisp, scaleable 2D graphics by drawing directly onto the Canvas3D. The
48fps without overlay now drops to 42 +-5fps with overlay. Neither animation
(behavior) nor drawing code is very optimized, but can easily be fixed...so,
overall, I'm a happy man. I can't stop looking at it :)

The solution, though very simple, seemed to elude me as it does others. I'll
post snippets later on when I'm satisfied with the sequence of things. FYI -
It's running as an Applet on a layer in a browser (Firefox). The applet
implements an interface to network with two other applets on the same page
(one of which is another 3D scene). It's going well! Java3D pulled through
and gave me the tools I needed for this rather complex undertaking.

Hennie

PS:
It's 3am and I am coding. Have I become.a geek?!

===
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.


[JAVA3D] getGeometry help

2005-07-08 Thread Eli Dylan Lorimer

Hi J3D Folks,

I have a couple of questions I was hoping someone could help me
figure out.

Firstly, I have a geometry object that extends Shape3D. It is a
wireframe rectangle. I'm allowing the user to move it around and
enlarge/shrink it. How can I programmatically access the current
position and size of the object?

Secondly, how can I restrict movement of this object to an area
smaller than my canvas3D?

Thirdly, the object is moved within a larger wireframe cube. Within
that larger cube I have a bunch of points plotted. I would like to
programmatically figure out which points are within the smaller
wireframe cube at any given time (and change the color of them to
visually tell the user that they are within said smaller cube.)

Thank you very much for any ideas you may have.

Cheers,
./dylan

===
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.


Re: [JAVA3D] drawAndFlushImage flickering

2005-07-08 Thread Hennie Kotze
 by
making use
// of the postSwap() callback.
// I used to do it using a behavior, but I took that out in favour of this
method.
// The way I've done it here, I've managed to get rid of the flickering of the
// entire scene. Now only the bufferedimage that gets drawn onto the canvas,
// i.e. my overlay stuff, flickers. why, i dunno...

class DrawOnCanvas3D extends Canvas3D
{
private GraphicsContext3D gc3d;
private J3DGraphics2D j3dg2d;
private int width = 512, height = width;
private BufferedImage bufim;
private Graphics2D g2d;

public DrawOnCanvas3D(GraphicsConfiguration gc)
{
super(gc);
bufim = new BufferedImage(width, height, BufferedImage.TYPE_4BYTE_ABGR);
g2d = bufim.createGraphics();
j3dg2d = this.getGraphics2D();
gc3d = this.getGraphicsContext3D();
}

public void postSwap()
{
   //I tried using the following commented line, but to no avail.
   //I've had it in many different places, same result (nothing). What
does it do, btw?
   //Toolkit.getDefaultToolkit().sync();

gc3d.setBufferOverride(false);
this.setDoubleBufferEnable(false);

g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.CLEAR,
0.0f));
g2d.setColor(Color.BLACK);
g2d.fillRect(0,0,width,height);
g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER,
1.0f));
g2d.setColor(Color.WHITE);

  /*
  g2d.drawingStuffHappensHere(...)
  */

j3dg2d.flush(true);//--with or without, makes no diff

j3dg2d.drawAndFlushImage(bufim, 0, 0, this);

this.setDoubleBufferEnable(true);
}
}

===
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.


[JAVA3D] drawAndFlushImage flickering

2005-07-07 Thread Hennie Kotze
Greetings

I really hope someone can help me with this problem. I have been battling to
get Java3D introduced at our company, and had been given a few days to come
up with a workable solution. All has been going well...until..*dramatic,
moody music*...the dreaded overlay! I tried this and that and the other,
all are far too slow or too limiting. Then came along drawAndFlushImage.
What a relief! The framerate hardly dropped, the quality of the graphics
superb, everything but for one little problem was very OK. The little
problem then slowly grew and became a nuisance, then an obstacle, and now it
is threatening to kill my entire two weeks of blood, sweat and tears.

HELP!

Using:j3d 1.3b2, DirectX9, jdk1.5.0

I have a drawing routine inside a class (extending Behavior) with a
WakeupOnElapsedFrames(0, true) that draws onto a
BufferedImage.TYPE_4BYTE_ABGR, which in turn gets drawn onto the canvas3D by
drawAndFlushImage(bufimg, 0, 0, null). I have enabled/disabled double
buffering on the canvas, I am flushing my j3DGraphics2D, I am doing
everything I am supposed to. I have tried possibly every order and
sort...swapping lines of code around, commenting out, duplicating, etc...but
the darn thing flickers madly.

It seems as if the drawing of the overlay and the drawing of the 3D scene
take turns being rendered, at other times each gets partially rendered onto
the same frame.

The overlay needs to be refreshed and redrawn on each frame with crisp,
aliased graphics, because it is a simulation of the video display of a
military helicopter which displays real-time flight, target and weapons info.

Through my travels across the internet in search of answers it has become
clear that the overlay thing is a major issue for j3d, and that no real
solution exists. This relatively minor hassle seriously impedes the growth
of the j3d community and the popularity of the platform, and should be
addressed by sun as a matter of grave urgency!

In the mean time, please, any words of advice (or even heart-felt
condolences) will be gladly and gratefully appreciated.

Yours in java

Hennie Kotze

===
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.


Re: [JAVA3D] drawAndFlushImage flickering

2005-07-07 Thread John Wright

Hennie,

Ok, you have my heartfelt condolences.

I agree that enough people desire to do overlays that a reasonable
implementation should just come packaged with Java 3D.

You might want to try contacting David Yazel (Xith).  I'm fairly sure he
managed a fairly decent implementation of overlays before he started
creating Xith as an alternative to Java 3D.

- John Wright
Starfire Research

Hennie Kotze wrote:

Greetings

I really hope someone can help me with this problem. I have been battling to
get Java3D introduced at our company, and had been given a few days to come
up with a workable solution. All has been going well...until..*dramatic,
moody music*...the dreaded overlay! I tried this and that and the other,
all are far too slow or too limiting. Then came along drawAndFlushImage.
What a relief! The framerate hardly dropped, the quality of the graphics
superb, everything but for one little problem was very OK. The little
problem then slowly grew and became a nuisance, then an obstacle, and now it
is threatening to kill my entire two weeks of blood, sweat and tears.

HELP!

Using:j3d 1.3b2, DirectX9, jdk1.5.0

I have a drawing routine inside a class (extending Behavior) with a
WakeupOnElapsedFrames(0, true) that draws onto a
BufferedImage.TYPE_4BYTE_ABGR, which in turn gets drawn onto the canvas3D by
drawAndFlushImage(bufimg, 0, 0, null). I have enabled/disabled double
buffering on the canvas, I am flushing my j3DGraphics2D, I am doing
everything I am supposed to. I have tried possibly every order and
sort...swapping lines of code around, commenting out, duplicating, etc...but
the darn thing flickers madly.

It seems as if the drawing of the overlay and the drawing of the 3D scene
take turns being rendered, at other times each gets partially rendered onto
the same frame.

The overlay needs to be refreshed and redrawn on each frame with crisp,
aliased graphics, because it is a simulation of the video display of a
military helicopter which displays real-time flight, target and weapons info.

Through my travels across the internet in search of answers it has become
clear that the overlay thing is a major issue for j3d, and that no real
solution exists. This relatively minor hassle seriously impedes the growth
of the j3d community and the popularity of the platform, and should be
addressed by sun as a matter of grave urgency!

In the mean time, please, any words of advice (or even heart-felt
condolences) will be gladly and gratefully appreciated.

Yours in java

Hennie Kotze

===
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.



===
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.


Re: [JAVA3D] drawAndFlushImage flickering

2005-07-07 Thread Östen L

I am not familiar with drawAndFlushImage but a long time ago I had a similar
problem with overlay-drawing in postSwap
and had to add the following line after 2D-drawing to avoid flickering:

   Toolkit.getDefaultToolkit().sync();

You can try that.

/Östen Lundahl


Hennie Kotze wrote:

Greetings

I really hope someone can help me with this problem. I have been battling
to
get Java3D introduced at our company, and had been given a few days to
come
up with a workable solution. All has been going well...until..*dramatic,
moody music*...the dreaded overlay! I tried this and that and the other,
all are far too slow or too limiting. Then came along drawAndFlushImage.
What a relief! The framerate hardly dropped, the quality of the graphics
superb, everything but for one little problem was very OK. The little
problem then slowly grew and became a nuisance, then an obstacle, and now
it
is threatening to kill my entire two weeks of blood, sweat and tears.

HELP!

Using:j3d 1.3b2, DirectX9, jdk1.5.0

I have a drawing routine inside a class (extending Behavior) with a
WakeupOnElapsedFrames(0, true) that draws onto a
BufferedImage.TYPE_4BYTE_ABGR, which in turn gets drawn onto the canvas3D
by
drawAndFlushImage(bufimg, 0, 0, null). I have enabled/disabled double
buffering on the canvas, I am flushing my j3DGraphics2D, I am doing
everything I am supposed to. I have tried possibly every order and
sort...swapping lines of code around, commenting out, duplicating,
etc...but
the darn thing flickers madly.

It seems as if the drawing of the overlay and the drawing of the 3D scene
take turns being rendered, at other times each gets partially rendered
onto
the same frame.

The overlay needs to be refreshed and redrawn on each frame with crisp,
aliased graphics, because it is a simulation of the video display of a
military helicopter which displays real-time flight, target and weapons
info.

Through my travels across the internet in search of answers it has become
clear that the overlay thing is a major issue for j3d, and that no real
solution exists. This relatively minor hassle seriously impedes the growth
of the j3d community and the popularity of the platform, and should be
addressed by sun as a matter of grave urgency!

In the mean time, please, any words of advice (or even heart-felt
condolences) will be gladly and gratefully appreciated.

Yours in java

Hennie Kotze

===
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.



===
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.


Re: [JAVA3D] How to change KeyNavigatorBehavior keys ?

2005-07-02 Thread Omer Haybat
how about modifing the source code.?

===
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.


[JAVA3D] Mikkel Andersen is out of the office.

2005-07-01 Thread Mikkel Andersen
I will be out of the office starting  01-07-2005 and will not return until
01-08-2005.

I will be on vacation untill the 1. of August, if you have any questions
regarding the Type A or Rack Configurator  please contact Lars Juul.

===
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.


[JAVA3D] 2nd Call for paper for Workshop on Methods and Tools for Designing VR applications in conjunction with the 11th International Conference on Virtual Systems and Multimedia

2005-07-01 Thread Frederic Kleinermann



o Jounghyun Gerard Kim, Department of Computer Science and
Engineering, Pohang University of Science and Technology (POSTECH), Korea



o Nadia Thalmann, MIRAlab, University of Geneva, Switzerland



o Prasad Wimalaratne, School
of Computing, University of Colombo, Sri
  lanka



o Daniel Thalmann, VRlab, Swiss Federal Institute of
Technology (EPFL), Switzerland




o Carlos Delgado Mata, CINAVI (Centre for Research on
Intelligent Virtual Environments) Engineering
  School Bonaterra University, Mexico



o Marc Cavazza, School of Computing, University of Teesside,
UK



o Clive Fencott, School of Computing, University of
Teesside, UK



o Chris Raymaekers, Expertise Centre for Digital Media
(EDM), Belgium



o Maria Roussou, Virtual Environments and Computer Graphics
Lab, Department of Computer Science, University
College London, UK



o Olga De Troyer, Web  Information System Engineering
Lab, Vrije 

 Universiteit
  Brussel, Belgium


 

o Frederic Kleinermann, Web  Information System
Engineering Lab, 

 Vrije Universiteit
  Brussel, Belgium



IMPORTANT DATES



Paper submission: 24th of July, 2005

Notification of acceptance: 24th of August, 2005

Camera ready electronic paper: 9th of September, 2005

11th International Conference on Virtual Systems and
Multimedia : October 3-7, 2005



SUBMISSION GUIDELINES



Papers should describe original and unpublished work about
the above or closely related topics. Papers should not exceed 10 pages single
spaced in length including images, figures, tables and references. The paper
should also include the title of the paper, authors names, affiliations, postal
addresses, e-mail addresses and the contact person for the paper. Authors
should submit their manuscript electronically as a PDF file conform the paper
template, which you can download here in Word format. The paper should be
submitted to [EMAIL PROTECTED]
. 



REGISTRATION



To register for the workshop, send an email to [EMAIL PROTECTED] .



ANNOUNCEMENT OF PROCEEDINGS



Negotiations are currently conducted to publish accepted
workshop contributions.






===
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".


[JAVA3D] IMPORTANT: java3d-interest list is being moved

2005-07-01 Thread Kevin Rushforth

It's been one year since we launched Java 3D as a community source
project on java.net. As most of you know by now, the Java 3D team no
longer reads this old java3d-interest@java.sun.com mailing list. In
order to reduce the amount of time we spend on list maintenance, and
to better serve the needs of the community, we will decommission the
java3d-interest@java.sun.com mailing list, effective July 15.

We plan to automatically move all subscribers from the old list to the
new [EMAIL PROTECTED] mailing list. Regrettably, this may
lead to some readers getting duplicate messages, if they are already
subscribed to the new list under a different e-mail address. We will
respond to your requests to remove any duplicate e-mail addresses, or
to unsubscribe you, but we would ask for your patience during the
transition. Alternatively, you can unsubscribe from the old
java3d-interest@java.sun.com list before the transition to avoid this
problem.

We invite those who wish to do so, to come over to the new forum /
interest list now; instructions to do this are included below. Or you
can simply wait until we move the list over en masse. If you do
subscribe to the new list before July 15, you may want to unsubscribe
from the old list to avoid being subscribed twice when we move the
list. Please let us know if you have any questions concerning
this. Note that this transition will not affect the java3d-interest
archive, which we will leave in place for the foreseeable future.

--
Kevin Rushforth [EMAIL PROTECTED]
Chien Yang  [EMAIL PROTECTED]

Sun Microsystems



SUBSCRIBING TO THE NEW JAVA 3D DISCUSSION FORUM / MAILING LIST

The new Java 3D interest list is available either as a discussion
forum (which is what most of the community uses) or as a mailing
list. Messages posted to one are cross-posted to the other
automatically.

1. To participate in the discussion forum, go to the following link
and create a JavaDesktop forum account (you don't need an account if
you just want to read the forum, but the tools work better if you do,
since it keeps track of which threads you have read):

http://www.javadesktop.org/forums/account!default.jspa

The URL for the Java 3D forum on javadesktop.org is:

http://www.javadesktop.org/forums/forum.jspa?forumID=55

2. If you prefer to send/receive messages via a mailing list, you will
need follow these steps:

   A. Create a java.net account if you don't already have one:
  http://www.dev.java.net/servlets/Join

   B. Login to java.net using your username/password:
  http://www.dev.java.net/servlets/TLogin

   C. Go to the Mailing Lists page of the parent java3d
  project (java3d.dev.java.net) and subscribe to the
  [EMAIL PROTECTED] mailing list:
  http://java3d.dev.java.net/servlets/ProjectMailingListList

For a description of the various mailing lists and the forum, go here:

http://java3d.dev.java.net/#Feedback_and_Discussion

For information on how you can contribute to the Java 3D projects on
java.net, go here:

http://java3d.dev.java.net/contribute.html

===
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.


[JAVA3D] How to change KeyNavigatorBehavior keys ?

2005-07-01 Thread Saeed Ansari
Hello,
I want to change the buttons that KeyNavigatorBehavior
uses for transfer.
For example use 'R' key for restore instead of '='
key.
Is it possible? how ?

Regards,
Saeed

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
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.


[JAVA3D] WakeupOnElapsedTime for NavigationJButtons

2005-06-30 Thread Rolf Gabler-Mieck

Hi all,
i build a JPanel containing a set of JButtons for each type of movement. 
Everytime the Button isPressed [using ChangeListener in Combination with a 
Buttonmodel and a Swing.Timer] a command will be send to the Behavior class for 
navigation, which uses WakeupOnElapsedTime(50)to set up a new Movement every 
50ms. If no Button is pressed a dummy command is send and no Transformation 
will done.
Normally it works very nice but when the app runs for a while sometimes 
(between 1minute and x minutes!!) the navigation ends.
the Buttons changes their outfit, as they should have to do, while pressing, so 
all events work properly.
theres no way to bring it again to work.
I tried to use different Listeners (Action,Mouse  Change in combination with a 
thread solution), but all ended in that failure, so I went to use a Timer instead 
of a thread to get navigation during button pressing. It seemed to be working... 
but today the problem occurs again...

the command is set in the Behavior but there's no reaction, so I think about 
using the wrong WakeUp condition, could this be?

parallel I use a KeyNavigationBehavior when the focus is on the Canvas3d, which 
works all the time, uses WakeUpOnAWTEvent.
Is WakeupOnElapsedTime the reason for my troubbles?
any help is welcome
best regards
rolf

--
Dipl. Ing.(FH) d. Geomatik
Rolf Gabler-Mieck
c/o
LGI-Geographisches Institut der CAU-Kiel
Ludewig-Meyn Str. 14
24098 Kiel
Tel: +49 431-880.2955
FAX: +49 431-880.4658
e-mail: [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.


Re: [JAVA3D] WakeupOnElapsedTime for NavigationJButtons

2005-06-30 Thread John Wright

Rolf,

Of course double check that you are resetting the trigger on your
behavior *every* time it runs.  Are you running from a command line so
you can see if any errors are occurring and halting operation?

I don't know any reason why WakeupOnElapsedTime should not work, however
I've switched to using only a single wake up on every frame and using
the J3D high res timer for my code.  I've found it to be troublesome to
have more than one behavior.

- John Wright
Starfire Research

Rolf Gabler-Mieck wrote:

Hi all,
i build a JPanel containing a set of JButtons for each type of movement.
Everytime the Button isPressed [using ChangeListener in Combination with
a Buttonmodel and a Swing.Timer] a command will be send to the Behavior
class for navigation, which uses WakeupOnElapsedTime(50)to set up a new
Movement every 50ms. If no Button is pressed a dummy command is send and
no Transformation will done.
Normally it works very nice but when the app runs for a while sometimes
(between 1minute and x minutes!!) the navigation ends.
the Buttons changes their outfit, as they should have to do, while
pressing, so all events work properly.
theres no way to bring it again to work.
I tried to use different Listeners (Action,Mouse  Change in combination
with a thread solution), but all ended in that failure, so I went to use
a Timer instead of a thread to get navigation during button pressing. It
seemed to be working... but today the problem occurs again...

the command is set in the Behavior but there's no reaction, so I think
about using the wrong WakeUp condition, could this be?

parallel I use a KeyNavigationBehavior when the focus is on the
Canvas3d, which works all the time, uses WakeUpOnAWTEvent.
Is WakeupOnElapsedTime the reason for my troubbles?
any help is welcome
best regards
rolf

--
Dipl. Ing.(FH) d. Geomatik
Rolf Gabler-Mieck
c/o
LGI-Geographisches Institut der CAU-Kiel
Ludewig-Meyn Str. 14
24098 Kiel
Tel: +49 431-880.2955
FAX: +49 431-880.4658
e-mail: [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.


[JAVA3D] How define front face of shapes ?

2005-06-30 Thread Saeed Ansari
Hi all,
 I have draw a lot of shapes containing concave and convex shapes. The problem is that many shapes'face are in front of the viewer and others back of the viewer.
How can I define front face of the shapes ?

Regards,
Saeed
Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football


===
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".


Re: [JAVA3D] How define front face of shapes ?

2005-06-30 Thread John Wright

The front face of a triangle is defined by the order of the vertices.
The right hand rule should work for you.  Curl your fingers of your
right hand in the order of the vertices and your thumb will point out
from the front face.  Or in other words, assign your vertices in counter
clockwise order as you face the object.

- John Wright
Starfire Research

Saeed Ansari wrote:

Hi all, I have draw a lot of shapes containing concave and convex
shapes. The problem is that many shapes' face are in front of the
viewer and others back of the viewer. How can I define front face of
the shapes ?

Regards, Saeed


===
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.


Re: [JAVA3D] WakeupOnElapsedTime for NavigationJButtons

2005-06-30 Thread Rolf Gabler-Mieck

Hi John,
I do not work with any IDE, so commandline is
my ErrorMsg-Output and no Error is shown,
it just stop the work ;-(

the funny thing is that everytime I'll show somebody
my work it stops very quick, but when I like to describe
what directly will happen...it work and work and work...
just since 40 minutes without any stoperror...
~one hour ago, when I show this some people it stoped working
after 1 minuteso I'll decribe it more exactly from mind...
(with waiting for the error)

I put the comand-string which controls the kind
of movement as a stdout into
stateChanged Method of the JButtons
actionperformed of the Timer
and of course also in the process stimulus

the command is absolutley OK in every of these
System.out.println, but after a Time x
all movements stoped, but the comands are OK
as they have to be an were printed correct to stdout

I try to run the software during the whole night and at
the morning, of couse no movement via buttons is possible
and also processStimulus has stopped all outputs to the comand
all the other outputs were as they has to be.

also I wasn't able to reproduce such errors by using win2k prof...
they seem to be only in winXP [profhome]
I use on both mashines j3d 1.3.1 and jdk1.4.2.07

I use seven Behaviors (for different PickingResults, Illumination and one
for Key navigation and that one for GUI-navigation), with no Problems...
maybe this is the first one. Do you think that it is better to make just one
Behavior Class which chooses at processStimulus the kind of Behavior,
depending on any given values?

Do you belive that the SwingTimer will cause such troubles?
I wasn't able to detect how to get the J3DTimer work for my
case.

best thanks for your answer
if you have further ideas... I am greedy to know!
regards from Kiel
Rolf





John Wright wrote:


Rolf,

Of course double check that you are resetting the trigger on your
behavior *every* time it runs.  Are you running from a command line so
you can see if any errors are occurring and halting operation?

I don't know any reason why WakeupOnElapsedTime should not work, however
I've switched to using only a single wake up on every frame and using
the J3D high res timer for my code.  I've found it to be troublesome to
have more than one behavior.

- John Wright
Starfire Research

Rolf Gabler-Mieck wrote:


Hi all,
i build a JPanel containing a set of JButtons for each type of movement.
Everytime the Button isPressed [using ChangeListener in Combination with
a Buttonmodel and a Swing.Timer] a command will be send to the Behavior
class for navigation, which uses WakeupOnElapsedTime(50)to set up a new
Movement every 50ms. If no Button is pressed a dummy command is send and
no Transformation will done.
Normally it works very nice but when the app runs for a while sometimes
(between 1minute and x minutes!!) the navigation ends.
the Buttons changes their outfit, as they should have to do, while
pressing, so all events work properly.
theres no way to bring it again to work.
I tried to use different Listeners (Action,Mouse  Change in combination
with a thread solution), but all ended in that failure, so I went to use
a Timer instead of a thread to get navigation during button pressing. It
seemed to be working... but today the problem occurs again...

the command is set in the Behavior but there's no reaction, so I think
about using the wrong WakeUp condition, could this be?

parallel I use a KeyNavigationBehavior when the focus is on the
Canvas3d, which works all the time, uses WakeUpOnAWTEvent.
Is WakeupOnElapsedTime the reason for my troubbles?
any help is welcome
best regards
rolf

--
Dipl. Ing.(FH) d. Geomatik
Rolf Gabler-Mieck
c/o
LGI-Geographisches Institut der CAU-Kiel
Ludewig-Meyn Str. 14
24098 Kiel
Tel: +49 431-880.2955
FAX: +49 431-880.4658
e-mail: [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.




--
Dipl. Ing.(FH) d. Geomatik
Rolf Gabler-Mieck
c/o
LGI-Geographisches Institut der CAU-Kiel
Ludewig-Meyn Str. 14
24098 Kiel
Tel: +49 431-880.2955
FAX: +49 431-880.4658
e-mail: [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.


Re: [JAVA3D] WakeupOnElapsedTime for NavigationJButtons

2005-06-30 Thread John Wright
]




===


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.




--
Dipl. Ing.(FH) d. Geomatik
Rolf Gabler-Mieck
c/o
LGI-Geographisches Institut der CAU-Kiel
Ludewig-Meyn Str. 14
24098 Kiel
Tel: +49 431-880.2955
FAX: +49 431-880.4658
e-mail: [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.


Re: [JAVA3D] WakeupOnElapsedTime for NavigationJButtons

2005-06-30 Thread Rolf GablerMieck
.
the Buttons changes their outfit, as they should have to do, while
pressing, so all events work properly.
theres no way to bring it again to work.
I tried to use different Listeners (Action,Mouse  Change in
combination
with a thread solution), but all ended in that failure, so I went
to use
a Timer instead of a thread to get navigation during button
pressing. It
seemed to be working... but today the problem occurs again...

the command is set in the Behavior but there's no reaction, so I think
about using the wrong WakeUp condition, could this be?

parallel I use a KeyNavigationBehavior when the focus is on the
Canvas3d, which works all the time, uses WakeUpOnAWTEvent.
Is WakeupOnElapsedTime the reason for my troubbles?
any help is welcome
best regards
rolf

--
Dipl. Ing.(FH) d. Geomatik
Rolf Gabler-Mieck
c/o
LGI-Geographisches Institut der CAU-Kiel
Ludewig-Meyn Str. 14
24098 Kiel
Tel: +49 431-880.2955
FAX: +49 431-880.4658
e-mail: [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.




--
Dipl. Ing.(FH) d. Geomatik
Rolf Gabler-Mieck
c/o
LGI-Geographisches Institut der CAU-Kiel
Ludewig-Meyn Str. 14
24098 Kiel
Tel: +49 431-880.2955
FAX: +49 431-880.4658
e-mail: [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.



===
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.


[JAVA3D] How to fill colors ?

2005-06-29 Thread Saeed Ansari
Hi all,
I forced to draw shapes by LineArray, as some of the shapes are concave. Now I want to fill color these shapes.
How can I do this? there is a method?

Regards,
Saeed
__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around 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".

[JAVA3D] Canvas3D in JInternalFrame

2005-06-27 Thread Dmitri Darin
Hi,

I know that it is the old problem and it is described in FAQ:
http://java3d.j3d.org/faq/swing.html#internalframes

But I'm wondering, is there ANY progress in this field since 02-JUL-1998?!
http://bugs.sun.com/bugdatabase/view_bug.do;:YfiG?bug_id=4154448

Do we have any hope with Java 1.5 and Java3D 1.4?

Best regards
Dmitri

CMBN
University of Oslo

===
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.


Re: [JAVA3D] Canvas3D in JInternalFrame

2005-06-27 Thread Frederic Barachant

Dmitri Darin wrote:


Hi,

I know that it is the old problem and it is described in FAQ:
http://java3d.j3d.org/faq/swing.html#internalframes

But I'm wondering, is there ANY progress in this field since 02-JUL-1998?!
http://bugs.sun.com/bugdatabase/view_bug.do;:YfiG?bug_id=4154448

Do we have any hope with Java 1.5 and Java3D 1.4?

Best regards
Dmitri

CMBN
University of Oslo

===
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.




Hello, Dmitri.
This is something i'm actually working on, as part of features for 1.4.
Some internal problems into behavior scheduler makes it incomplete, but
i can already tell you that i have an app using lightweight canvases
in internalFrames.
My goal is to release a completely working lightweight canvas. Once that
works, code will be integrated into 1.4 branch.

===
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.


[JAVA3D] Help with 3D UI Solution

2005-06-27 Thread Eli Dylan Lorimer

Hi J3D Folks,

I am hoping that somebody on this list might be able to help me with
a design/coding problem I am facing. I haven't actually coded at all
yet as I am not sure how to go about solving this. Anyway, thanks in
advance for some guidance.

I've got a wireframe cube in which I am plotting some (x,y,z) data.
That works well. What I'd like the user to be able to do is
effectively crop the data in the cube in a similar fashion to how it
is done in 2D using Photoshop. So, for example, when the user chooses
to crop the data, they will be presented with a greyed out, quasi
translucent cube inside the wireframe cube and by using the mouse,
they can move the cube and resize it. Once they have moved the greyed
out cube around and size it to include all the data they desire, they
can hit enter or whatever, and my code can take over extracting the
data plotted within this grey cube and do stuff with it.

So, I know how to make cubes and draw points and display triangles.
But I have no idea who to make a cube that the user can enlarge by
dragging the corners of it or move around by dragging the middle of it.

Any thoughts and/or suggestions?

Cheers,

-dylan

===
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.


Re: [JAVA3D] Help with 3D UI Solution

2005-06-27 Thread Andre Bialojahn
Dylan,

 I've got a wireframe cube in which I am plotting some (x,y,z) data.
 That works well. What I'd like the user to be able to do is
 effectively crop the data in the cube in a similar fashion to how it
 is done in 2D using Photoshop. So, for example, when the user
 chooses to crop the data, they will be presented with a greyed out,
 quasi translucent cube inside the wireframe cube and by using the
 mouse, they can move the cube and resize it. Once they have moved
 the greyed out cube around and size it to include all the data they
 desire, they can hit enter or whatever, and my code can take over
 extracting the data plotted within this grey cube and do stuff with
 it.

Well, fine.

 So, I know how to make cubes and draw points and display triangles.
 But I have no idea who to make a cube that the user can enlarge by
 dragging the corners of it or move around by dragging the middle of
 it.

 Any thoughts and/or suggestions?

Yes.
I've had to build a 3D-GUI last year myself as a part of the work for
my universities degree.

Aside from the classical 3D-GUI (three orthogonal views as 2D-
projections), I would like to propose the following solution:
* make the inner cube wireframed also (this enables you to use
  picking more reliably than with a solid / xparent geometry -
  picking problem: corners hidden by the cubes faces / determining
  what the user wanted to pick from an (Z-)ordered list of intersec-
  tions)
  If you should want to impose the impression that the inner cube
  has visible faces rather than just being a wireframe, use Shape3Ds
  with some xparency, additionally.
  When you stick with the Cube(), you'll probably have to do some
  clever maths for scaling and positioning. A wf geometry(array) is
  much more flexible in this aspect.
* put some tiny, solid cubes as handles at its corners
* use picking along with colouring / hiliting to identify the chosen
  geometry / handle. Especially the hiliting can take a lot of
  possible surprises for the user from your GUI. The visual feedback
  seems essential to me - especially with the sometimes interesting
  way, picking works.
* use the prebuilt PickBehaviour-classes to move the corners around.
  - PickMouseRotate and PickMouseTranslate (afair), but keep in mind
  that when you rotate the model in 3-space, the axes still stay their
  way. The standard mousepicking-classes do not respect the orienta-
  tion of the current view. This might lead to some nasty surprises.
* use J3Ds cabapilities of scaling instead of rebuilding your geo-
  metry every time. Keep an internal variable that stores your current
  scalefactor, since after an operation the new size will be 1.0.
* Keep a reset view button at hand - in case the user should feel
  lost and / or confused.

Maybe you might want to enable the user to have the inner cube
(focus) rendered solid / xparent on demand to get a better impres-
sion of its current form and extent. A Swing-button might serve you
well. (To mix Swing with J3D, please have a look at the FAQ at
J3d.org, in case you haven't done this yet. In short: globally switch
off Swings lightweightness.)

Pros:
+ easy navigation, very little abstraction for the user.
+ no switching between your rendered scene and the three 2D-pro-
  jections / no multiported views.
+ very little (or even none at all) context switching for the user.
  He/She should be able to do everything that is needed in one con-
  text, before switching over to the rest of the (2D-)GUI (if any).
  The switching is tiring and requires many long mouse moves. This
  is highly inefficient.

Cons:
- nonstandard; the user thus has to be taught how to use this
  interface

last but not least:
* keep in mind that picking sometimes might behave a bit strange and
  that it might require some tweaking
* have a look at and keep an eye on the (picking) demos delivered with
  the J3D-API / documentation / tutorial. The three dimensional game
  might help you very much for a start. It is a slight bit similar to
  what you want to do. (FourByFour)

If you want to spare some work, have the user modify only the facing
sides. Three buttons - X -, - Y - and - Z - (nice styled
icons, of course) should do the trick.

+ less work for you, easier geometry modification
- less intuitive GUI, more 3D-/2D-context switching for the user,
  heavier mousing. ;-)
- less flexible

HTH.

Regards,
Andre

===
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.


[JAVA3D] tutorial

2005-06-24 Thread auger pierre

hey;
Chapter2-self test 1:
if i replace the cone shape by a cylinder shape as written ,i get two
cylinders.How to transform them in two cones?

===
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.


Re: [JAVA3D] openGL/directX selection via webstart

2005-06-24 Thread Alessandro Borges
In can ask your user at application start-up
In your bootstrap class check if you are under Windows, then open pop-up a
JOption  Pane asking user to choose D3D or OpenGL renderer.
Then set
System.setProperty(j3d.rend,d3d) for D3D or
System.setProperty(j3d.rend,ogl) for OpenGL

After that you can call SimpleUniverse, Canvas3D etc...

Alessandro

__
Converse com seus amigos em tempo real com o Yahoo! Messenger
http://br.download.yahoo.com/messenger/

===
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.


[JAVA3D] Zooming on Scene

2005-06-24 Thread Saeed Ansari
Hello all,
I have used KeyPressed event to zoom on the scene. My Scene is on X-Y axis.
To view the scene from front side, I have rotate the camera on x-axis.
Now to zoom the scene, I should decrease the y-axis.
When I run the program, for the first time that I press z-key it zooms, but to continue it,cameraposition changesony-axis. I have attached the code of my camera.
Can you find what is the problem ?

Thanks in advance.

Regards,
Saeed 


public void execute() {
 mid_city_x = 0.0f; mid_city_y = 21.0f;
 z_camera = 150f; getContentPane().add("Center", canvas3d); setSize(500, 500); bgRoot = createSceneGraph(); canvas3d.addKeyListener(this); camera3d.rotX(1.5f); Vector3f v3ff = new Vector3f(0.0f, mid_city_y , 200.0f); su.getViewingPlatform().setNominalViewingTransform(); ViewingPlatform viewingPlatform = su.getViewingPlatform(); View_TransformGroup.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE); View_TransformGroup.setCapability(TransformGroup.ALLOW_TRANSFORM_READ); View_TransformGroup = viewingPlatform.getMultiTransformGroup().getTransformGroup(0); View_Transform3D = new Transform3D(); View_TransformGroup.getTransform(View_Transform3D);
 View_Transform3D.setTranslation(v3ff); camera3d.mul(View_Transform3D); View_TransformGroup.setTransform(camera3d); com.sun.j3d.utils.universe.Viewer vi = su.getViewer(); view.setBackClipDistance(150.0);
 View view = vi.getView(); BoundingSphere bounds = new BoundingSphere(new Point3d(0.0f, 0.0f, 0.0f),800D);
 bgRoot.compile(); su.addBranchGraph(bgRoot); OrbitBehavior orbit = new OrbitBehavior(canvas3d, OrbitBehavior.REVERSE_ALL); orbit.setSchedulingBounds(bounds); viewingPlatform.setViewPlatformBehavior(orbit); show(); }

public void keyPressed(KeyEvent e) { char keyChar = e.getKeyChar(); if( keyChar == 'z' || keyChar == 'Z' ){ mid_city_y -= 10;  View_Transform3D.setTranslation(new Vector3f(mid_city_x, mid_city_y, z_camera)); camera3d.rotX(1.5f);  camera3d.mul(View_Transform3D); View_TransformGroup.setTransform(camera3d); canvas3d.repaint(); } if( keyChar == 'x' || keyChar == 'X' ){ mid_city_y += 10; View_Transform3D.setTranslation(new Vector3f(mid_city_x, mid_city_y, z_camera ));
 camera3d.rotX(1.5f); camera3d.mul(View_Transform3D); View_TransformGroup.setTransform(camera3d); canvas3d.repaint();}__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around 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".

[JAVA3D] update part of a texture

2005-06-24 Thread Guillaume Capblancq

Hi,
Is there any possibility to update a part of a texture ( something like
the glTexSubImage2D OpenGL function).
If not, what is the plan for a Java3D implementation of this feature ?

Thanks in advance

Regards,

===
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.


[JAVA3D] Repiant has bad effect on Canvas3D

2005-06-24 Thread Saeed Ansari

Hello,
I have used KeyEvent methods to translate camera on the scene.
The problem is when I repaint the canvas3D the scene becomes white for a very short time.
Is there a way to remove this problem ?

Regards,
Saeed

 public void keyPressed(KeyEvent e) { char keyChar = e.getKeyChar(); int KeyCode = e.getKeyCode(); if( keyChar == 'Z' || keyChar == 'z' ){ z_camera -= 10; View_Transform3D.setTranslation(new Vector3f(mid_city_x, mid_city_y, z_camera)); camera3d.rotX(1.5f); camera3d.mul(View_Transform3D); View_TransformGroup.setTransform(camera3d); c3d.repaint(); } if( keyChar == 'X' || keyChar == 'x' ){ z_camera += 10; View_Transform3D.setTranslation(new Vector3f(mid_city_x, mid_city_y, z_camera )); camera3d.rotX(1.5f);
 camera3d.mul(View_Transform3D); View_TransformGroup.setTransform(camera3d); c3d.repaint();} }
Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football


===
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".


[JAVA3D] Setting the color of an IndexedLineArray.

2005-06-23 Thread Eli Dylan Lorimer
Hello J3D folks,I've got an IndexedLineArray defined as such:IndexedLineArray trajectory = new IndexedLineArray(8, IndexedLineArray.COORDINATES | IndexedLineArray.COLOR_4, 24);        trajectory.setCoordinate( 0, new Point3f( 0.0f, -0.5f, 0.0f));trajectory.setCoordinate( 1, new Point3f( -0.25f, -0.25f, 0.0f));trajectory.setCoordinate( 2, new Point3f( 0.25f, 0.25f, 0.0f));trajectory.setCoordinate( 3, new Point3f( 0.0f, 0.5f, 0.0f));        trajectory.setCoordinateIndex( 0, 0);trajectory.setCoordinateIndex( 1, 1);        trajectory.setCoordinateIndex( 2, 1);trajectory.setCoordinateIndex( 3, 2);        trajectory.setCoordinateIndex( 4, 2);trajectory.setCoordinateIndex( 5, 3);        Color4f colors[] = new Color4f[1];colors[0] = new Color4f(1.0f,0.0f,0.0f,0.5f);colors[1] = new Color4f(0.0f,0.0f,1.0f,0.5f)        trajectory.setColor(0,colors[0]);trajectory.setColor(3,colors[1]);I can't seem to figure out how to set the first index to one color, the last to a second color, and get the colors in-between to be a gradient of the 2. I thought this was meant to be really easy to do though. Could anyone help me please?Thanks.Eli===
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".


[JAVA3D] openGL/directX selection via webstart

2005-06-23 Thread Dmitri Darin
Hi,

Is there any way to explicitly choose OpenGL (or DirectX) using WebStart
.jnlp file?
I searched the Web, but I could not find any answer...

Best regards,
Dmitri

CMBN
University of Oslo

===
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.


Re: [JAVA3D] openGL/directX selection via webstart

2005-06-23 Thread John Wright

Dmitri,

I do NOT think so.  Webstart has some significant limitations.  I
(strongly) dislike webstart and I'm not a webstart expert so perhaps
someone else can give you a better answer.

- John Wright
Starfire Research

Dmitri Darin wrote:

Hi,

Is there any way to explicitly choose OpenGL (or DirectX) using WebStart
.jnlp file?
I searched the Web, but I could not find any answer...

Best regards,
Dmitri

CMBN
University of Oslo


===
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.


Re: [JAVA3D] openGL/directX selection via webstart

2005-06-23 Thread Todd J.

Simmer down now...  It's possible and would simply require
separate .jnlp files (and associated resources) to be configured for
either OpenGL or DirectX.  The DirectX file would have to specify
OpenGL resources, of course, for those platforms that don't support
DirectX (such as OS X or Linux).  The Java3D team would have to
configure this if you wanted to use the default WebStart files, or
you could do this yourself by modifying the ones they provide and
hosting them on your own server.  Good luck.

~Todd

On Jun 23, 2005, at 1:15 PM, John Wright wrote:


Dmitri,

I do NOT think so.  Webstart has some significant limitations.  I
(strongly) dislike webstart and I'm not a webstart expert so perhaps
someone else can give you a better answer.

- John Wright
Starfire Research

Dmitri Darin wrote:


Hi,

Is there any way to explicitly choose OpenGL (or DirectX) using
WebStart
.jnlp file?
I searched the Web, but I could not find any answer...

Best regards,
Dmitri

CMBN
University of Oslo



==
=
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.



===
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.


Re: [JAVA3D] openGL/directX selection via webstart

2005-06-23 Thread Thierry Milard
This should be also be usefull for me.

By the way I really don't understand John wright's dislike of
java web start API. Honestly over the last year and a half I have seen
so many people, on this java3D mailing list, giving url links to their demo of
their 3D project with java3D ... BUT
that never -really almost NEVER- run straight [you need to install this... oh
no... that... no I mean versionx.y.z ... but with ie u.v_003].
I mean, we should look the facts: it is complicated to make it work.
Any java Applet/application ... and even much more java3D stuffs.

Perhaps JWS has limitation, but from my point of vue SIMPLICITY is what java
Applet/application over Internet MISSED before JAWS.
Moreover, those limitation John pointed, and that I also caught (mainly poor
display at startup from my point of view)...
well I think Sun people are working on those limits (I saw a mail about it)and
the next release should be THE ONE.

Thierry, Paris

HEre is the main url for JWS:
http://java.sun.com/products/javawebstart/

Selon Todd J. [EMAIL PROTECTED]:

 Simmer down now...  It's possible and would simply require
 separate .jnlp files (and associated resources) to be configured for
 either OpenGL or DirectX.  The DirectX file would have to specify
 OpenGL resources, of course, for those platforms that don't support
 DirectX (such as OS X or Linux).  The Java3D team would have to
 configure this if you wanted to use the default WebStart files, or
 you could do this yourself by modifying the ones they provide and
 hosting them on your own server.  Good luck.

 ~Todd

 On Jun 23, 2005, at 1:15 PM, John Wright wrote:

  Dmitri,
 
  I do NOT think so.  Webstart has some significant limitations.  I
  (strongly) dislike webstart and I'm not a webstart expert so perhaps
  someone else can give you a better answer.
 
  - John Wright
  Starfire Research
 
  Dmitri Darin wrote:
 
  Hi,
 
  Is there any way to explicitly choose OpenGL (or DirectX) using
  WebStart
  .jnlp file?
  I searched the Web, but I could not find any answer...
 
  Best regards,
  Dmitri
 
  CMBN
  University of Oslo
 
 
  ==
  =
  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.
 

 ===
 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.


===
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.


[JAVA3D] Specifying location of a text2d object

2005-06-22 Thread Eli Dylan Lorimer

Hi,

I can't seem to figure out how to specify where I want my text2D
object to be placed in my scenegraph. The constructor has no
parameter to specify this and I don't see any other way to do it.
Could someone please point me in the right direction.

Thanks.
./dylan

===
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.


Re: [JAVA3D] Specifying location of a text2d object

2005-06-22 Thread John Wright

Put it under a Transform Group and translate it to wherever you desire
it in your scene.

- John Wright
Starfire Research

Eli Dylan Lorimer wrote:

Hi,

I can't seem to figure out how to specify where I want my text2D
object to be placed in my scenegraph. The constructor has no
parameter to specify this and I don't see any other way to do it.
Could someone please point me in the right direction.

Thanks.
./dylan

===
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.



===
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.


[JAVA3D] Smooth movement by PositionInterpolation

2005-06-22 Thread Saeed Ansari
Hi all,
I have added some objects as belowto a BranchGroup:

 BG
 |
 /
 /
 /
 TG 
 /
 /
 TG2 ( ALLOW_WRITE)
 /
/
 Object

I have passed the TG2 as parameter to the PositionInterpolator. I set the Transform3D of the second TransformGroup (TG2 ) every second. But the movement is jerky and it jumps between positions.
Another problem is position. The object just moves between two positions and another positions have no effect on TransformGroup.
PC: The position changes in x-y-z axis.

Regards,
Saeed__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around 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".

[JAVA3D] overlay sample code

2005-06-20 Thread Neiderer, Andrew (Civ, ARL/CISD)








I have looked at the archives and have not been able to
locate sample code for putting a transparency on geometry.

I have found code for background transparency however.




I need to place a JPEG on some terrain which I generate
using an IndexedTriangleStripArray. I then need to adjust the
transparency of the overlay while keeping the rendered terrain (I use an
empirically based shading function) constant.



A simple example would be ideal. Also any URLs of
Java3D terrain programming is appreciated.



Thank you.



-
Andrew M. Neiderer

-
US Army Research Laboratory






===
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".


[JAVA3D] How to update position for animation?

2005-06-20 Thread Saeed Ansari
Hello all,
I have added Some objects and an PositionInterpolatorfor eachto a TransformGroup.
As you see code below, I add PositionInterpolators to a list to modify them later.
As I am working on a simulation project, I get the position of objects every 100 miliseconds
and I want animate the motion of object.Iupdate the setTarget method, but nothing happens.
How should I do this ? It is somehow complicated for me .

Regards,
Saeed

TransformGroup agentTrans = new TransformGroup(); agentTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE); agentTrans.setCapability(TransformGroup.ALLOW_PICKABLE_READ); agentTrans3D = new Transform3D(); atMulRotation = new Transform3D(); agentTrans3D.setTranslation(new Vector3f(xxx, yyy, 3.0f)); agentTrans3D.setScale(0.1f); atMulRotation.rotX(1.5f); agentTrans3D.mul(atMulRotation); agentTrans.setTransform(agentTrans3D); bg=new vrmlLoad("ambulance.wrl"); PositionInterp
 olator
 posInt = new PositionInterpolator(alpha , atGroup[i-1]); posInt.setSchedulingBounds(new BoundingSphere()); atInterpolator[i-1]=posInt; agentTrans.addChild(bg); agentTrans.addChild(posInt); atGroup[i-1] = agentTrans;  bg1.addChild(agentTrans); __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around 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".

[JAVA3D] Space Shuttle Physics?

2005-06-18 Thread Jaakko Holopainen
Hi, hello everyone this is my intro to the list as well.

Im doing a space shuttle simulation and need some help with one thing,

I have a set up a shulttle in a structure like this:

TransformGroup1
- TransformGroup2
- Shuttle

The idea is that the movement of the shuttle is performed in the
TransformGroup1,
and the rotation of the shuttle in TransformGroup2.

I also have a few Vectrors to hold the data i need.

Vector3f speedVector (basically just the z set to some value).
Vector3f thrustVector (the z value increasing while a buton is pressed and
0.0f if not).

I then have a main loop calling enach 1/100 of a second an update shuttle
method, which does the following:

1. get the current transformation from TransformGroup1.
2. get the current rotation from TransformGroup2.

3. apply the thrust to the speed.
4. apply the speed to the TransformGroup1.

This far i have made it and the shuttle can now be sent in one (hard coded)
direction and rotated (with MouseRotate).

What i would like to know is how could i make the thrust applied in
combination with the rotation in
TransformGroup2 so that the direction of movement could be changed.

Can someone describe what are the 16 float's that can be get from a
Transform3D object.


BR,
Jaakko Holopainen

===
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.


Re: [JAVA3D] Space Shuttle Physics?

2005-06-18 Thread John Wright

Jaakko,

Welcome to the list (you'll probably soon get the standard this list
isn't supported any more go participate on another list messages).

Why use two separate TransformGroups?  I move my avatars with a single
TransformGroup.

All you need are the basic geometry formulas for working with angles and
distances (triangles) and you can calculate the correct new position
based on your angle and speed. (Grab any high school geometry book if
you aren't familar with them off the top of your head)

- John Wright
Starfire Research

Jaakko Holopainen wrote:

Hi, hello everyone this is my intro to the list as well.

Im doing a space shuttle simulation and need some help with one thing,

I have a set up a shulttle in a structure like this:

TransformGroup1
- TransformGroup2
- Shuttle

The idea is that the movement of the shuttle is performed in the
TransformGroup1,
and the rotation of the shuttle in TransformGroup2.

I also have a few Vectrors to hold the data i need.

Vector3f speedVector (basically just the z set to some value).
Vector3f thrustVector (the z value increasing while a buton is pressed and
0.0f if not).

I then have a main loop calling enach 1/100 of a second an update shuttle
method, which does the following:

1. get the current transformation from TransformGroup1.
2. get the current rotation from TransformGroup2.

3. apply the thrust to the speed.
4. apply the speed to the TransformGroup1.

This far i have made it and the shuttle can now be sent in one (hard coded)
direction and rotated (with MouseRotate).

What i would like to know is how could i make the thrust applied in
combination with the rotation in
TransformGroup2 so that the direction of movement could be changed.

Can someone describe what are the 16 float's that can be get from a
Transform3D object.


BR,
Jaakko Holopainen

===
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.



===
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.


Re: [JAVA3D] Space Shuttle Physics?

2005-06-18 Thread John Wright

As Joerg and I stated, there is no reason to use two TransformGroups.
Using separate TransformGroups only wastes memory and performance.

Perhaps you aren't understanding what a tranform does.  The rotation has
nothing to do with the positioning (i.e. rotating it doesn't move it in
a different direction it just changes the object's orientation).

I think you'll find it easier if you keep the position, speed and
orientation in separate variables (don't fetch them from the transform!)
and just use basic geometry to calculate the new position and
orientation and then apply it using the TransformGroup.

- John Wright
Starfire Research

Jaakko Holopainen wrote:

Ill post the code here, so this is what i do every 1/100 second:

  // get current transform
  Transform3D transform = new Transform3D();
  m_transformGroup.getTransform(transform);  // the TransformGroup1
explained in the earlier post

  // get current facing
  Transform3D facing = new Transform3D();
  m_transformGroupObject.getTransform(facing); // the TransformGroup2
explained in the earlier post

  // check thrust states
  if (!m_thrustForward  !m_thrustBack) m_accelerateVector.z = 0.0f;
  else if (m_thrustForward  m_accelerateVector.z  0.1f)
m_accelerateVector.z += 0.005f;
  else if (m_thrustBack  m_accelerateVector.z  - 0.05f)
m_accelerateVector.z -= 0.001f;

  // TODO: apply the combined effect of the facing  accelerate vectors to
the speed vector
  // for the moment apply only thrust
 //  THIS IS THE PART WHERE I NEED SOME HELP
  m_speedVector.z += m_accelerateVector.z;

  // apply the speedvector to this transform
  Transform3D movement = new Transform3D();
  movement.setTranslation(m_speedVector);
  transform.mul(movement);

  // update the new transform
  m_transformGroup.setTransform(transform);

===
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.



===
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.


Re: [JAVA3D] Space Shuttle Physics?

2005-06-18 Thread Jaakko Holopainen
Thanks for your advices, here is what i have come up with.
Am i approacing the correct thinking?

public void update(long timer_delta) {

 // TODO: take into account the delta time in all calculations

 // get the current rotation
 m_transformGroup.getTransform(m_transformRotation);
 m_transformRotation.get(m_matrixRotation);

 // adjust thrust
 if (m_thrustForward || m_thrustBack) {
  if (m_thrustForward  m_vectorMovement.z  0.1f) { m_thrust += 0.005f; }
  else if (m_thrustBack  m_vectorMovement.z  - 0.05f) { m_thrust -= 0.001f; }

  // apply thrust to the m_vectorMovement depending on the rotation
  Vector4f thrust4f = new Vector4f(0.0f, 0.0f, m_thrust, 0.0f);
  m_transformRotation.transform(thrust4f);
  // System.out.println(thrustZ :  + thrust4f.x +  ,  + thrust4f.y +  ,
 + thrust4f.z +  ,  + thrust4f.w);
  // currently everything faces by default the negative z axis, therefore
forward is negative
  // and we adjust the values in the vector accordingly
  Vector3f thrust3f = new Vector3f( - thrust4f.x, - thrust4f.y, - thrust4f.z);
  m_vectorMovement.add(thrust3f);

 } else { m_thrust = 0.0f; }


 // apply the m_vectorMovement to the m_transformMovement
 Vector3f translation = new Vector3f();
 m_transformMovement.get(translation);
 translation.add(m_vectorMovement);
 m_transformMovement.set(translation);

 // make a new transform from the movement and rotation
 Transform3D transform = new Transform3D();
 transform.set(m_matrixRotation, translation, 1);


 // update the new transform
 m_transformGroup.setTransform(transform);

}

===
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.


Re: [JAVA3D] Space Shuttle Physics?

2005-06-18 Thread John Wright

Jaakko,

It's not the approach I'd take.  I would use basic geometry (sin and cos).

So your velocity combined with a pitch and a yaw heading using basic
geometry formulas gives you the new x,y,z position.

You might want to borrow a 3D graphics book from a nearby library that
might give you some new ideas.

- John Wright
Starfire Research

Jaakko Holopainen wrote:

Thanks for your advices, here is what i have come up with.
Am i approacing the correct thinking?

public void update(long timer_delta) {

 // TODO: take into account the delta time in all calculations

 // get the current rotation
 m_transformGroup.getTransform(m_transformRotation);
 m_transformRotation.get(m_matrixRotation);

 // adjust thrust
 if (m_thrustForward || m_thrustBack) {
  if (m_thrustForward  m_vectorMovement.z  0.1f) { m_thrust += 0.005f; }
  else if (m_thrustBack  m_vectorMovement.z  - 0.05f) { m_thrust -= 0.001f; }

  // apply thrust to the m_vectorMovement depending on the rotation
  Vector4f thrust4f = new Vector4f(0.0f, 0.0f, m_thrust, 0.0f);
  m_transformRotation.transform(thrust4f);
  // System.out.println(thrustZ :  + thrust4f.x +  ,  + thrust4f.y +  ,
 + thrust4f.z +  ,  + thrust4f.w);
  // currently everything faces by default the negative z axis, therefore
forward is negative
  // and we adjust the values in the vector accordingly
  Vector3f thrust3f = new Vector3f( - thrust4f.x, - thrust4f.y, - thrust4f.z);
  m_vectorMovement.add(thrust3f);

 } else { m_thrust = 0.0f; }


 // apply the m_vectorMovement to the m_transformMovement
 Vector3f translation = new Vector3f();
 m_transformMovement.get(translation);
 translation.add(m_vectorMovement);
 m_transformMovement.set(translation);

 // make a new transform from the movement and rotation
 Transform3D transform = new Transform3D();
 transform.set(m_matrixRotation, translation, 1);


 // update the new transform
 m_transformGroup.setTransform(transform);

}

===
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.



===
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.


[JAVA3D] How to Animate ?

2005-06-16 Thread Saeed Ansari
Hello All,
I currently working on a simulation project.In this project, I receive position of agents ( like cars) every 100 miliSeconds. I want to animate the motion of these agents, setting position every cycle doesn't make animation and there is a jump.
What do you recommend to do ?

Regards,
Saeed__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around 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".

[JAVA3D] [Fwd: [JAVA3D-INTEREST] Java 3D @ JavaOne 2005]

2005-06-14 Thread Chien Yang

FYI.

- Chien

 Original Message 
Subject:[JAVA3D-INTEREST] Java 3D @ JavaOne 2005
Date:   Tue, 14 Jun 2005 20:53:59 -0400 (EDT)
From:   [EMAIL PROTECTED]
Reply-To:   [EMAIL PROTECTED]
To: [EMAIL PROTECTED]



We have planned a few Java 3D activities for the 2005 JavaOne conference from 
June 25 through June 30 in San Francisco. We hope to see some of you there. A 
list of events that may be of interest is posted here:

https://java3d.dev.java.net/#JavaOne_2005

Here is a brief summary on the specific Java 3D activities:

1. Pavilion Pod-1208 : Mon (6/27) - Wed (6/29)

We will be showing Java 3D, JAI, and JOGL demos at pod-1208 during normal 
pavilion hours Monday through Wednesday.


2. BOF-9723 : Tue (6/28) 7:30-8:20 PM [Marriott Hotel]

The Java 3D BOF will be held in Golden Gate Ballroom B1 at the Marriott Hotel on 
Tuesday evening at 7:30. We will have a presentation on the 1.4 release, with a 
focus on programmable shaders. We will also talk a little about the future and 
leave plenty of time for QA. I will post the slides to java.net after the 
conference.


3. Ask the Experts - Mon (6/27) 6:30-8:00 PM

I didn't make up the title for this one. This is a chance to come and meet a 
couple of the team members, as well as experts in other Java technologies in 
the pavilion during the opening reception. For more info, see: 
http://java.sun.com/javaone/sf/ask_experts.jsp

--
Kevin Rushforth
Java 3D Team
Sun Microsystems
---
[Message sent by forum member 'kcr' (Kevin Rushforth)]

http://www.javadesktop.org/forums/thread.jspa?messageID=91963#91963

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [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.


Re: [JAVA3D] Getting my Canvas3D to display without requiring focus...

2005-06-13 Thread Omer Haybat
requestFocus()

===
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.


[JAVA3D] TextureUnitStates for terrain rendering

2005-06-13 Thread Hrvoje Smolic
Hi all!
I was playing with different parameters for texturing my terrain over
weekend, but with no satisfactory results. My idea is to have base layer
(grass), and on top of it replace it with alpha blended different texture
(snow, for example). In that way I will have a nice transition from grass to
snow texture.
 Below are texture attribures for each TextureUnitState. No matter what
parameters I tried, I can't isolate alpha texture to work only on one layer
(snow). Is order of states important? What is best I can get are two
textures combined (which is OK), but than alpha texture cuts off them both,
not only snow (or grass). How could I achieve that?


   //grass
baseTextAtt = new TextureAttributes();
baseTextAtt.setTextureMode(TextureAttributes.REPLACE);

//snow
mainTextAtt = new TextureAttributes();
mainTextAtt.setTextureMode(TextureAttributes.COMBINE);
mainTextAtt.setCombineRgbMode(TextureAttributes.COMBINE_REPLACE);
mainTextAtt.setCombineRgbSource(0,
TextureAttributes.COMBINE_TEXTURE_COLOR);
mainTextAtt.setCombineRgbFunction(0,
TextureAttributes.COMBINE_SRC_COLOR);
mainTextAtt.setCombineAlphaMode(TextureAttributes.COMBINE_MODULATE);
mainTextAtt.setCombineAlphaSource(0,
TextureAttributes.COMBINE_PREVIOUS_TEXTURE_UNIT_STATE);
mainTextAtt.setCombineAlphaFunction(0,
TextureAttributes.COMBINE_SRC_ALPHA);

//alpha mask for snow
alphaTexAttr = new TextureAttributes();
alphaTexAttr.setTextureMode(TextureAttributes.COMBINE);
alphaTexAttr.setCombineRgbMode(TextureAttributes.COMBINE_REPLACE);
alphaTexAttr.setCombineRgbSource(0,
TextureAttributes.COMBINE_PREVIOUS_TEXTURE_UNIT_STATE);
alphaTexAttr.setCombineRgbFunction(0,
TextureAttributes.COMBINE_SRC_COLOR);
alphaTexAttr.setCombineAlphaMode(TextureAttributes.COMBINE_REPLACE);
alphaTexAttr.setCombineAlphaSource(0,
TextureAttributes.COMBINE_TEXTURE_COLOR);
alphaTexAttr.setCombineAlphaFunction(0,
TextureAttributes.COMBINE_SRC_ALPHA);

===
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.


Re: [JAVA3D] Getting my Canvas3D to display without requiring focus...

2005-06-13 Thread Omer Haybat
canvas3D.setFocusable(true);
canvas3D.requestFocus();

===
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.


Re: [JAVA3D] VRML Material Swapping Question

2005-06-13 Thread Rolf GablerMieck

hmm..maybe this:
start a Looping thread which changes the appearance during your
pickbehavior is triggered maybe you have to
implement a further behavior to manipulate the appeareance during
..isClicked=true... nextClick=false...
regards rolf

Mark Alexander Friedgan schrieb:


Actually no, I am trying to blink an item read when it is clicked.

On Mon, 2005-06-13 at 18:50 +0200, [EMAIL PROTECTED] wrote:



Mark Alexander Friedgan schrieb:




I would like to make a group blink red for example and I've been
trying to find a good solution to this. I.e. right now what I have is
a choice node which turns on and off wrapping the group, this blinks
the objects in or out of existence but i want them instead to blink
red, sort of highlight.

What is the best way to do this?

Mark Friedgan
===
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.



sounds for a behavior which is triggered when n-frames has passed or a
TimeElaplsed criteria so you can define how to change
the color of your geometry after x frames were produced respectivly
after x ms.
regrads
rolf












===
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.


[JAVA3D] Getting my Canvas3D to display without requiring focus...

2005-06-11 Thread Eli Dylan Lorimer
Hi,I'm embedding a Canvas3D into a swing JPanel. It works well except my 3D scene doesn't display until I manually click a few buttons in my app. Does anyone know how I can get it to automatically display?Here's my Canvas3D code:        Canvas3D canvas3D = new Canvas3D( null );        SimpleUniverse simpleU = new SimpleUniverse(canvas3D);        BranchGroup scene = createSceneGraph();        simpleU.getViewingPlatform().setNominalViewingTransform();       // This will move the ViewPlatform back a bit        simpleU.addBranchGraph(scene);                this.setLayout( new BorderLayout() );        this.setOpaque( false );                //this.setBackground(java.awt.Color.WHITE);        //canvas3D.setBackground(java.awt.Color.WHITE);        this.add("Center", canvas3D);   // -- HERE IT IS - tada! j3d in swingAs I mentioned, I embedding the Canvas3D into a Jpanel using the following code:JPanel OuterPanel;OuterPanel.add("Center", new ThreeDeeScene());Any help would be appreciated../dylan===
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".


Re: [JAVA3D] Memory problem

2005-06-10 Thread Hrvoje Smolic

Saeed, textures consume much memory
in Java. You should increase heap size of your application by argument
-Xmx128m or -Xmx256m...
So: 
java
-Xmx256m YourClass






Saeed Ansari [EMAIL PROTECTED]

Sent by: Discussion list for Java 3D
API JAVA3D-INTEREST@JAVA.SUN.COM
09.06.2005 19:13



Please respond to
Discussion list for Java 3D API JAVA3D-INTEREST@JAVA.SUN.COM





To
JAVA3D-INTEREST@JAVA.SUN.COM


cc



Subject
[JAVA3D] Memory problem








Hello all,
I have loaded about 180 vrml object ( .wrl format ).When
I load the textures I get the OutOfMemoryException, but without texture
it works well.Each object has a 3KB texture.
My RAM is 1.0 GB .
What should I do to remove memory this problem ? 

Regards,
Saeed

Discover Yahoo!
Find restaurants, movies, travel  more fun for the weekend. Check
it out! ===
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.

===
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".

[JAVA3D] Jun for Java (Jun509)

2005-06-10 Thread Yoshiyuki NISHINAKA
We have released a new version, 509, of Jun for Java.

  This is a maintenance release and does not have much changes.

  The major changes since the version 500 includes:

* JunTextEditor is a class for editing a text and behaves as
  a value model, JunTextEditorDialog shows a dialog for
  editing a text with JunTextEditor.

* Adapt to the modified menu framework introduced in StPL7.1.


  You can download Jun for Java from the following URL.

ftp://ftp.sra.co.jp/pub/lang/java/jun4java/


  Jun is a framework for developing 3D graphic multimedia
  applications provided as an Open Source Software at NO COST.
  Please refer to the following URL for more information about
  Jun for Java.

http://www.sra.co.jp/people/nisinaka/Jun4Java/index-e.html


Best regards,
Yosh Nishinaka ([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.


Re: [JAVA3D] Memory problem

2005-06-10 Thread Saeed Ansari

Hello,
I increased heap size up to 512MB, but the problem still exist.
I should say that I tested in IDEs' IntelliJIDEA and Jbuider2005. and I modified their config files and changed -Xmx parameter.
Is it possible that it doesn't change the JVM parameter ?
And also I used System.gc() , and now I can load more objects.
Have you another solution to remove OutOfMemory problem?

Best regards,
SaeedHrvoje Smolic [EMAIL PROTECTED] wrote:
Saeed, textures consume much memory in Java. You should increase heap size of your application by argument -Xmx128m or -Xmx256m... So: java -Xmx256m YourClass 



Saeed Ansari [EMAIL PROTECTED] Sent by: Discussion list for Java 3D API JAVA3D-INTEREST@JAVA.SUN.COM
09.06.2005 19:13




Please respond toDiscussion list for Java 3D API JAVA3D-INTEREST@JAVA.SUN.COM





To
JAVA3D-INTEREST@JAVA.SUN.COM


cc



Subject
[JAVA3D] Memory problem




Hello all, I have loaded about 180 vrml object ( .wrl format ).When I load the textures I get the OutOfMemoryException, but without texture it works well.Each object has a 3KB texture. My RAM is 1.0 GB . What should I do to remove memory this problem ?  Regards, Saeed


Discover Yahoo!Find restaurants, movies, travel  more fun for the weekend. Check it out! === 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".
=== 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".
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
===
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".

Re: [JAVA3D] Memory problem

2005-06-10 Thread Richard Smith

An OutOfMemory occurs when the heap has been expanded to the maximum permitted
and a GC was unable to free up enough space. I suggest in the first instance
observing the results of each GC. Options like -verbose:gc or -Xloggc:file 
give
some basic information, but a more detailed understanding about the various
regions within the heap can be obtained through a combination of -XX options 
such as:

-XX:+PrintGCDetails
-XX:+PrintGCTimeStamps
-XX:+PrintHeapAtGC
-XX:+PrintTenuringDistribution

Short of using a commercial profiling tool, you could also obtain a Heap 
Allocation
Profile to see where large amounts of object data are being allocated but not
freed:

java -Xrunhprof:heap=all,depth=15 TestApp

Further information can be found at the following URLs:

http://java.sun.com/docs/hotspot/gc1.4.2/index.html
http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html
http://java.sun.com/j2se/1.4.2/docs/guide/jvmpi/jvmpi.html
http://java.sun.com/j2se/1.5.0/docs/guide/jvmti/jvmti.html

--

   ,-_|\   Richard Smith - Technical Specialist
  / \  Sun Microsystems Australia Phone : +61 3 9869 6200
[EMAIL PROTECTED]Direct : +61 3 9869 6224
  \_,-._/  476 St Kilda RoadFax : +61 3 9869 6290
   v   Melbourne Vic 3004 Australia
===

===
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.


[JAVA3D] Memory problem

2005-06-09 Thread Saeed Ansari

Hello all,
I have loaded about 180 vrml object ( .wrl format).When I load the textures I get the OutOfMemoryException, but without texture it works well.Each object has a 3KB texture.
My RAM is 1.0 GB .
What should I do to remove memory this problem ? 

Regards,
Saeed
Discover Yahoo!
Find restaurants, movies, travel & more fun for the weekend. Check it out!
===
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".

Re: [JAVA3D] Memory problem

2005-06-09 Thread Laurent Gilson
Hello

 I have loaded about 180 vrml object ( .wrl format ).When I load the
 textures I get the OutOfMemoryException, but without texture it works
 well.Each object has a 3KB texture. My RAM is 1.0 GB .

java limits itself to 64 (32 ?) MB RAM (depends on the version, 1.5 has a
flexible limit ...) . That behavior can be changed with -X parameters. Launch
java -X to get the parameter-list.

cu

===
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.


Re: [JAVA3D] Memory problem

2005-06-09 Thread Saeed Ansari
Hello ,
I am working with IntellijIDEA, and I increased the heap size to 512MB. So now it works for 180 objects but not for 200 objects!!!
And another question: Is it possible to load a vrml object and then clone this object.I have added below my source where I load objects :

BranchGroupbg=new vrmlLoad("03.wrl");
transformgroup.addChild( bg);
bgRoot.addChild( transforngroup);

This loading repeats for 200 objects.

Laurent Gilson [EMAIL PROTECTED] wrote:
Hello I have loaded about 180 vrml object ( .wrl format ).When I load the textures I get the OutOfMemoryException, but without texture it works well.Each object has a 3KB texture. My RAM is 1.0 GB .java limits itself to 64 (32 ?) MB RAM (depends on the version, 1.5 has aflexible limit ...) . That behavior can be changed with -X parameters. Launch"java -X" to get the parameter-list.cu===To unsubscribe, send email to [EMAIL PROTECTED] and include in the bodyof the message "signoff JAVA3D-INTEREST". For general help, send email to[EMAIL PROTECTED] and include in the body of the message "help".__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam pr
 otection
 around 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".

[JAVA3D] Offscreen rendering and JPEG encoding

2005-06-09 Thread Russell East

I have a server app that uses Canvas3D in offscreen mode.  After
receiving a request, the app gets the Canvas3D to render into a
BufferedImage, then uses JAI to encode the image to JPEG.

I've been getting some odd performance stats out of this app, and have
been trying to tune it by choosing different kinds of BufferedImage.

As far as I can tell, if I use TYPE_3BYTE_BGR or TYPE_4BYTE_ABGR
BufferedImage type for the Java3D offscreen rendering, I get a better
performing Java3D render, compared with using something like TYPE_INT_RGB.

But the problem seems to be that by using xxxBGR format BufferedImage,
then the JPEG encoding becomes slower.

According to the JAI folks, you might want to try a component image
with bands ordered as RGB.  And, indeed, use of TYPE_INT_RGB does seem
to yield better performance for JPEG encoding, but, consequentially, the
Java3D rendering seems much slower.

Has anyone tried to figure out a best choice of BufferedImage type,
that works fastest for both the Java3D rendering, and the JPEG encoding?

I've been doing my testing using jdk 1.5, jai 1.1.2_01 and Java3D 1.3.2,
on Fedora Core 3 Linux intel, Solaris 10 sparc, and Windows XP intel.
The results for both WIndows and Solaris seem to be similar, but Linux
seems to be different from them, so maybe I have to choose a different
combo for Linux?

-- Russell

===
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.


[JAVA3D] IndexedQuadArray or...

2005-06-08 Thread Eli Dylan Lorimer

Hello All,

I am looking to do a few simple 3d tasks and was hoping for some
advice on the best way to go about doing it.

I want to create a wireframe 3d cube.
In the cube, I want to display points that I will eventually connect
into lines.
I would like to place a jpeg/png/whatever on the inside of the bottom
face to provide some context for the points displayed in the cube.

My question which Geometry I am best off using? I've successfully
created a wireframe cube using IndexedQuadArray but I'm wondering if
I am better off using LineStripArray? How would I go about displaying
an image on the inside of the bottom face (xy plane in normal
Euclidean geometry).

Any advice would be appreciated.
Cheers.
./dylan

===
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.


Re: [JAVA3D] IndexedQuadArray or...

2005-06-08 Thread John Wright

Dylan,

Although I haven't worked with line strips myself, that does sound like
what you'd want to use for wireframe projects.  Make a normal quad array
with a texture for your base.

- John Wright
Starfire Research

Eli Dylan Lorimer wrote:

Hello All,

I am looking to do a few simple 3d tasks and was hoping for some
advice on the best way to go about doing it.

I want to create a wireframe 3d cube.
In the cube, I want to display points that I will eventually connect
into lines.
I would like to place a jpeg/png/whatever on the inside of the bottom
face to provide some context for the points displayed in the cube.

My question which Geometry I am best off using? I've successfully
created a wireframe cube using IndexedQuadArray but I'm wondering if
I am better off using LineStripArray? How would I go about displaying
an image on the inside of the bottom face (xy plane in normal
Euclidean geometry).

Any advice would be appreciated.
Cheers.
./dylan


===
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.


[JAVA3D] Error when loading wrl file

2005-06-07 Thread Saeed Ansari
Hello all,
I want to load a wrl formay file with VRML97 loader. When I want to load the object I get this error :

java.lang.ArrayIndexOutOfBoundsException: IndexedGeometryArray: index texcoord value greater than the array length

How can I remove this error ?

Regards,
Saeed
Discover Yahoo!
Get on-the-go sports scores, stock quotes, news & more. Check it out!
===
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".

[JAVA3D] VRML Material Swapping Question

2005-06-07 Thread Mark Alexander Friedgan
I would like to make a group blink red for example and I've been trying
to find a good solution to this. I.e. right now what I have is a choice
node which turns on and off wrapping the group, this blinks the objects
in or out of existence but i want them instead to blink red, sort of
highlight. 

What is the best way to do this?

Mark Friedgan
===
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".


[JAVA3D] VRML loader ( .wrl format loader )

2005-06-03 Thread Saeed Ansari
Hi all,
Can anybody give me a link to download VRMl loder for java3d ?

Regards,
Saeed
Discover Yahoo!
Find restaurants, movies, travel & more fun for the weekend. Check it out!
===
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".

[JAVA3D] How to set light on Camera Direction ?

2005-06-02 Thread Saeed Ansari
Hi all,
I want to set the DirectionalLight on camera direction. How can I do this ?


Regards,
Saeed
Discover Yahoo!
Get on-the-go sports scores, stock quotes, news & more. Check it out!
===
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".

Re: [JAVA3D] How to set light on Camera Direction ?

2005-06-02 Thread Justin Couch

Saeed Ansari wrote:


I want to set the DirectionalLight on camera direction. How can I do this ?


The easiest way is to just have the light sitting under the same
TransformGroup as the camera and have it's direction set to 0 0 1. That
way, wherever the camera moves, so does the light.

--
Justin Couch http://www.vlc.com.au/~justin/
Java Architect  Bit Twiddler  http://www.yumetech.com/
Author, Java 3D FAQ Maintainer  http://www.j3d.org/
---
  Programming is essentially a markup language surrounding
  mathematical formulae and thus, should not be patentable.
---

===
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.


[JAVA3D] Problem when changing BranchGroup's children

2005-06-02 Thread Saeed Ansari
Hello,
I want to change the attributes of a BranchGroup's children. I have set the capability of the BranchGroup :
BranchGroup bgRoot = new BranchGroup();
bgRoot.setCapability(BranchGroup.ALLOW_CHILDREN_READ);bgRoot.setCapability(BranchGroup.ALLOW_CHILDREN_WRITE);

and when I want to read the children like below I get error :

for (int i=0; i  bgRoot.numChildren(); i ++) { Object obj = (Object) bgRoot.getChild(i); if ( obj instanceof Building ) System.out.println(" OK"); }

Do you know what is the problem ?

Regards,
Saeed
Discover Yahoo!
Have fun online with music videos, cool games, IM & more. Check it out!
===
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".

[JAVA3D] Connectivity algorithm

2005-05-31 Thread Humberto Trejos
Does somebody know wher to find a connectivity algorithm in java ? I need to
elimiante one of the volumes rendered from a grid.

Dr. Humberto Trejos

===
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.


[JAVA3D] Decimation algorithm

2005-05-31 Thread Humberto Trejos
Does somebody know wher to find a decimation algorithm in java ? I need to
simplify a huge geometry rendered from a grid.

Dr. Humberto Trejos

===
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.


Re: [JAVA3D] comparation java3d and vtk

2005-05-31 Thread Linwei Cheng

- Original Message -
From: Laurent Gilson [EMAIL PROTECTED]
To: Linwei Cheng [EMAIL PROTECTED]
Sent: Tuesday, May 31, 2005 9:39 AM
Subject: Re: [JAVA3D] comparation java3d and vtk



Hello


I just came into this list. Did I miss anything? :)


uhm,... yes: this list is offically unsupported by sun and the
java3d-team. If
you want to reach more people use this list/forum instead:


It's interesting that here is a mailing list just let people show interest
:)  lol



http://www.javadesktop.org/forums/forum.jspa?forumID=55start=0


Thanks.


We're comparing Java3D and VTK now for our interactive graphics
development.


(I don't know VTK, but:) What kind of interactive graphics ?

cu


===
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.


[JAVA3D] Load Object

2005-05-30 Thread Saeed Ansari
Hi all,
I want to load an obj file to my scene.

private URL filename = null;
filename =(getClass().getResource("galleon.obj"));

but it gives nullPointerExeption. I have located the obj file in project folder.

What is the problem ?

Regards,
Saeed
Do You Yahoo!? Yahoo! Small Business - Try our new Resources site!
===
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".

  1   2   3   4   5   6   7   8   9   10   >