I'm using 1.3 beta 1 (OpenGL) on JDK1.3.1_01 - W2K I also assumed it was the same old bug. I'm not sure why the demo code works, but the VRML scene doesn't. I spent a bit of time tracking through the source for each. The old VRML loader using a QuadArray to form a Box, whereas the demo uses the Box primitive. I didn't really have time to dig deeper.
josh >>> [EMAIL PROTECTED] 01/11/02 02:59PM >>> Josh Richmond wrote: > In my application I allow the user to toggle between 1 and 4 > viewports. To do this I remove the JPanels containing the Canvas3D's > from the JFrame, then add the appropriate JPanel(s) back. The problem > is that if I remove and then reintroduce a JPanel with an object > containing a texture, the texture has disappeared when I add it back > in! It is interesting that you state that it works with the demo code from Sun. This sounds suspiciously like a known bug in J3D 1.2.x. Which version of j3d are you using? -- Justin Couch http://www.vlc.com.au/~justin/ Freelance Java Consultant http://www.yumetech.com/ Author, Java 3D FAQ Maintainer http://www.j3d.org/ ------------------------------------------------------------------- "Humanism is dead. Animals think, feel; so do machines now. Neither man nor woman is the measure of all things. Every organism processes data according to its domain, its environment; you, with all your brains, would be useless in a mouse's universe..." - Greg Bear, Slant ------------------------------------------------------------------- =========================================================================== 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".
