Hi,
I get a NullPointer Exception with the following code... What is going
wrong.
Color3f[] colorArray = new Color3f[2000];
//quadArray is in my Geometry, the number of vertices in the geometry is
more than 2000.
quadArray.getColors(0,colorArray)
//similar problem with getCoordinates(..)
OK - I'm puzzled:
'javax.media.j3d.MasterControl.getNumberOfProcessor'
javax.media.MasterControl doesn't seem to be documented.
e.g. see:
http://java.sun.com/products/java-media/3D/forDevelopers/J3D_1_2_API/j3dapi/index.html
Is this an internal class ? getNumberOfProcessor sounds quite
Here is enclosed the class I use to do what you want.
Víctor
"b. white" wrote:
I want to use The wireFrame of the Box but when I set the appearance of
the Box to have the PolygonAttribute PolyGon_Line the wireframe appears
with a diagonal line from the bottom left corner to the top right
You say there are more than 2000 vertices in the geometry, but you only
make an array to hold 2000? That could be a problem, though I think the
real problem is that you are not allocating the colors...
int i;
for(i=0; icolorArray.length; i++)
colorArray[i] = new Color3f();
Same thing
Hi Shravan,
I experienced this problem in my first week working with Java3D.
Maybe my workaround is incorrect, but I think you have to create the
elements of your Color3f array and Point3f array individually first. The
getCoordinates and getColors methods do not allocate, they only assign the
Jack,
I think your getting the DEBUG variable mixed up with another option. I
can't remember it name. But allows developers to add debugging statements
during checkout and remove them for distribution. I can't recall the name
now.
--
From: Jack Pien[SMTP:[EMAIL PROTECTED]]
Hi there - i'm loading in a VRML file (130KB) which uses two jpg files (18
and 17KB) as texture maps - altering orientation and size with mouse is
fine with just a plane colour background but with a jpg background (81KB)
the movement is very slow and jumpy - does anyone know why this shoud be
Matthew Cairns wrote:
fine with just a plane colour background but with a jpg background (81KB)
the movement is very slow and jumpy - does anyone know why this shoud be
or how to solve the problem?
Go back to plain colour. Images as backgrounds are very expensive to
render as each frame you
The way this is written will indeed compile the code. Usually the optimizer
will then remove the code as "dead" code, since it is impossible to actually
execute the code.
Dave Yazel
--
From: Jack Pien[SMTP:[EMAIL PROTECTED]]
Reply To: Discussion list for Java 3D API
Hmm, I had hoped to implement clouds and other atmosphere effects with a
sphere geometry with a rotation applied over time. Sounds like this will be
an expensive solution. How have other people implemented clouds?
Dave Yazel
--
From: Justin Couch[SMTP:[EMAIL PROTECTED]]
Problem 1:
How can I transfer all the movement or update to the scene of the 3D
objects and record it into a script for later use.
problem 2:
How to set limitation of movement on each individual object, so each object
can move only at certain angle or distance relative to another
object.
Hello,
I have just started learning java 3d and I have been
struggling to come to terms with collision detection
and response.What I want is a ball bouncing of a wall.
I have looked at tick tock collision (in the demos)
and managed to modify my code to detect collision
(which is not always
I get
this using Win2k running dual monitors and using J3D OpenGl. However,
using J3D Direct X beta works.
Jon
-Original Message-From: Ben Arbel
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, August 02, 2000 4:07
PMTo: [EMAIL PROTECTED]Subject: [JAVA3D]
nt and java3d
hi all..
Rob,
getNumberOfProcessor is a private method use only within Java 3D for
performance scalability based upon the number of CPUs in the system.
- Chien Yang
Java 3D Team.
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Date: Thu, 3 Aug 2000 09:46:13 +0100
From: Rob Nugent [EMAIL
Matthew Cairns wrote:
fine with just a plane colour background but with a jpg
background (81KB)
the movement is very slow and jumpy - does anyone know why
this shoud be
or how to solve the problem?
Go back to plain colour. Images as backgrounds are very expensive to
render as each
Ipsi,
Forget using Sun's "Collision Detection". I'd recommend you calculate
the new position of the object (ball) and then use picking to see if it
is about to collide with another object. This way you can stop the
motion BEFORE it collides (rather than after).
- John Wright
Starfire Research
Hi Rob,
Yes, MasterControl is an private class specific
to current implementation.
- Kelvin
Java 3D team
Sun Microsystems Inc.
Date: Thu, 03 Aug 2000 09:46:13 +0100
From: Rob Nugent [EMAIL PROTECTED]
MIME-Version: 1.0
To: Kelvin Chung [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Hi Matt,
Some graphics card don't accelerate OpenGL drawPixels() so
draw background is slower. However if you are using Java3D v1.2
beta1 DirectX version, using background is not a problem since
it can directly Blt the image to 3D surface very fast.
Thanks.
- Kelvin
Java 3D
Hi folk,
well so far I've learned that MasterControl is private class
but that doesn't help me much since I cannot run even one
j3d program ...and I've checked java3d.dll in /bin directories
(been there all the time) ...any more suggestion what might
be causing to throw this exception???
Peter
Hi All,
I have trouble in getting a java3d applet work from a
remote client browser. I used HTML converter to create
the HTML page. When I access the applet from a browser
with no swing and java3d installed, I get the prompt
for installing java plug-in for swing. But the browser
is not asking for
Hi,
I've found the following two bugs in J3D VRML classes
(downloaded from x3d's CVS repository):
1) IndexedLineSet is not colored if the color attribute is not
specified but the appearance is. VRML97 specification says:
If the color field is NULL and there is a Material defined for
Hi, i'm having trouble tweaking the Text2D class to create its QuadArray
with referenced vertices instead of by copying. I've essentially altered
the setupGeometry function to do things by reference instead. Only when I
use the altered class, the Text2D object doesn't appear anywhere. In the
code
When you invoke javac on the .java file, add the -verbose switch. It will
show you which directory the runtime engine (rt.jar) is running from. If
this is a directory other than where you told the 3D engine to look for the
JRE, I would be suspect. I had this error also, and had to modify some
It seems your j3d.dll is not being found. Most likely you need to update the
JavaHome path in your registry.
First do a search on j3d.dll and find out where it exist on your computer
then run regedt32 and try changing your
\HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.3 key
24 matches
Mail list logo