24th March 2004, 01:31 AM | #11 |
Member
Advanced member
Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 39
|
Re: Please Help!
Try;
Code:
Prototype ACObject *new_object(int type); Code:
Prototype void object_add_vertex(ACObject *ob, Vertex *p); Code:
Prototype Vertex *object_add_new_vertex(ACObject *ob, Point3 *p); |
30th March 2004, 04:46 AM | #12 | |
Senior Member
Professional user
Join Date: Nov 2003
Location: Eugene OR, USA
Posts: 212
|
Re: Please Help!
ive been kinna neglecting making my plugin ...and ive been busy elsewhere :lol:
but im trying to get back to it. im thinking i will just make it as an importer rather than a tool with tcl(mabye ill make a tool later) but all the samples that came with the sdk are old, so right now i dont know how to "register" an importer. Quote:
how do i make an ac_file_importer_func function that returns a ac3d model? if anyone has any importer code, that they could send me, that would be awsome. monstar: creating the object wasnt the my problem, it was getting it back to ac3d. sorry should have explaind myself better. Philip |
|
2nd April 2004, 12:15 AM | #13 |
Administrator
Professional user
Join Date: Jun 2003
Posts: 4,565
|
Re: Please Help!
When you add an importer, you pass the funtion that AC3D will call to load an object e.g.
Code:
ac_register_file_importer("3DS", ".3ds", "3D Studio", ac_import_3ds, ac_import_3ds_info); ACObject *ac_import_3ds (char *filename) { // open the file // create AC3D object structures // return the top object } Andy |
|
|