Title: Help
You
could set a different actionCommand to each button.
->
button1.setActionCommand("Button1") ;
Then
in the ActionListener class you could inside actionPerformed(ActionEvent e)
method to "ask" for events actionCommand and know which button started th
Call the getSource() method of ActionEvent to find out which button was
pressed.
For example,
public void actionPerformed(ActionEvent event)
{
Object source = event.getSource();
if (source == button1)
{
// button 1 code
}
else if (source == button2)
I have a program that shows four view of the same
scenegraph.
top,left,front and user-head view
And i want to display a simple grid out of lines.
I programmed a Grid-Geometry and it works.
But in user-head and in top view, i only want to see
the XZ-Grid, in front view the XY-Grid and in left
Hi i want to write additional textual Information over
the 3D Scene.
I tried it with a raster. In front of the complete
Scene. I tried to make the black content to be
transparent. But the black content in not transparent.
I tried it with the following.
Raster raster = new Raster();
wait for version 1.3
see http://java.sun.com/products/java-media/3D/1.3.html
at the moment you could work with different activation radii or setting the
back clipping planes and place objects which should not be seen in a View
behind that plane or out of the activation area.
Sebastian Hentschel
> raster.setImage(new
> ImageComponent2D(ImageComponent2D.FORMAT_RGBA,image2D));
>
> objRoot.addChild(new Shape3D(raster));
add an Appearance object to the Shape3D with appropriate TransparencyAttributes
set.
===
Hi-
If I specify capability bits in the Box constructor, I lose the effects of
the Appearance.
For example, when I construct a Box with
Box box = new Box(.3f,.3f,.3f, Box.ENABLE_GEOMETRY_PICKING,ap0);
The box has no Appearance.
When I do:
Box redbox = new Box(.3f,.3f,.3f, ap0);
I se
I'm having some pretty severe texture mapping
problems and I can't see what's wrong. At http://www.users.qwest.net/~kduling/Milkshape/
at the bottom of the page is a screenshot illustrating the problem. It
seems that the first triangle is fine, but after that, it's
unpredictable.
The b
J3DBuffer is a public wrapper class for java.nio.Buffer. This was done
primarily to allow us to support Java 3D 1.3 on JDK 1.3 (having a
GeometryArray method that took a java.nio.Buffer class directly would
have precluded JDK 1.3 support). It also facilitates error checking.
--
Kevin Rushforth
which transparent textures I can use with Java 3D,
besides the .GIF?it is possible to use the format
.PNG?Thanks,J.P.E.O.F
Hi Alejandro,
When Box redbox = new Box(.3f,.3f,.3f, ap0);
is used, the primFlags is set to GENERATE_NORMALS
by default. For other constructor, should add
GENERATE_NORMALS if lighting is used.
i.e.
Box box = new Box(.3f,.3f,.3f,
Box.ENABLE_GEOMETRY_PICKING|Box.GENERATE_NORMALS
,ap
Kevin Rushforth wrote:
> J3DBuffer is a public wrapper class for java.nio.Buffer. This was done
> primarily to allow us to support Java 3D 1.3 on JDK 1.3 (having a
> GeometryArray method that took a java.nio.Buffer class directly would
> have precluded JDK 1.3 support). It also facilitates erro
Another Milkshape Loader has been released. It is located at http://www.gregorypierce.com under the
Cappuccino project. The file URL is incorrect on the site - it should point
to:
http://www.gregorypierce.com/projects/cappuccino/downloads/cappuccino03.zip
Will
fix it this evening.
Hi there just a small problem with overdraw again.
Other than creating a floating JMenuBar
in a separate frame or restricting myself to only use JPopupMenus,
is there any way I can make JMenus heavyweight as
currently all my menus are obscured by my canvas3Ds in my JInternalFrames?
Hi Everybody
I have a question:
" Is it possible to represent parameters that a
virtual camera model has, via
Transform3D t3d1=new
Transform3D();
universe.getViewingPlatform().getViewPlatformTransform().getTransform(t3d1);
?"
I need a vector known as UP and it's
See comments embedded below.
>Date: Tue, 28 Aug 2001 19:38:20 +0200
>From: Artur Biesiadowski <[EMAIL PROTECTED]>
>
>If we are at subject of buffers:
>
>1) How will the buffers be created ? I cannot find a method for this in
>java3d alpha spec.
See the java.nio documentation. Specifically, Byte
Its in
the FAQ on j3d.org. Once you set popups menus to heavyweight - the whole menu
system becomes heavyweight.
-Original Message-From: Spencer Goh
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, August 28, 2001 2:31
PMTo: [EMAIL PROTECTED]Subject: [JAVA3D]
Heavyweight JMenu?
> Its in the FAQ on j3d.org. Once you set popups menus to heavyweight
> - the whole menu system becomes heavyweight.
Not quite correct. You can set it on a per-menu basis. Here's the code I
use in my scribbler application where I use some swing frames and some
heavyweight frames
JMenuBar me
Is there anyway that you can have both
OrbitBehavior and the PickZoom,PickRotate,PickTranslate behaviors going at the
same time?
Thank you,
zak
Thanks for that.. I couldn't find the right method...
Saw the faq etc.. but when I did
JPopupMenu.setDefaultLightWeightEnabled(false) it didn't work for normal
menus.. and I couldn't find a similar method for JMenus themselves...
but I guess your code explains how!
Cheers
Spencer
-Original
Web3d's H-Anim & Java combine, in a new book (sort of) ...
A new Java3d book has a Human model, it's pseudo H-Anim,
which is both good news & bad news.
It's good that Web3d's H-Anim is being featured
in another book, but we've been Aaron Walsh -ed again,
it's inferior to established methods:
Sorry !
Its because I used the calendar to check out a date just before I downloaded
Amapi and got a trial licence. Consequently I accidently set the date
incorrectly and the trial licence did not work therefore
By the way to conclude this little discussion on Amapi.
I can confirm that the e
Yes. The TextureLoader can load PNG files. You can
Adobe PhotoShop to inspect and create the Alpha Channel layer.
- Original Message -
From:
João
Paulo Menegatti
To: [EMAIL PROTECTED]
Sent: Tuesday, August 28, 2001 7:13
PM
Subject: [JAVA3D] transparency
which
23 matches
Mail list logo