Hi fellow j3D addicts,
Following a related issue discussed a couple of days ago, I am overloading
the Billboard behaviour to only wakeup on a change of viewing platform
transform.
The purpose is to avoid continuous rendering which is taking all my CPU
To achieve this, I use the following class
public class MyBillboard extends Billboard
{
TransformGroup pt = null;
WakeupOnTransformChange wakeupFrameTG;
public MyBillboard(TransformGroup transformgroup, int i, Point3f
point3f, TransformGroup platformTransform)
{
super( transformgroup, i, point3f);
pt = platformTransform;
wakeupFrameTG = new WakeupOnTransformChange(pt);
}
protected void wakeupOn(WakeupCondition p0) {
super.wakeupOn(wakeupFrameTG);
}
}
This seems to work my billboard is triggered after each transform change,
sadly the result is not displayed:
indeed the rendering loop seems to ignore the change and do not force a new
render
Is this the reason behing the continuous rendering set in Billboard?
Is this a bug?
Can we manually trigger a new render ?
Hope I have not confused you
Thanks in advance
--
Olivier Fillon Minestar Project
[EMAIL PROTECTED] Mincom Limited
Ph.+61-7-3303-3344 61 Wyandra Street
Fax+61-7-3303-3232 Teneriffe Qld. 4005.
Australia
Company home page: http://www.mincom.com/
Personal home page: http://www.home.gil.com.au/~fillon
--
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".