> I'm not sure I follow entirely. Are you trying to load several parts > (of, say a car), then want them connected in your app under the root? > If so, you naturally need to connect them yourself, and try to recover > the connectivity somewhow. How to do that varies wildly depending on > your data, if you just have a car (i.e. body + wheels, not suspension) > it's should only be a matter of adding all parts to a transform and move > that around. > > If the transform is identity, then you might have the data in the > vertices (that are then relative to world center, not object center). > Check your data and make sure you export stuff correctly and get what > you expect in the VRML. > > (I often find this to be the problem, that the VRML-data is not exactly > what I want. OpenSG does a very good job at importing the VRML keeping > the exact data and structure. I haven't yet found a flaw in OpenSG w.r.t > this, it is usually my data.) > > Regards > /Marcus
Thanks for your answer, but my problem actually is that I have a complex model drawn with a CAD application that is split into many components by the CAD app. Each component is saved to a single vrml file. If I just load all the models under a common parent in the scenegraph I can correctly see the big model cause in each VRML file the CAD app saves a matrix that specify where each model should be with respect to the world axis. In my application (which is a stereo viewer in a CAVE environment)I need to pick a single part of entire model through a tracked pointer. When a pointer picks a model, the transformation performed by the pointer (which I compute through tracking system) should be reproduced by the model. My problem is now that when I move the objects with the pointer they move keeping their initial transformation, that is objects centered in origin are moved corretly, and objects transformed keeps an offset from the point that I actually move. For now I set to identity the local transform when I pick an object but for some models I cannot find this transformation where I expect it to be, so they continue to mantain their offset. I hope that all this now looks clearer... Thanks Esimio prof. Antonio Lioy ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
