In a project I am working soon, there will be an incarnation required. Generation process will be one of them where the user can choose different heads, hairstyles, clothes etc. Some items will not be available before and they will have to be earned or bought.
I have a fair idea on how to do this already, but since it is a non-statistical amount of code, it would be nice to see examples of code working. Ideally I can just take a script and integrate it into my page, but it would also be good to gather ideas from other people.
I'll work with PHP, but examples in other languages are also welcome. / P>
Added: To clarify, I do not mean a random incarnation generator (or which generates an avatar based on the hash values). A random avatar generator is different from what I have intented. In a random avatar generator, the programmer-artist has a lot to say about where he goes, he can carefully choose pieces that will not fight with each other, and he can give up those people who are upset about them. We do.
In my case Avatar Generator is more like. Which head the user uses, which is to apply hairstyle, pieces to use clothing, etc. etc. There are more pieces, as well as add new artists every time in some time. How difficult it is to test how pieces will not fit together or not. Sometimes, more advanced blending is required (such that a part of the cap is in front of the hair and the part of the hair behind it). And so on.
[ edit: updated question has been modified) < / P>
I think this is mainly a matter of designing parts. You have some basic forms (male, female, long / short, etc.) for which you have styles (like hair) that are designed to completely match and align, instead of solving this problem of algorithm. Probably a bad choice in terms of and probably not necessary for non-animated data.
However, you will need some extra alpha-channel / transparency mask or something for the combination of head, hair and cap
In addition, these parts must be added to the layer like a monster ID.
Comments
Post a Comment