THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 14/06/2007 at 13:55, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R8.2-R10
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
---------
I really like the type of IK that DAZ|Studio employs in the form of 'Power Pose'. From my excursions into learning about IK solvers, I found out that this is based upon Yamane-Nakamura's Full-Body IK system which is generally known as 'Pin-and-Drag' or 'Pin & Drag'. I'm not going to read their paper and try to implement the maths (which get complicated - matrix Singular Value Decomposition and so on).
Actual code algorithms for this are even more sparse than CCD IK. I've only found one - in the open-source 'Art of Illusion' application. Ah, but it is Java and there are some conversion complications associated with going from Java to C++. For one, Java is always exception enabled whereas I'd not use it with the C4D SDK at all. That shouldn't be too much work to remove exceptions for some other error handling interface (like the one that I already use). A big one here is that Java arrays have basic features that C++ doesn't support such as A.length where A is an any-dimensional array and length returns the dimension. Of course, Java supports GC so all allocated memory will need to be literally deallocated in C++. This is just a cursory overview of the code and it is assured that other conversion issues may crop up during the process.
The code is commented well, but there is a lot of code and it depends upon JAMA (Java Matrix) and of course standard Java interfaces (util, math, etc.).
There are two pleas here:
1. Can anyone provide assistance in developing this form of IK? And by anyone, I'm particularly talking to Maxon tech support. :)
2. Any good references/links to robust Java->C++ code conversion procedures?
Thank you very much,