Skip to main content

1.4.x -> 1.5.0 regression: canvas peer = NULL

7 replies [Last post]
mikofclassx
Offline
Joined: 2003-07-02

Hello Java3D team,

It seems I have found a regression in the 1.5.0 Canvas3D.

Please download the test code here:

http://www.classx.it/public/j3d_tests.zip

the archive contains the test code, startup exe, pre-compiled classes, the official java3d 1.5.0 release (and of course the infamous good old Canvas3DStressTest, always good for your tests).

Unpack and start the preview3D.exe test.

The test uses an offscreen canvas in order to render a "behavioured" scene into a component. The test code is quite interesting for those who want to create transparent custom interactive swing components with very little effort. Just get into the src, turn on the transparentOffScreen and enable some AlphaCompositing..

Ok, back to our test case, we should see a raw sphere on a multi-color background. But.. this only works with 1.4.x.

With the new 1.5.0 the offscreen canvas peer is null and nothing is painted.

Where's the problem with the new Java3D ?

Cheers,

Mik.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
mikofclassx
Offline
Joined: 2003-07-02

Ok Kevin, thanks for the suggestion.

The test zip was "battery included" for the lazy people (like me) that don't want to mess too much with .bat, paths, setups and so on.

Cheers,

Mik
--

mikofclassx
Offline
Joined: 2003-07-02

Welcome back Kevin,

can you give this issue a quick review ?

Mik
--

kcr
Offline
Joined: 2004-03-17

I'll take a quick look. Btw, it's usually better to file an issue with the issue tracker so we don't lose track of it.

-- Kevin

kcr
Offline
Joined: 2004-03-17

One more thing. It's more helpful if you don't package up the java3d jar and dll files -- we need to run them on our own builds. Also, the *.exe files do us no good, since we do most of our testing/debugging on Linux (and via NetBeans anyway). It makes the attachments smaller, too. Thanks.

-- Kevin

kcr
Offline
Joined: 2004-03-17

I can reproduce the visual problem. Please file an issue via the issue tracker and attach the test program (minus the .jar, .dll and .exe files) to the issue. We'll take a look at it for 1.5.1.

Btw, I don't know what you mean by the term "peer" when you say "offscreen canvas peer is null". Please clarify this when you file the issue.

Thanks.

-- Kevin

mikofclassx
Offline
Joined: 2003-07-02

Good that you replicated the issue.

With "peer" I mean the native AWT peer of the canvas. It is NULL with 1.5.x and valid with 1.4.x.

I'm going to file the issue.

Cheers,

Mik
--

mikofclassx
Offline
Joined: 2003-07-02

Issue 429 created.
https://java3d.dev.java.net/issues/show_bug.cgi?id=429

Good Luck.

Mik
--