Hi,
Have you insatlled directX 8 ?
If not, you will need to go to the m$ site and download it. You will probably only
find dx9 now though as that is the latest
version.
Cheers,
Brad
Khanh wrote:
Dear,
I am new to Java 3D. When I compile and run my java 3D program, it does not run
Hi,
ALl you need to do is but both objects under teh same transforn group then rotate that
single group. Your scene graph need to
look like this:
BG (root)
|
TG (apply rotate here)
|
BG
||
Obj1Obj2
Cheers,
Brad
Dani F. wrote:
Hi again everybody.
I have a problem when
Hi,
To change the 'origin' of the rotation you can use a TG above your objects to move
them.
The sg would look like this:
TG (for rotating)
|
TG (move your objects here to effect rotation origin)
|
BG (containing you objects)
Cheers,
Brad
Dani F. wrote:
Thanks for your answer.
I have
Hi,
You can add a new vertex to a geometry array by using by-ref geometry and the valid
vertex count.
As the simplest example, say you start with 4 vertices and want to add one more. If
you use a by-ref aray for your coords you
could make the array size 6 and initialy set the valid vetex count
Hi,
Depending on the detail you need the easiest way would be to use a texture to show NZ
etc.
If you need 'real' geometry for the continents etc then you would probably be best not
to try and place the continents over a
sphere. Instead you shoudd use a geo-transform libary to map real earth
Hi,
In short, changing your import statemnts will have no effect on the amount of memory
used or the speed of your application.
Cheers,
Brad
This Email may contain confidential and/or privileged information and is
Hi,
Have you included per-vertex normals in your line array data?
For a light geomtery to be visible you must have a light source, a material and vertex
normals.
Cheers,
Brad
Jasmine Kwok wrote:
Have anyone tried working with LineArray and Material?
My line disappears once i do not set
mean?
Thanks!
- Original Message -
From: Brad Christiansen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 3:45 PM
Subject: Re: [JAVA3D] LineArray with Materials
Hi,
Have you included per-vertex normals in your line array data?
For a light
Hi,
I have used Integer.MAX_VAL as the vertex count in the constructor. This works but I
have no idea if it is wasting any
resources. It seems not to be but I haven't investigated closely yet. I actualy asked
a question a little while back if this
wasted any resources and rescieved no answers.
Hi,
The standard way is to use a shape3D for each tile. This also helps java3D to cull the
geometries etc before sending them to the
vid card. This culling, from my understanding, is only done on a Shape3D basis. Thus
if any part of the Shape3D is visible the
hole thing is sent to the card. If
Hi,
You can add multiple geometries (LineArrays) to a single Shape3D (see addGeometry()).
All these geometries will then share the
same appearance and and transforms applied aboev the Shape3D in the scene graph will
be applied to the Shape3D as a whole.
Cheers,
Brad
Jasmine Kwok wrote:
Hi
count of the strip
array. But, if you make the initial geometry array large
enough (i.e. set to
a known maximum) at construction, you can then use
setStripVertexCounts to
set the current valid strip counts.
Sean
-Original Message-
From: Brad Christiansen [mailto:[EMAIL
throwing away an old one and recreating a new one each time.
Hope this helps.
Cheers,
Brad
greg baboolal wrote:
Hi Brad,
I will look into it, will this work even if the new
array is not the same length (greater than) the
original?
Cheers,
Greg.
--- Brad Christiansen
[EMAIL PROTECTED
Hi,
I am creating a line using a LineStripArray in by-ref mode. If the number of
points(*3) in the line exceed the size of my
coordinate array then i need to set a new coordinate array with a new (larger) size.
When I am doing this the vertex count is
not increasing.
Basicaly the problem I am
Hi,
If you keep a referance to your original coord array then you can simply change the
values in that array directly in the
updateData() method. It goes something like the 'kinda-code' snippet below. If you use
BY_REF correctly you shouldn't need to
set anything other than the values in your
Hi,
You will need to suplpy much more info than that.
The line of you code you included, when used properly definately does work (I use it
myself).
Are you setting the calling:
eg
TransparencyAttributes ta = new TransparencyAttributes(TransparencyAttributes.NICEST,
0.7f);
Appearance app =
Just introduce your own ban. Its from P.Flavin, its atacking the work of the x3d guys
for no apparent reason, ignore and delete.
Works for me.
Michael P. McCutcheon wrote:
Can someone ban this guy from the list?
P. Flavin wrote:
Problem files with the new X3D Loaders often are
NO
Hi CHris,
A texCoordSet is a set of textuer coordinates for the geometry. When you do multi
texturing you can specify several sets fo
texture coords, and then you can specify which set of texture coords to use with each
texture unit. To specify which set of tex
coords to use with each tex unit
Hi,
I may have found a bug in Java3D and have included a very simple test case.
The problem is this:
I create a buffered image then use the texture loader to get a texture (using the
BY_REFERENCE flag).
I then retrieve the BufferedImage from the ImageComponent2D and draw on it using
Java2D
Hi,
I think I must misunderstand what you are saying about array sizes but I very often
initilise arrays with MUCH more than 7000
elements. The following code fills a double array with a million random doubles in one
method with no issues.
Cheers,
Brad
public class Test {
public Test() {
Hi,
I am trying to investigate how texture by reference works in J3D but can't find any
info / tutorials on how it works / how to
use it. Can anyone point me at any info on this?
Cheers,
Brad
This Email may contain
Hi,
I am getting a 'bad major version number' when trying to run the applet in netscape
4.79.
Full error:
# Applet exception: error: java.lang.ClassFormatError: Bad major version number
java.lang.ClassFormatError: Bad major version number
at java.lang.ClassLoader.defineClass(Compiled Code)
Hi,
I just tried it in IE also (version 6) and recieved another error. This time I did see
the chess borad on screen but the
animation was extremely jerky (only about 1 FPS). I have the 1.4.0_01 plug in, J3D 1.3
and a Geforce2 MX card.
Cheers,
Brad
Sound bank not set.
Hi,
I was wondering if anybody had some figures available on wether using a native
compiler for a Java3D (eg ?JRokit? ... if that is
one of them) application (and Java apps in general) improved performance, and by how
much. Failing any benchmark results, what
have been peoples impressions.
Hi,
You use the method get getLocalToVworld() on the shape. Have a read of the javadoc for
this method for the details.
Cheers,
Brad
Jens Allendörfer wrote:
Hi everyone,
I'm currently working with a scene built up with the ObjectFile loader.
That means that I have several Shape3Ds in the
Hi,
I am not sure I realy understand your question, but, if you wish to convert a nodes
location from local coordinates to world
coordinates you need to use the getLocalToVWorld() method of the node in question.
This will give you the transform required to
convert that nodes local coordinates
Hi,
I am not sure how this fits in with what you want, but you can compress the results of
object serilization. Just wrap your
ObjectOutputStream in a zip or gzip output stream.
eg
ByteArrayOutputStream baos = new ByteArrayOutputStream();
GZIPOutputStream gzos = new GZIPOutputStream(baos);
Hi,
I wish to limit the a rotation around the X axis to a maximum of 90 degrees (absolute
value, can be +'ve or -'ve 90). The
following code is what I am using to do the rotation based on input from the
navigation system:
t3d = new Transform3D();
if(direction == NEGATIVE) {
Hi,
You should probably install Java3D as well : )
It is a seperate download to the standard JDK.
Once you have downloaded and installed Java 3D you will have to add its .jar files to
Forte's class path (j3dcore.jar,
j3dutils.jar, j3daudio.jar and vecmath.jar). Once installed these can be
Hi,
Can you not simply remove orignal d.light form the scene and add a new one which
points in the new direction?
Cheers,
Brad
Stoney Jackson wrote:
Sorry, I think I've made a mistake, the directional light is actually
point
TO original from the location you specified. But how can I
Hi,
Use: JPopupMenu.setDefaultLightWeightPopupEnabled(false);
Also look at j3d.org for tips on combing J3D and swing.
Cheers,
Brad
Gael wrote:
Hi everyone,
My question is about the canvas3d object. Everytime I added a popup menu or
a menu bar to my application using, in part, a canvas3d
Hi,
Hvae you enabled pick reporting on all the nodes between the picked leaf and the root?
Only those nodes that have pick reporting enabled will show up in the scene graph path
(I think.. a while since I looked at
picking).
Cheers,
Brad
Gerald (Ted) Quon wrote:
Hi,
I am trying to use
Hi,
Just thought I would let you know that it runs well on my machine (no problems at
all). Looks great.
Cheers,
Brad
Asaf Dafner wrote:
Hi all,
The following site http://cochise.mta.ac.il/~dune/ includes an applet
that uses Java3d, ( http://cochise.mta.ac.il/~dune/lab.html ).
The site
Hi,
I think this is possible. One example (off the top of my head) would be if you wanted
to tile a texture accross the geometry
(please correct me here as I am a bit of a novice). In this case your texture
coordinate array may only have 4 values ( 0,0 0,1
1,0 1,1 ), and then via the indexes,
Looks great David!
David Yazel wrote:
Thanks to some help from Kelvin from Sun we got terrain splatting working.
You need to use an ordered group, not a decal group if you want to get a
zbuffer test of =. The decal group disables the zbuffer test completely.
Here are some screenshots:
Hi,
Just a quick note on the 3 cards you have for a trial. Each of these cards, when they
where first released, where on the lowest
end of the performance scale (eg TNT2 m64 was the cheap, slowest performing TNT2
card). The secound thin I would like to point
out is that all of these cards are
Hi,
You may find this is due to the JIT compiler used in the Hot Spot JVM. I don't have a
very good understanding of this area but
this is my quess as to what is happening.
loop 1: VM interprates byte code 'as is'
loops 2: VM realises the loop is a 'hot spot' so executes the loop using native
Hi,
I am not sure about the specifics of these cards for Java3D, but for general openGL
and DirectX performance the current 'king'
is the Geforce 4 ti 4600. As soon as the Raedon 9700 is available in stores (should be
any time now, if not already) then that
will be the fastest by quite a bit.
Hi,
I have a related question, it seems that if you wanted to show the 'back face' of some
polygons, you have too options, reverse
the winding of your polygon definitions (which may involve recreating/indexing you
geometry) or you could use
PolygonAttributes.CULL_FRONT.
My question is, is
Hi,
I have included some basic code that should do what you are after. The
processStimulus() method simply goes through all the
criteria looking for KeyEvents (occur when a key is pressed, released and typed) then
calls a seperate method to process them.
This seperate method, processKeyEvent()
Hi,
One solution that hasn't been mentioned, and can be more useful (though I haven't
tried it with a canvas3d) is to stop your
other components getting the focus in the first place. This can be achieved by the
JComponent method:
public void setRequestFocusEnabled(boolean requestFocusEnabled)
Hi,
I am note quite sure I understand you question but I will attempt an answer anyway.
1) You can distinguish between too spherses based on there position as you said. If
you want to add your own information about
how each sphere is dfferent you can user the user data member of the Node
Hi,
I am a bit of a novice at Java3D so this might not be a very good idea, but I think
you could get tooltips to work along these
lines:
Add a mouse listener and listen for move movements on your Canvas3D. When you detect
that a movement hasn't occured for a set
period of time you could do a
Hi,
The question about having both vid. card drivers on the same machine made mw wonder
about this:
Is it possible to install both the openGL and directX versions of java3D on the same
JRE/JDK?
Many games have/used to have, a choice to use either openGL or directX for rendering.
This
Hi,
I am really interested in having a look at this project. Sounds very
interesting. I have downloaded all the files and attempted to run them
as you suggested. I get the following error when I do this:
C:\j3d\geosimc:\j2sdk1.4.0\bin\java -Xms100m -Xmx200m -jar
Final_GeoSim.jar
count = 0,
Hi,
Can anyone give me a run down of how a vid. cards memory is used?
For example, a Geforece4 has 128 meg memory. How is this memory used? Is
it shared between the framebuffer geometry and textures, is it just used
for for texturs etc
Cheers,
Brad
John Wright wrote:
Our primary trick is to
Hi,
They have a selection of loaders on j3d.org at:
http://www.j3d.org/utilities/loaders.html
They have loaders for ac3d, vrml, 3ds, dfx, obj etc etc
Cheers,
Brad
Olaf Ringleb wrote:
Hi,
I'm searching for ANY loaders which are available for Java3d at the
time. (e.g. 3dsmax, x3d, BIFS,
Hi,
The list you mentioned does exist but is not used a great deal. You can
find it on j3d.org. They also have some terrain generation code there
that you might find useful.
I am generating terrain from lat/lon/alt data. The basic approach I have
taken so far is:
Using a goetransforms libary I
Hi,
Do you have the latest drivers for you video card installed?
Cheers,
Brad
Jayasree Tangirala wrote:
Hi,
I have successfully compiled but am unable to run the j3d programs. The
error message says:
Exception in thread main java.lang.UnsatisfiedLinkError: C:\Program
Files\Java
Hi,
Not directly what you want but I have had problems using
System.currentTimeMillis() in other applications. As you say the
resolution is very poor (about 10 millisecs). I changed to using the
J3DTimer. Atleast on NT I have found this to give a much finer and more
accurate picture of the
Hi,
What is the best approach for toggeling the visibility of Shape3D's in a
scene?
The user may want to very quickly switch between displaying and not
displaying various shapes in a scene. I considered adding and removing
the objects from the scenegraph but this seems to be overkill. Is there
Hi,
I have been attempting to use the overlay code from the j3d.org
repository. After many failed attempts to get it to work I went back and
did some testing on the demo code. I downloaded the binary (compiled)
distribution and run the LabelDemo. This worked fine. I then tried
recompiling just
Hi,
There is some sample code and discussions at j3d.org.
Cheers,
Brad
Mauro Dito wrote:
i've realized a Shape3D object representing an ancient theatre. Now in the Virtual
universe containing it, i want to use collision detection with this Shape3D and
terrain following. Could someone
Hi,
Thanks for this code David, it has been a huge help. One question
though, how do I make the overlays transparent?
I have tried doing the following to your code with no luck:
changed the type of the BuffredImage to TYPE_INT_ARGB (from INT_RGB)
changed the color used to fill the background
Hi,
I have two points A and B.
I need to find a point C that is a certain percentage P along the line
from a to b.
What formula do I use to determine C given A, B and P ?
eg
A_C__B
where A might be (0,0,0) , B might be (2,6,3) and C is 20% along the
line between
Hi,
What is the best way to get the distance between two points?
ie I want the straight line distance between (0.3, 3, -5) and (6, -3.54,
75)
Cheers,
Brad
This Email may contain confidential and/or privileged
Hi,
I am not sure I understand your issue completely, but for the following
issue:
Another thread handles sending these queued messages to players within range of a
message origination, in a FIFO order. That
particular thread I'm having some problems with. I need it to run all the time, or
Hi,
Just thought I would let you know that the new install worked for me
first time with no problems.
I was one of the people with the 'no suitable vm' problem with the
previous beta 1 install.
Thanks for fixing this. It is great not to have to do a manual extract
and copy of the j3d files.
(I
Hi,
I have encounted an error in an app I was writing and have narrowed it
down to an extremely basic test case (code is inline at the end).
The code below uses a SimpleUniverse to display a ColorCube. If I
uncomment the line adding the color cube to a branch group then the app
terminates with
Hi,
I haven't been able to get the 1.3b installer to work at all on my NT
machine. I followed these instructions (mailed to this list) and all is
good:
rename the install file .exe to .zip
you must extract from it the files(shearch them in):
J3D.dll
j3daudio.dll
J3DUtils.dll
j3daudio.jar
Hi,
I was wondering if anybody could point me at a good (detailed)
discussion of the advantages and disadvantages of the various geometry
array types. I would like info on things such as the relative
performance and memory usage of indexed versus non index, triangle fan
vs triangle strip etc.
I
Hi,
I am pretty new to this so others will proabably correct me, but, looks
like your some of the cubes normals are facing the wrong way. To check
if this is what is happening try:
Appearance a = new Appearance();
PolygonAttributes pa = new PolygonAttributes();
pa.setCullFace(pa.CULL_NONE);
Hi,
I have been trying to install: java3d-1_3-beta1-win-directx-sdk.exe and
I get the following message:
Could not find a suitable Java Virtual Machine on your system ...
Try re-installing the JVM or change the VM used by the application.
I already had jdk1.3.1 installed with j3d 1.2.1 and
63 matches
Mail list logo