Skip to main content

ERRORS when using billboard-effect

4 replies [Last post]
yomeng
Offline
Joined: 2004-06-21
Points: 0

heres my problem,
when I try using j3d's provided billboard or my
custom-billboard*, I get the below errors:

-------------------------------------------------------
java.lang.NullPointerException

at javax.media.j3d.RenderBin.collectDirtyTRInfo(RenderBin.java:6302)

at javax.media.j3d.RenderBin.updateObject(RenderBin.java:846)

at javax.media.j3d.MasterControl.updateMirrorObjects(MasterControl.java:2729)

at javax.media.j3d.MasterControl.runMonitor(MasterControl.java:3427)

at javax.media.j3d.MasterControl.doWork(MasterControl.java:2986)

at javax.media.j3d.MasterControlThread.run(MasterControlThread.java:28)
--------------------------------------------------------

actually, I am doing a simple game where the Character will walk where I click in 3Dspace. With the billboard, if I click to walk first, I get the above erros. But if I do some runtime interaction(like rotate) with the view before clicking to move, the errors can be avoided (although this trick doesnt always work, there are still times where after rotating, it still happens).

any ideas?

YM

*custom-billboard (basically jus set the transform of the TG above the viewPlatform to my target TG)

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
yomeng
Offline
Joined: 2004-06-21
Points: 0

thanks alot pple i will go try now

Mike Pilone

YM,

I recognize the stack trace. It is the same as one I reported a while back
that was supposed to be fixed in 1.3.2b1:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4751162

I don't know that it is the exact same bug, but you could try the work
around or grab the CVS code and see if it still happens. If it does, write
up a test case and submit it as an issue.

-mike

-----Original Message-----
From: java3d-interest@javadesktop.org
[mailto:java3d-interest@javadesktop.org]
Sent: Sunday, August 08, 2004 10:34 AM
To: interest@java3d.dev.java.net
Subject: [JAVA3D-INTEREST] ERRORS when using billboard-effect

heres my problem,
when I try using j3d's provided billboard or my
custom-billboard*, I get the below errors:

-------------------------------------------------------
java.lang.NullPointerException

at javax.media.j3d.RenderBin.collectDirtyTRInfo(RenderBin.java:6302)

at javax.media.j3d.RenderBin.updateObject(RenderBin.java:846)

at
javax.media.j3d.MasterControl.updateMirrorObjects(MasterControl.java:2729)

at javax.media.j3d.MasterControl.runMonitor(MasterControl.java:3427)

at javax.media.j3d.MasterControl.doWork(MasterControl.java:2986)

at
javax.media.j3d.MasterControlThread.run(MasterControlThread.java:28)
--------------------------------------------------------

actually, I am doing a simple game where the Character will walk where I
click in 3Dspace. With the billboard, if I click to walk first, I get the
above erros. But if I do some runtime interaction(like rotate) with the view
before clicking to move, the errors can be avoided (although this trick
doesnt always work, there are still times where after rotating, it still
happens).

any ideas?

YM

*custom-billboard (basically jus set the transform of the TG above the
viewPlatform to my target TG)
---
[Message sent by forum member 'yomeng' (ym)]

http://www.javadesktop.org/forums/thread.jspa?messageID=21545&#21545

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
For additional commands, e-mail: interest-help@java3d.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
For additional commands, e-mail: interest-help@java3d.dev.java.net

Kevin Rushforth

The line numbers indicate a Java 3D 1.3.1 with exactly the same bug that
Mike mentioned. It is fixed in the latest build of 1.3.1 (build4). If
you want to download the binary of this release go to:

https://j3d-core.dev.java.net/servlets/ProjectDocumentList

and grab build4 under experimental builds.

-- Kevin

On Mon, 2004-08-09 at 03:41, Mike Pilone wrote:
> YM,
>
> I recognize the stack trace. It is the same as one I reported a while back
> that was supposed to be fixed in 1.3.2b1:
>
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4751162
>
> I don't know that it is the exact same bug, but you could try the work
> around or grab the CVS code and see if it still happens. If it does, write
> up a test case and submit it as an issue.
>
> -mike
>
>
> -----Original Message-----
> From: java3d-interest@javadesktop.org
> [mailto:java3d-interest@javadesktop.org]
> Sent: Sunday, August 08, 2004 10:34 AM
> To: interest@java3d.dev.java.net
> Subject: [JAVA3D-INTEREST] ERRORS when using billboard-effect
>
> heres my problem,
> when I try using j3d's provided billboard or my
> custom-billboard*, I get the below errors:
>
> -------------------------------------------------------
> java.lang.NullPointerException
>
> at javax.media.j3d.RenderBin.collectDirtyTRInfo(RenderBin.java:6302)
>
> at javax.media.j3d.RenderBin.updateObject(RenderBin.java:846)
>
> at
> javax.media.j3d.MasterControl.updateMirrorObjects(MasterControl.java:2729)
>
> at javax.media.j3d.MasterControl.runMonitor(MasterControl.java:3427)
>
> at javax.media.j3d.MasterControl.doWork(MasterControl.java:2986)
>
> at
> javax.media.j3d.MasterControlThread.run(MasterControlThread.java:28)
> --------------------------------------------------------
>
> actually, I am doing a simple game where the Character will walk where I
> click in 3Dspace. With the billboard, if I click to walk first, I get the
> above erros. But if I do some runtime interaction(like rotate) with the view
> before clicking to move, the errors can be avoided (although this trick
> doesnt always work, there are still times where after rotating, it still
> happens).
>
> any ideas?
>
> YM
>
>
>
> *custom-billboard (basically jus set the transform of the TG above the
> viewPlatform to my target TG)
> ---
> [Message sent by forum member 'yomeng' (ym)]
>
> http://www.javadesktop.org/forums/thread.jspa?messageID=21545吩
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
> For additional commands, e-mail: interest-help@java3d.dev.java.net
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
> For additional commands, e-mail: interest-help@java3d.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
For additional commands, e-mail: interest-help@java3d.dev.java.net

Kevin Rushforth

I wrote:
> The line numbers indicate a Java 3D 1.3.1 with exactly the same bug that
> Mike mentioned. It is fixed in the latest build of 1.3.1 (build4). If
> you want to download the binary of this release go to:

That should read "fixed in the latest build of 1.3.2" (not 1.3.1).

-- Kevin

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
For additional commands, e-mail: interest-help@java3d.dev.java.net