ShiVa3D
Mac Plugin creation
ShiVa Plugin DevelopmentMac Plugin creation
by Danka00 » 10 Jul 2011, 10:23
Hi,I'd like to know if the procedure I used is right.
-I've created my first plugin structure in Shiva;
-Double click in the data explore on Myplugin;
-In Edit Plugin Properties => Plugin Binaries ,clicked on Mac Action Icon and choosed Export Plugin Project.
Thank you very much!!
-I've created my first plugin structure in Shiva;
-Double click in the data explore on Myplugin;
-In Edit Plugin Properties => Plugin Binaries ,clicked on Mac Action Icon and choosed Export Plugin Project.
Thank you very much!!
- Danka00
- Gold Boarder

- Posts: 271
Re: Mac Plugin creation
by NiCoX » 10 Jul 2011, 11:35
Yes, now you just have to open the com.mycompany.myplugin/Make/Mac/MyPlugin.xcodeproj file in Xcode (on a Mac) then build it.
Once finished, you have to import it back into ShiVa, using "Import plug-in binary" (same "menu" than the export thing).
Once finished, you have to import it back into ShiVa, using "Import plug-in binary" (same "menu" than the export thing).
-

NiCoX - Platinum Boarder

- Posts: 5626
- Location: France
Re: Mac Plugin creation
by Danka00 » 12 Jul 2011, 20:56
Ok thanks!
Another question, when creating my plugin in Xcode, I've to forget about Shiva?That is, when coding my plugin I only use Apple frameworks, and then when done my Shiva App will import the plugin as a closed box to open with a function in my code?
Isn't true?
Thank you very much!
Another question, when creating my plugin in Xcode, I've to forget about Shiva?That is, when coding my plugin I only use Apple frameworks, and then when done my Shiva App will import the plugin as a closed box to open with a function in my code?
Isn't true?
Thank you very much!
- Danka00
- Gold Boarder

- Posts: 271
Re: Mac Plugin creation
by NiCoX » 12 Jul 2011, 21:17
Another question, when creating my plugin in Xcode, I've to forget about Shiva? That is, when coding my plugin I only use Apple frameworks, and then when done my Shiva App will import the plugin as a closed box to open with a function in my code?
Yes and no. You can make a "Apple only" plug-in if you want (in that case you are totally right), but you can also use all S3DX functions, for instance to send events to objects in your Shiva scene. You can even code all your game logic in a plug-in function.
-

NiCoX - Platinum Boarder

- Posts: 5626
- Location: France
Re: Mac Plugin creation
by Danka00 » 12 Jul 2011, 21:32
That's interesting!So for instance, (I'm just trying to understand
) suppose my plugin creates a calculator, user in shiva could make an addition and the result could rotate a box in my scene with a certain angle of rotation?
All this calling S3DX functions in my apple code?Is it something like writing a document in spanish and at certain point leaving a comment in english knowing that an english person will read it?
Thank you!
All this calling S3DX functions in my apple code?Is it something like writing a document in spanish and at certain point leaving a comment in english knowing that an english person will read it?
Thank you!
- Danka00
- Gold Boarder

- Posts: 271
6 posts
• Page 1 of 1