Starting C++ coding
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 24/06/2010 at 16:48, xxxxxxxx wrote:
Could this be it? Will I finally start coding in C++? (I don't intend to completely forget about COFFEE though).
I have a few doubts, though. How do you guys create the GUI elements that show up in the Attribute Manager? Do you code it by had or do you use something like Resedit?
Also, on a more specific matter, lets say I would like to create a new type of Camera object. How should I start? Should I clone a regular camera and add it my own tweaks?
Also, if I want to associate a VideoPost to that new Camera object, how should I start.
I know I'm being a bit vague and, even so, I+m asking a lot. But I'm a complete beginner at this.
I already compiled the cinema4dsdk without any errors. I'm using XCode 3.2.3.
Any help into giving my first steps into this would be greatly appreciated.Rui Batista
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 25/06/2010 at 05:10, xxxxxxxx wrote:
Hi Rui,
nice to see you moving on to a "real" language (Just kidding).
Let's see if I can answer some of those questions...
Originally posted by xxxxxxxx
How do you guys create the GUI elements that show up in the Attribute Manager? Do you code it by had or do you use something like Resedit?
I ALWAYS code all my description resources by hand. That way, the .res code will have my code style, which makes it easiert for me to edit and extend it.
Originally posted by xxxxxxxx
Also, on a more specific matter, lets say I would like to create a new type of Camera object. How should I start? Should I clone a regular camera and add it my own tweaks?
As far as I know, custom cameras are not yet possible with the SDK. But you could attach extra information to a camera using a tag, and then evaluate that data in a VideoPost effect.
Originally posted by xxxxxxxx
Also, if I want to associate a VideoPost to that new Camera object, how should I start.
VideoPost effects are performed after the rendering. Since the rendering was done with one of your scene cameras, it should be easy to find out which camera it was. Alternatively, you could create a link field and drag the desired camera in there (in case your VideoPost effect should use another camera than the render camera).
But I'm not 100% percent sure, since I did not get into VideoPost effects yet.
Originally posted by xxxxxxxx
I know I'm being a bit vague and, even so, I+m asking a lot. But I'm a complete beginner at this.
We all were, once. And in some way, we'll always be. You never stop learning.
Originally posted by xxxxxxxx
I already compiled the cinema4dsdk without any errors. I'm using XCode 3.2.3.
Awesome. As long as you can compile without errors, you can try everything you want.
By the way, this might sound like a stupid question, but... did you already download the SDK documentation?All in all, C++ is not much harder than COFFEE. The basic concepts are all the same in every language. In C++ you can do more things than in COFFEE, and you'll have to take care for freeing your memory. But that's about it.
Cheers,
Jack -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 26/06/2010 at 09:45, xxxxxxxx wrote:
Thank you so much, Jack.
I will give it a go.Rui Batista