New subdivision algorithm as a plugin
-
Hi all,
A few years back - when c4d r17 was in fashion, i developed a generator plugin with the c++ sdk. Since then, the sdk has changed so much that it looks alien to me... add to that the fact that i don't remember much about how i made it work.
Now, i want to develop a custom subdivision algorithm - a modification of catmull-clark - with a few parameters and sliders in the UI, for c4d r21.
So consider me a total newb and please help me find a proper sdk example that you think might be a good starting point. Many thanks! -
Hi,
in regards to generators, the API has not changed that much since R17.
ObjectData
based generators are still ObjectData based generators.You find a lot of generator examples in the SDK and also on GitHub.
You have to decide what is the best workflow and user interaction for your algorithm. Do you want a generator, an interactive tool or some modeling command with a dialog window?
-
hello,
since r17, some part have change but other remain the same.
I would suggest you to first compile the SDK. For that you will need some steps:
- use the right version of visual studio or xcode, you can find information
here
[URL-REMOVED] - use our project tool to build the solution files.
- compile a debug versions and a release version. Those should just compile out of the box with no errors.
We have a General Plugin Information Manual
After that you have to choose a plugin type that fit your need. For your project as @PluginStudent said, an ObjectData (generator) should be the right one.
You will find tons of information in our manual for example about the GeneratorIn our sdk (you compiled in first step) there are some example that will help you. You have to register your plugin with RegisterObjectPlugin where you can specify a flag so the generator will pick the child object as an input.
About the slider for your parameter you will find information in this page and that manual
Of course if you need help we have this forum where you can find a lot of example, information and help.
And you can open a new thread for each question you have, we will try to answer them as fast as possible.
Cheers,
Manuel.
[URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.
- use the right version of visual studio or xcode, you can find information