Hello Carsten, > from your description there are two things going on here: > > 1) all materials (even the unused ones) from a .mtl file are created. > This is clearly wasteful and I'll be more than happy to accept patches > that only create actually used materials. That being said the unused > materials should get deleted after the loading completes, because > nothing references them any more - if they stay around that's a bug.
Well, then it's actually a bug (at least in OpenSG 1.8) but I can't supply a patch. I just wanted to inform you about this issue. My small changes were for testing purposes only and won't really fix the problem. Nevertheless I can supply these changes if you are interested in them. > 2) there is no sharing of materials across multiple file loads. > This is admittedly also not optimal, but OpenSG does not implement a > resource system that keeps track of loaded textures, meshes, etc. So > there really is not a good way for the system to locate already > existing materials (there is no central registry to ask). In 2.0 the > loader interface has a "resolver" argument, that can be used by > applications to implement caching, but currently only the VRML loader > makes some use of it. I see. Thank you for your fast answers. Cheers Till -- GMX DSL Doppel-Flat ab 19,99 €/mtl.! Jetzt auch mit gratis Notebook-Flat! http://portal.gmx.net/de/go/dsl ------------------------------------------------------------------------------ What happens now with your Lotus Notes apps - do you make another costly upgrade, or settle for being marooned without product support? Time to move off Lotus Notes and onto the cloud with Force.com, apps are easier to build, use, and manage than apps on traditional platforms. Sign up for the Lotus Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users