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
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
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
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
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
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
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
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
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();
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
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
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
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
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
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
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
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;
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
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
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
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
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
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
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
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:
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
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.
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
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
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.
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)
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
32 matches
Mail list logo