APEXnow
9th January 2004, 01:45 PM
At the moment, I'm currently writing an export plugin for AC3D v4.0.7. From what I can see, the v3 SDK is not that much different from the v4 AC3D.lib file, so I've put upon myself to write an exporter for a given fileformat. So far, my plugin is initialized correctly and the plugin function is executed.
Now. one of the exported AC3D functions is ac_object_get_type which determines whether an object is.. an object, a group, a light or the world object. If I create a new workspace, create two cubes and then group them, the function above behaves correctly:-
WORLD -> GROUP -> CUBE, CUBE
Where GROUP is of type 1 (Group).
Now if I load the "AC3D4\Models\Samples\Mydesk4.ac" and then perform the same export, although the group right below the World object is called "workstationandfurniture", the above function returns 0 (Object). It returns 0 on all objects in the file irrespective of whether the item is a group or an object. Is this a bug or is it something else?
This doesn't cause a problem for me if I create new files but if I load the examples for testing export, the problem prevents me from working out a group hierachy without having to traverse the world object list etc etc.
Thanks.
Paul
apex@apexnow.co.uk
http://www.apexnow.co.uk
Now. one of the exported AC3D functions is ac_object_get_type which determines whether an object is.. an object, a group, a light or the world object. If I create a new workspace, create two cubes and then group them, the function above behaves correctly:-
WORLD -> GROUP -> CUBE, CUBE
Where GROUP is of type 1 (Group).
Now if I load the "AC3D4\Models\Samples\Mydesk4.ac" and then perform the same export, although the group right below the World object is called "workstationandfurniture", the above function returns 0 (Object). It returns 0 on all objects in the file irrespective of whether the item is a group or an object. Is this a bug or is it something else?
This doesn't cause a problem for me if I create new files but if I load the examples for testing export, the problem prevents me from working out a group hierachy without having to traverse the world object list etc etc.
Thanks.
Paul
apex@apexnow.co.uk
http://www.apexnow.co.uk