hi Ron,
there are several Java bindings for openGL. One of them is Magician, i was
working with some time ago. You can use all opengL features via Java
calls. AFAIK openAL is an open source 3D audio library for Linux.
Gernot Veith
janet Ges. f. interaktive Medien mbH
Garmischer Str. 19/21
D-81
hi,
you can try to put an (Inexed-) LineArray around the plane. AFAIK Thickness
and color of the lines can be adjusted
Gernot Veith
janet Ges. f.
interaktive Medien mbH
Garmischer Str. 19/21
D-81377 Muenchen
fon: +49 (0) 89 - 54 26 21 - 19
fax : +49 (0) 89 - 54 26 21 - 15
mail:
moreover: java3d is platform-specific and needs at least jre 1.2.
cult3d is a software-renderer and also runs on jre 1.1.x
Gernot Veith
janet Ges. f. interaktive Medien mbH
Garmischer Str. 19/21
D-81377 Muenchen
fon: +49 (0) 89 - 54 26 21 - 19
fax : +49 (0) 89 - 54 26 21 - 15
mail:
hi,
in NT, classpath-statements must be set in "Systemsteuerung" -> "System" ->
"Umgebung". You must be administrator to set statements there.
If you try to let run the java3d demos in a browser, you first must convert
the html-files with SUN's HTMLConverter.
Gernot Veith
janet Ges. f. interakt
hi,
I've written my own texture loader.It's an easy job and you can customize
it to your own needs.
Use Pixelgrabber and ImageFilter class to grab the pixels and resize the
image to power of 2.
You can implement that all a little bit more sophisticated: You can grab
the pixels asynchronously
and f
hi Peter,
you must perform the intepolator in the local coord system of the cube. see
changes below.
Gernot Veith
janet Ges. f. interaktive Medien mbH
Garmischer Str. 19/21
D-81377 Muenchen
www.janet.de
fon: +49 (0) 89 - 54 26 21 - 19
fax : +49 (0) 89 - 54 26 21 - 15
mail: [EMAIL
hi,
AFAIK, java3d resizes the image dimensions to power of 2 when creating
textures. As texture coordinates are relative to the object coordinates,
the image gets compressed or stretched to fit with the object it gets
mapped onto. Therefore, use image sizes only as big as necesary to get the
qua
hi all,
In the current release, it looks like a directionalLight gets moved when
you move the scene. The error occurs in immediate mode. I haven't tested it
under retainted compiled mode yet. I have attached a demo to show what's
going on. The demo consists of a inner cube (blue, opaque) and a ou
hi,
first, this is not a java3d problem...
since jdk 1.2 you only need to point the classpath to your own java
claases. jdk 1.2 and 1.3 don't need the classpath environment
Gernot Veith
JANET
Gesellschaft f. interaktive Medien mbH
Garmischer Str. 19/21
D-81377 Muenchen
www.janet.de
fon: +4
hi all,
I'm just testing Java3D on Linux and get some strange results. When I start
the HelloUniverse demo, java crashes after a few seconds with segmentation
violation. When I start the PureImmediate demo, everything runs fine.
I'm using SuSE Linux 6.3 with mesasoft 3.1-58, IBM jdk 1.3 for Linux
hi Adam,
thanks for your hints. But without JIT, applications will considerably slow
down. I've also tested SUN's jdk 1.3 for Linux.
It's running worse.
Gernot Veith
JANET
Gesellschaft f. interaktive Medien mbH
Garmischer Str. 19/21
D-81377 Muenchen
www.janet.de
fon: +49 (0) 89 - 54 26 21
Hi,
sorry to say that, but the most importent reason against J3D is its
performance. Not because of the API but - IMHO - rather because of so many
*awkward* or complicated implementations. It would be real a good idea to
make the sources public. This would give J3D a performance boost.
Gernot
hi dean,
java plug-in gets installed with the jdk. start the java plug-in control
panel and choose the jre you want to use. because of a bug in the plug-in,
you have to copy the java3d jar-files from /jre/lib/ext to /jre/lib. next
you have to convert the html-files of the examples by using the ht
hi Ronald,
sure, performance, frame rates, and so on, that all depends on what you
intend to do with J3D. We've tested J3D in an app, that creates and
manipulates a lot of scene graphes and objects at runtime and uses
animations with picking. every time you start an animation, the gc gets
stresse
Hi,
I've made similar experiences. I've taken Nvidias drivers (Viper 550
WinNT4). They seemed to be faster and didn't get any memory problems. But
shading was totally wrong :(
Gernot
[EMAIL PROTECTED]
Andy Wilkinson
<[EMAIL PROTECTED]To:
[EM
hi,
rotation doesn't affect translational components only if the object is
placed in the origin of the coordinate system. If you place your
viewplatform at (1,0,1) and perform a rotation (pi) around the y-axis, the
new location will be at (-1,0,-1). orientation and locations have changed.
if yo
hi,
an example, how you can do it:
//---
View view = new View();
view.setPhysicalEnvironment(new PhysicalEnvironment());
view.setPhysicalBody(new PhysicalBody());
//attach viewplatform
view.attachViewPlatform(platform);
Canvas3D canvas3d = ne
Hi,
you can transform vector (0,0,-1) with the transform3D in question to
receive its current orientation.
Gernot
[EMAIL PROTECTED]
Eric Reiss
<[EMAIL PROTECTED]> To: [EMAIL PROTECTED]
Sent by: Discussion cc:
Hi,
as matrix multiplication isn't cummutative and any homogenous matrix of
transform3D can be made of arbitrary successive mutlplications,
IMHO you cannot extract orientation by interpreting the matrix elements as
an multiplication of predefined sin and/or cos-functions.
This will work only in s
Hi David,
this problem was discussed here some time ago. Barry Walsh has posted a
demo file with some example code to fix that.
Look for "JMenus revisited..." from 06/16/99.
Gernot
[EMAIL PROTECTED]
David Hallé
<[EMAIL PROTECTED]>To: [EMAIL
Hi,
that's what I found out too :(
IMHO one cannot force gc to run at a predefined time. system.gc() is only a
suggestion as you said.
If you are using hotspot, try running it in "classic" mode. this will work
more smooth.
Gernot
[EMAIL PROTECTED]
mark rudolph
Hi Wayne,
this sounds like you're doing your transformations in the local coordinate
system of the object. If you want to let move things in another coordinate
system, you first have to perform a coord. transformation. for example
tranform your object into the CS of your viewpoint, apply navigati
hi Mohammed,
go to http://www.suntest.com/JavaCC/
Gernot
[EMAIL PROTECTED]
Mohammed Akacem
<[EMAIL PROTECTED]To: [EMAIL PROTECTED]
.DE>cc:
Sent by: Discussion Subject
Mohammend,
just go down the site. click on "download pages". You will find links to
download the documention and the classes.
good luck :)
Gernot
[EMAIL PROTECTED]
Mohammed Akacem
<[EMAIL PROTECTED]To: [EMAIL PROTECTED]
Hi Peter,
enlarge backClipDistance of view
Gernot
[EMAIL PROTECTED]
Peter Lueders
<[EMAIL PROTECTED]To:
[EMAIL PROTECTED]
AMBURG.DE> cc:
Sent by: Discussion list Sub
Hi Janet,
with setEuler(vector) you can create a transform3D consisting of the same
orientation as vector. You can do your viewpoint navigation with a single
matrix. First you have to transform your viewpoint into the origin of the
coordinate system. Then apply all rotations. Transform back viewp
Hi Juergen,
I've never used the utility classes, but the error message sounds like you
forgot to set the capability to allow the primitives geometry getting
intersected.
Did you try to set Primitive.ENABLE_GEOMETRY_PICKING ?
Gernot
[EMAIL PROTECTED]
http://www.janet.de
J
hi Peter,
the up vectoe in lookAt() just describes the up direction of the viewer. If
your viewing direction is parallel to the xz pane the up vector is (0,1,0).
In general the up vector should be perpeticular to the viewing vector.
Gernot
[EMAIL PROTECTED]
Peter Lueders
Hi Peter,
take a look to the API Specs, C 11.2 ff. You have to put the transform3d
created by lookAt() into your view object. Use setVpcTo Ec() of View.
This is because the eye position is not the same as the position of your
viewpoint.
Gernot
[EMAIL PROTECTED]
=
hi Daniel,
sure, this can be done.
first get the vector that is perpenticular to your mouse movement.
transform it with Transform3D of the transformGroup containing the
viewplatform.
get an AxisAngle of the transformed vector. get a Transform3D from this
AxisAngle. multiply this transform from le
Hi Daniel,
if you want to let rotate an object around an arbitrary axis in an
arbitrary coordinate system, you have to transform the object into that
coordinate system.
Then transform it into the origin of that coordinate system and apply
rotation. You can get a transform3D consisting of all rota
Hi Dean,
this is a simple example that describes how to let rotate your viewpoint
around an object. The object has to be in the center of its coordinate
system. The viewpoint has to be in the same coordinate system as the object
in question. If not, you first have to apply some coordinate
transfo
hi,
put your viewplatform into a transformGroup and add it via BranchGroup to
your locale. Now you can navigate the viewplatform viewpoint) thru your
scene.
The initial view direction is (like VRML) (0,0,-1). Use Transform3D to
manipulate orientation and translation of your viewplatform.
Gerno
Hi Marina,
IMHO you mean some geometry as wire frame ? You need
PolygonAttributes.POLYGON_LINE. Put this PolygonAttributes-object into your
Appearance-object and apply that to your Shape3D (that is consisiting of
geometry, appearance).
Gernot
[EMAIL PROTECTED]
http://www.janet.de
Hi Edgar,
as far as I know Java3D renders into that canvas3Ds view that gets visible
first. Java3D doesn't let run a render loop for each view. That's why if
you transform one viewplatform it will affect all other views. IMHO this
is not a bug - it's a feature :)
Gernot
[EMAIL PROTECTED]
sorry, no :((
I've tried something similar but didn't succeed so far :(
I would try to use only one view at the same time and switch to the view in
question each time you start a new render loop. Rendered data has to get
buffered for all other canvas3ds so that it cannot get lost when they get
re
Hi Clara,
the problem is, that rtotation takes affect in the local coordinate system.
For example you take a coordinate system with positive x to the right, pos.
y up and pos. z coming out from the screen. Apply rotation counterclockwise
around the y axis. Now, the z axis has the same direction a
Use AxisAngle to let rotate objects about an arbitrary axis by an angle a.
X,y,z are the coordinates of the axis (vector) in question. Direction of
rotation can be described as follows: thumb of your right hand is looking
into the same direction as vector. If you close your hand, your fingers are
Hi Juergen,
I've attached the source code as a zip-file. I've modified HelloUniverse
and added an inner class RotBehavior that listens to MouseEvents. It lets
rotate
colorCube about its local X respectively Y axis. Type ESC to exit demo, F
to run demo in "false" mode (as described in my last ema
Hi all,
when I push a canvas3D running in immediate mode out of the screen and drag
it back slowly, it doesn't get refreshed entirely sometimes.
The render loop consists of
-GraphicsContext3D.clear();
-GraphicsContext3D.draw(shape);
-Canvas3D.swap();
The loop gets processed only when the scene ge
Hi David,
...hmm...good question.Can't you modify or derive your
RotPos...Interpolator class in that way every time it gets triggered, it
will pass its curent trransform3D to the transformGroup of the camera ? If
that is possible, modify it: (just a suggestion...)
public void processStimulus(Enum
Hi,
this was discussed here some time ago. You just have to apply your
transformations against the transformGroup that keeps your viewpoint.
A straight forward solution would be to trigger a bahavior via
Behavior.postID() by an ActionEvent. This ActionEvent must be delivered
from your Button.
(2)
Hi Peter,
you attempted to use a member from outer class in the anonymous class new
ActionListener(). That doesn't work.
You can modify it like:
final Button button1 = new Button("Stop");
button1.addActionListener( new ActionListener() {
public void actionPerformed(ActionEvent e)
{
Hi David,
IMHO, in the first render loop your viewBehavior gets triggered. But
according calculation will be done in the next loop. Why don't you apply
the objects transformation against the transformGroup of your camera in the
same render loop ?
Gernot
[EMAIL PROTECTED]
http://www.janet.de
Hi Pieter,
this is a short code fragment, that creates a texture object from an
image...
be aware, the image dimensions must be power of 2...
//
Image img = Toolkit.getDefaultToolkit().getImage(url);
do you mean does Java3D runs on a MacIntosh G4 ?
IMHO not yet. Apple hasn't implemented Java3D yet. As Java3D is a system
dependend API you cannot run Java3D apps on a system that just supports
Java runtime 1.2X.
Gernot
"BRASSEL Tim (NQ)"
<[EMAIL PROTE
Hi,
I'm running Java3D 1.1.2 openGL with jdk 1.2.2 on win NT SP5. Texturing
works without any problems. Maybe you can post a small demo to show what's
going wrong...There are also a couple of problems concerning openGL support
and graphic cards. ELSA Erazor III does not render shaded meshes in
ac
hi there,
does anyone of you has tried to use environment texture in directX mode ?
I'm actually running an app using immediate mode rendering with directX.
Texture mapping is running fine, but no so environment mapping. OpenGL mode
supports environmwent mapping without any probs.
Gernot
[EMAIL
Hi David,
I've just hacked a small sample for you and attached it as a zip-file.
Start demo with java Orbit URL, where URL is something like
file:///c:\\myimage.jpg
You can use included sky.jpg.
have fun :)
Gernot
[EMAIL PROTECTED]
(See attached file: Orbit.zip)
David C
you can use any graphics card. If it does not support hardware acceleration
by openGL or directx, all rendering stuff will be done by the cpu, will say
your animations will run rather slowly...
Gernot
[EMAIL PROTECTED]
Augustin Gjini
<[EMAIL PROTECTED]>
Hi Marcel,
you can apply a non-uniform scaling to a sphere-object to get an ellipsoid
(or somrthing else)
Transform3D.scale(Vector3d). Or you can build your object by using a 3D
modeling tool (3D Maxx)
and import it via VRML loader.
Gernot
[EMAIL PROTECTED]
Marcel Koonen
IMHO = in my humble oppininon
Gernot
btw. the current issue of the german computer journal c't contains an
interesting test of new graphics cards running under openGL and directx
Desiree Hilbring
<[EMAIL PROTECTED]To:
[EMAIL PROTECTED]
hi,
in short: you can let run java3d applications in retained mode (most
examples are doing that). The renderer is running continously. Or you can
use immediate mode. You have to start and stop the renderer by yourself
(see example pureImmediate...)
Magician is a Java API for openGL, will say if
as far as I know, hardware acceleration does not depend on wether your app
is running in windowed mode. Maybe this will be question in full window
mode.
You can try to get a Diamond card, but I guess they will be sold out
soonWe got some strange effects with our Elsa Erazor. Triangles got
colo
hi,
jdk 1.2 provides Class Cursor. There you will find all infos you need. you
also can use your custom icons for the mouse pointer
Gernot Veith
janet Ges. f. interaktive Medien mbH
Garmischer Str. 19/21
D-81377 Muenchen
fon: +49 (0) 89 - 54 26 21 - 19
fax : +49 (0) 89 - 54 26 21 - 1
hi,
you can build a shape3D that is totaly transparant and apply a texture to
it that consists of a GIF image with transparent background. Texture format
must be of RGBA.
See class Appearance and class TransparencyAttributes how to make your
object transparent.
Gernot Veith
janet Ges. f. intera
hi Dennis,
unzip Zrot.zip and go to inner class Zrot to see what's going on. Use left
mouse button and drag mouse horizontal to let rotate your viewpoint around
the z axis.
Use right mouse button and drag mouse vertical to move your viewpoint along
the z axis.
Andthis is only a hack :-)
(See
hi Andrew,
there is a simple example called pureImmediate.java describing some basics.
Gernot Veith
janet Ges. f. interaktive Medien mbH
Garmischer Str. 19/21
D-81377 Muenchen
fon: +49 (0) 89 - 54 26 21 - 19
fax : +49 (0) 89 - 54 26 21 - 15
mail: [EMAIL PROTECTED]
hmm...I've never used primitives yet. but you can try primitve.getShape().
>Also, will my KeyNavigatorBehavior still work with the renderer stopped?
AFAIK, no
Gernot Veith
janet Ges. f. interaktive Medien mbH
Garmischer Str. 19/21
D-81377 Muenchen
fon: +49 (0) 89 - 54 26 21 - 19
fax :
hi,
it seams that Java3D doesn't run under the new jdk release. I've made some
tests using immediate mode rendering with the 1.1.2 openGL version, but
canvas3d only displays a gray background just as it didn't get initialized.
Gernot Veith
janet Ges. f. interaktive Medien mbH
Garmischer Str. 19
hi,
I've downloaded the 1.2 version and docus from the site in question without
any problems
Gernot Veith
janet Ges. f. interaktive Medien mbH
Garmischer Str. 19/21
D-81377 Muenchen
fon: +49 (0) 89 - 54 26 21 - 19
fax : +49 (0) 89 - 54 26 21 - 15
mail: [EMAIL PROTECTED]
61 matches
Mail list logo