Fixed! :)

I remembered Ingo saying that he'd removed the transparency attributes from his raster 
labels to fix some stuff, where as I'd left them in the org.j3d one but set them to 0f 
instead of 1f. I went back and removed the attributes and hey presto I can now switch 
the labels off again with 
setTransparencySortingPolicy(View.TRANSPARENCY_SORT_GEOMETRY)!

So it appears to be a Raster object with transparency that is within a Switch stays 
persistent when switched off if 
setTransparencySortingPolicy(View.TRANSPARENCY_SORT_GEOMETRY) is used.

If you think this is still a j3d bug (not just me having no clue how it should work :) 
and want an example let me know and I'll put something together.

Jason.

>>> [EMAIL PROTECTED] 25/07/2002 11:14:13 >>>
Thanks for the reply Mark!

I've done a load of debuging to try to narrow down what is happening and I think I now 
know.

I can actually traverse the tree fine, I find all the nodes I'm after, dig into them 
and get ahold of the apropiet Switch node and can change the current Switch 
perfectectly well.

However the switch in question contains a Raster label based on the 
org.j3d.geom.RasterTextLabel (with a few fixes that I impremented). When I switch this 
off it doesn't disappear from the screen, the switch is at the correct position but 
the object appears to be stuck. No error is produced and if I add a second object to 
that switch ( i.e. a ColorCube) that object appears and disapears fine but the label 
remains.

I'll try to put a small example together now that I know where the bug is.

Cheers,
           Jason.



>>> [EMAIL PROTECTED] 25/07/2002 02:22:34 >>>
> Date:         Wed, 24 Jul 2002 20:16:10 +0100
> From: Jason Taylor <[EMAIL PROTECTED]>
>
> With this enabled I can no longer travel my live tree to search for certain
> nodes. I'm still trying to locate which node is causing a Cant read children
> exception, as far as I'm aware the numbers I get don't tie up with what I
> think should be in that Branch... but basicly if I comment out that one
> setTransparencySortingPolicy(View.TRANSPARENCY_SORT_GEOMETRY) line it works
> fine, put it back in it fails.

Sounds like it could be a Java 3D bug.  The transparency sorting policy
shouldn't affect the application view of the scene graph.  Please send us a
test case for investigation.

Thanks -- Mark Hood

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

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

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