[JAVA3D] bad Sound URL

2000-07-20 Thread Ajit Dharmik
hi all!   I am trying to create a BackgroundSound using the following code:   MediaContainer song = new MediaContainer("Jungle.wav"); BackgroundSound sound = new BackgroundSound(song, 20.0f); sound.setSchedulingBounds(new BoundingSphere(new Point3d(0.0, 0.0, 0.0), 100.0));   Jungle.wav i

[JAVA3D] Still Struggling With Using Sphere

2000-07-20 Thread Crossley, Allistair (A.)
Dear All,   I plot 2 spheres that are 2.35 VirtualWorld units (m) away from each other (by pythagoras). Their radii are 1.8. 1.8 is given to the Sphere object.   Why then are my spheres so small and seemingly miles from each other when they should be intersecting. To get them to intersect I am

[JAVA3D] Canvas3D in JSplitPane

2000-07-20 Thread kensun
Hello . When I add Canvas3D into JSplitPane ,It doesn't work properly, How can I add Canvas3D oin JSplitPane like JPanel? kensun kensun [EMAIL PROTECTED] === To unsubscribe, send e

Re: [JAVA3D] Removing objects from a scene graph

2000-07-20 Thread Dvorak, Daniel J.
Here's what I did to remove the entire content side of the scene graph: Enumeration allBGs = dummyU.getLocale().getAllBranchGraphs(); // first branchgroup is the view branch, leave it alone... BranchGroup BG = (BranchGroup)allBGs.nextElement(); // if another branch

Re: [JAVA3D] Cloud Points Display

2000-07-20 Thread antimbe
Hay, all How can I put a MainFrame object in a classic GUI. I have an GUI based on JFrame and a MainFrame Object of my Java 3D program that I would like to display into the GUI. Thanks === To unsubscribe, send email to [E

[JAVA3D] vrml loader

2000-07-20 Thread Desiree Hilbring
Hi, I downloaded the x3d.jar and included a vrml loader in my application. Then I tried to read some wrl files. It is quitting every time, the loader is trying to read an image with: E:/vrml/claddingpanel.wrl Error: in loading image Exception: java.lang.NullPointerException Last token was "}" at

Re: [JAVA3D] Still Struggling With Using Sphere

2000-07-20 Thread pierre abel
There is a similar problem with Box, it is because there is an error in the documentation (it is written that the box constructor wants the diameter of the box but in fact it the radius) it is perhaps a similar problem with the sphere ? "Crossley, Allistair (A.)" wrote:  Dear All,I plot 2 spheres

Re: [JAVA3D] Still Struggling With Using Sphere

2000-07-20 Thread Crossley, Allistair (A.)
Well even if it was the diamater of the Sphere that was required that would still only be (1.8 * 2) which is still not enough as I have to multiply 1.8 by 50 to get the intersection happening.   I think you are right though..there is some kind of problem with the geometry utilitiy units. I have

[JAVA3D] FtpClient

2000-07-20 Thread Hock, Gregory
Hi everyone, This is not exactly a Java3D issue ... but we use the code from with our Java3D app so kinda sorta fits :) We are having a problem using the sun.net.ftp package on one of our Win 98 networked PC systems. It appears that the FtpClient is working for methods such as login() and cd();

[JAVA3D] Picking - all help is appreciated

2000-07-20 Thread Bruno Sousa Caiado
Hello. I´m sorry for the "desperate" subject but i´m loosing my mind with this problem...   What i´m trying to do is to find out the (x,y,z) of a point when i click a mouse button   Finding out x and y is easy with the MouseEvent class.My problem is knowing the z value! If the mouse is clicke

Re: [JAVA3D] Removing objects from a scene graph

2000-07-20 Thread J Myron Smith
Look in the archives for my posting: How to set Geometry of a shape3d at runtime (dated May 30 2000) for an example of one possible way to remove objects from a scene graph. -Original Message- From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED]]On Behalf Of Aruna Balasubramani

[JAVA3D] [JAVA 3D] for Ajit.

2000-07-20 Thread Ulrich Staudinger
Hi, I would highly appreciate if you could adjust your system clock! with regards, Ulrich Staudinger   Ajit Dharmik wrote: hi all! I am trying to create a BackgroundSound using the following code: MediaContainer song = new MediaContainer("Jungle.wav");BackgroundSound sound = new BackgroundS

[JAVA3D] VJ++ and JAVA3D

2000-07-20 Thread Pre-Engineering Software Corporation
Anyone know how to set up VJ++ 6.0 to work with Java 2 v1.3 and Java3D 1.2.2. Thank you, drew === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For genera

Re: [JAVA3D] Picking - all help is appreciated

2000-07-20 Thread Crossley, Allistair (A.)
Correct me if I am wrong but are you asking how to get the Z coordinate for a blank point into which you click?   Cos that would be senseless. Picking I think requires that you actually pick an object in the world since that object has an attributed x, y and z location, whereas just clickin

Re: [JAVA3D] Canvas3D in JSplitPane

2000-07-20 Thread JayT
I have a JSplitPane between a JPanel holding a Canvas3D and a JPanel holding Swing components. The whole thing resides within a larger JPanel inside a JFrame. The main thing is the JPanel. Jay - Original Message - From: "kensun" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday

Re: [JAVA3D] Picking - all help is appreciated

2000-07-20 Thread Christopher Collins
Hi Bruno,   I've been working on a geometry editing program for a while now, and part of it includes simple point picking.  You have to do a bit of work to set it up.  You have to set the picking capabilities of the geometries you want to be able to pick.  Also, you have to enable pick reporting

[JAVA3D] Fw: [JAVA3D] Picking - all help is appreciated

2000-07-20 Thread Mauro Fabozzi
Try using some part of this code.    public class PickObjectBehavior extends Behavior {    private int x, y;    private Material highlight;    private Shape3D selectedShape = null;    private WakeupCriterion mouseEvent;    private PickCanvas pickCanvas;    private PickResult pickResult;   

Re: [JAVA3D] SAMS Publishing seeks Java book authors

2000-07-20 Thread Bryan L. Croft
Steve, Thanks for the opportunity. Before I jump into this I would like to know a few things to make sure this is worth your and my time and effort. I am thinking about a book on Java 3D around the lines of "Java 3D API by Example". The book would try to stay to one main type of application/app

Re: [JAVA3D] [JAVA 3D] for Ajit.

2000-07-20 Thread Ajit Dharmik
hi Ulrich, never mind my system clock. My CMOS battery is dead...   BTW, can u tell me what's wrong with this code?? it's gives me "bad URL exception"    MediaContainer song = new MediaContainer("Jungle.wav"); BackgroundSound sound = new BackgroundSound(song, 20.0f); sound.setSchedulingBounds

Re: [JAVA3D] VJ++ and JAVA3D

2000-07-20 Thread J Myron Smith
Search back through the June Achives, someone has indicated they have specific info on doing this, though VJ++ is definitely not the recommended IDE for doing Java work. -Original Message- From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED]]On Behalf Of Pre-Engineering Softwar

[JAVA3D] Two-sided lighting

2000-07-20 Thread bdcr
Hi group, I am in bad need for help... Does anybody know how too give two-sided lighting to a polygon? (i.e able to see lighting on both faces of polygon so if I had a square it would appear the same as if I do a complete flip of square)... Any help would be great.. Note in OpenGL it is done by

Re: [JAVA3D] bad Sound URL

2000-07-20 Thread Warren Dale
Hello Ajit MediaContainer song = new MediaContainer("Jungle.wav"); should be using a URL string such as new MediaContainer("file:./Jungle.wav"); You could use File.pathSeparator rather than '/' so that it's not OS dependent but I don't believe it's necessary for URL. Warren D

Re: [JAVA3D] [JAVA 3D] for Ajit / bad sound problem.

2000-07-20 Thread Ulrich Staudinger
Hi Ajit I don't like this "adjust your time because i do it!", i have seen this in several forums and i don't like it at all. But ok, it's your CMOS-Battery, i'm sorry, but i started deleting your mails, because the answers are down in the list. Sorry. Well, you mentioned, you used the MediaCont

Re: [JAVA3D] Picking - all help is appreciated

2000-07-20 Thread Dvorak, Daniel J.
Chris, I tried using the pickIntersection object on a Shape3D object with multiple geometries, and got erratic results.  I was told it was a bug, and would be fixed in the 1.2.1 release.  Does your project use multiple geometries in one Shape3D? Daniel -Original Message-From: Christop

Re: [JAVA3D] vrml loader

2000-07-20 Thread Gernot Veith
hi, I haven't used the vrml loader yet, but this looks like an error that occured while parsing the vrml file or an invalid image url. Have you made a syntax-check of the file with a vrml viewer (cosmoworlds, vrml plug in,...) ? Gernot On Thu, 20 Jul 2000 13:35:26 +0200, Desiree Hilbring wrote:

Re: [JAVA3D] [JAVA 3D] for Ajit.

2000-07-20 Thread Hongzhi Song
Hi Ajit, Have you tried changing your code into: MeadiaContainer song=new MediaContainer("yourURL\Jungle.wav"); OR String yourURL=getCodeBase().getHost(); MeadiaContainer song=new MediaContainer("yourURL\Jungle.wav"); I cannot ensure it work on your program, it's just my advice on network progra

Re: [JAVA3D] Two-sided lighting

2000-07-20 Thread Kelvin Chung
Hi Brad, See PolygonAttributes public void setBackFaceNormalFlip(boolean backFaceNormalFlip) However, Java3D v1.2 beta1 for DirectX current don't support two-side lighting. You have to use Java3D v1.2 for OpenGL instead. - Kelvin --- Java 3D Team Sun Microsystems Inc.

[JAVA3D] SharedGroup constructed from BranchGroup

2000-07-20 Thread Pondrom, Pierre L
Hi all, Does anyone know how to make a SharedGroup from a BranchGroup? I am using a modified ObjectFile object to get a Scene that has a BranchGroup with a Hashtable of Shape3D's? But some of the files I read have geometry that can be used more than once. In those cases I would like to put them

Re: [JAVA3D] UnsatisfiedLinkError

2000-07-20 Thread Syrus Mesdaghi
If what Jeff suggested did not work, if you are running OpenGL ver of J3D, install OpenGL libs if you are running DirectX ver, install DirectX. As I had mentioned, a while back I had a similar problem and I had to install openGL libs (ofcourse after trying many other things). Today we had the sa

[JAVA3D] Problem with 1.2beta DirectX - Urgent for SIGGRAPH

2000-07-20 Thread Shawn Kendall
I have two problems with the new DirectX beta. One when it runs, I get a dialog box saying: "DirectX 7.0 is required for this version of Java3D" Of course, DirectX 7.0a is in stalled - the lastest. Second, after several mintues of running, or after a "significate" add to the running scene, i.e.

Re: [JAVA3D] Problem with 1.2beta DirectX - Urgent for SIGGRAPH

2000-07-20 Thread Kelvin Chung
Hi Shawn, When J3D initialize, it will try to load D3D library, LoadLibrary("ddraw.dll"); and verify that it is 7.0 and latest : lpDDEnumEx = (LPDIRECTDRAWENUMERATEEX) GetProcAddress(h, "DirectDrawEnumerateExA"); if (!lpDDEnumEx)

Re: [JAVA3D] Problem with 1.2beta DirectX - Urgent for SIGGRAPH

2000-07-20 Thread Shawn Kendall
Kelvin Chung wrote: > Hi Shawn, > > When J3D initialize, it will try to load D3D library, > > LoadLibrary("ddraw.dll"); > > and verify that it is 7.0 and latest : > > lpDDEnumEx = (LPDIRECTDRAWENUMERATEEX) GetProcAddress(h, > "DirectDra