Hello

> This works (all cars appear at the start and then disappear after x frames
> if their Alpha object value = 0) but the switch doesn't set back to
> CHILD_ALL when their alpha object value is between 0 &  1.  The switch only
> works once?

No, your behavior turns itself off by setting the switch to off. (Switch set
to off => all attached stuff "removed" from the scenegraph => no more
ObjMyCustomSwitchBehavior in scenegraph => no more behavior .... )

> Any suggestions to solve this - or a better way?

Well, it bepends the amount of work you want to spend on the project. You
could:

1. Figure out how many cars can be visible at most at the same time. Create
only that many cars and reuse them for different paths. (=> maybe a lot less
cars => less objects => less RAM-load => faster display/startup)

2. Reduce the number of interpolators. In fact only use 1. Controll/setup all
cars from a single "Master"-behavior. java3d usually works much better and
faster if you only have a small number of Behaviors. BUT you would have to do
the RotPahtInterpolation yourself.

3. Detach cars instead of working with switch. That may be faster, but it
depends on the java3d-version and OS. That will help if you plan use "real"
car-models instead of cubes. But you may also provoce a memory-leak (look in
the archives) ...

4. If you use "real" car-models, think about using SharedGroup. It's no use
with simple cubes, but works wonders then used with complex models.

hope it helps

cu
Gilson Laurent

===========================================================================
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".

Reply via email to