OrientedShape3D not working

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

OrientedShape3D not working

unixnerd
Hope this is the right forum for this.

Just got jogl working after migrating from Java3D 1.5 :-)

I tried Java3D 1.6 a few years ago, in fact it might have been an older version of jogl my memory is poor. But back then I noticed the problem I'm having now.

My program makes heavy use of OrientedShape3D to create text labels that always face the user regardless of rotation. Alas they're not moving at all.

Any ideas? Thanks in advance.
Reply | Threaded
Open this post in threaded view
|

Re: OrientedShape3D not working

gouessej
Administrator
Hello

Actually, OrientedShape3D comes from Java3D, not from JOGL, it's a billboard node. Is your problem a regression (i.e did it work as expected in Java3D 1.5)? Can you reproduce your problem on a small self-contained example please?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: OrientedShape3D not working

unixnerd
It was fine in Java3D 1.5 but may have been broken in 1.6.

I'll try and put an exemple together. I use these in loads of places.

Is there an alternative?
Reply | Threaded
Open this post in threaded view
|

Re: OrientedShape3D not working

gouessej
Administrator
Maybe rather start from scratch, create a basic scene and add a single oriented shape into it. I can't imagine that OrientedShape3D has remained broken for years without someone else reporting it. If it works in a rudimentary example, you'll have to understand what breaks it when you complicate the source code.

P.S: It's not a JOGL bug because com.ardor3d.scenegraph.extension.BillboardNode works whereas JogAmp's Ardor3D Continuation relies on JOGL 2.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: OrientedShape3D not working

philjord
Hi, if you can get me a simple example I can help, or if required a big fat dump of code might help.

Have you set up a bounding sphete or bounding Leaf node so the billboard behavior is triggered?

(Sorry not in front of a computer right now)
Reply | Threaded
Open this post in threaded view
|

Re: OrientedShape3D not working

basti
In reply to this post by unixnerd
Hello unixnerd,
I've made a test scene in which you can walk around, while the Text3D in the OrientedShape3D always faces the camera.
I'm not sure if this is what you meant but i hope it helps.

OrientedShapeTest.zip