Hi,
I need an algorythme that will allow me to make a circle of
object.
example :
5
6
4
7
3
8
2
1
Hello!
I am using Jbuilder9.0. I want to add a javax.media.j3d.Canvas3D JBean into one
JPanel named "contentPane", but it do not success.And It always reports: 'Class or
public constructor for the class not found: new Canvas3D()'.
Can you tell me WHY??
THANK
Try to instatiate your Canvas3D object this way:
java.awt.GraphicsConfiguration config=
SimpleUniverse.getPreferredConfiguration();
Canvas3D canvas3D = new Canvas3D(config);
There is no exist a Canvas3D constructor with no
arguments.
Alessandro
--- ÕÅ <[EMAIL PROTECTED]> escreveu: > Hello!
>
Of course you can also extends Canvas3D with a zero
argument construtor Bean like class:
public class MyCanvas3DBean extends Canvas3D
{
// since the super class Canvas3D needs a config
// argument
static java.awt.GraphicsConfiguration config=
SimpleUniverse.getPreferredConfiguration();
publi
Hi,
If
speed is not a concern, you can always do something like the pseudocode
below.
loop
theta = 0 to 2 * pi
{
x = xcenter + radius * cos(theta);
y = ycanter + radius * sin(theta);
plot(x,y);
}
Is
speed is a concern, you should use Bresenham's line scan conversion algorithm
hi all,
There is a NullPointerException occured when I attempted to detach a BranchGroup from
the locale, there is a collision detection behavior serves as a child of the
BranchGroup. The call trace is:
java.lang.NullPointerException
at
javax.media.j3d.TransformGroupRetained.getCurrentC
I don't have a lot of knowledge about Java3D. I have been tasked to fix
memory problems with three applications which each create a SimpleUniverse
to display. Each one functions as it should and when I close the
application, the cleanup() (I am running Java3D 1.3.1) method on my
SimpleUniverse ge
Samuel,
Have you tried doing the detach in a j3d Behavior ?
There is a known MT bug with detach() executed in the user thread.
- Chien Yang
Java 3D, Sun Microsystems Inc.
Liu Samuel wrote:
> hi all,
> There is a NullPointerException occured when I attempted to detach a BranchGroup
>
hi, Peter,
I do have an accountID, and I have voted the bug. But it seems the bug you submitted
is not quite the same as mine
Any way, thanks for your help.
PS: Where is the workaround? I see "NO" for workarounds.
Liu
- Original Message -
From: Peter Antoniac <[EMAIL PROTECTED]>
To
Chien Yang:
I tried it out, but unfortunately failed, the exception comes out again.
Any more suggestions to have this job done?
The weird thing is even I disable these behaviors before I detach the BranchGroup,
this problem still will be there. Really troublesome.
Thanks for your repl
Samuel,
Very strange. Can you send us a reproducible test program ?
- Chien Yang
Java 3D, Sun Microsystems.
Liu Samuel wrote:
>Chien Yang:
> I tried it out, but unfortunately failed, the exception comes out again.
> Any more suggestions to have this job done?
> The weird thing is even I d
11 matches
Mail list logo