有没有我可以窃取或查看的复合头像脚本? [英] Are there any composite-avatar scripts that I could steal or take a look at?

查看:93
本文介绍了有没有我可以窃取或查看的复合头像脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我即将从事的项目中,将需要生成化身.生成过程将是用户可以选择不同的头,发型,衣服等的过程之一.有些项目一开始也将不可用,必须获得或购买.

关于如何执行此操作,我已经有了一个不错的主意,但是由于这是大量的代码,因此很高兴看到有效的代码示例.理想情况下,我可以将脚本集成到页面中,但是从其他人那里收集想法也很好.

我将使用PHP,但是也欢迎使用其他语言的示例.

已添加:为了澄清,我并不是说随机化身生成器(或基于某些哈希值生成化身的生成器).随机头像生成器与我的意图略有不同.在随机化身生成器中,编程人员对行进路线有更大的发言权.他可以仔细挑选出不会互相冲突的部分,并且可以丢弃那些给他带来麻烦的部分.

就我而言,头像生成器更像是.用户可以选择要使用的头,要使用的发型,要使用的衣服等.那里的方式很多,艺术家会不时地添加新的衣服.测试部件将如何组装或不组装起来要困难得多.有时需要进行更高级的混合(例如,帽子在头发前面有一部分,而在头发后面有一部分).等等.

解决方案

infernowebmedia.com

他们出售廉价且功能齐全的网站代码来制作您自己的头像网站.

In a project I'll be working on soon there will be a need to generate avatars. The generation process will be one of those where the user can select different heads, hairstyles, clothing, etc. Some items will also be unavailable at first and will have to be earned or purchased.

I already have a fair idea on how to do this, but since it is a nontrivial amount of code, it would be nice to see working examples of code. Ideally I could just take a script and integrate into my page, but just gathering ideas from other people would be good too.

I'll be working with PHP, but examples in other languages are welcome too.

Added: To clarify, I don't mean a random avatar generator (or one that generates an avatar based on some hash value). A random avatar generator is subtly different from what I have intented. In a random avatar generator the programmer-artist has a much greater say of what goes where. He can carefully pick out pieces that will not conflict with each other, and he can discard those that give him trouble.

In my case the avatar generator is more like this. The user chooses which head to use, which hairstyle to apply, which piece of clothing to use, etc. There are way more pieces there, with artists adding new ones every once in a while. It's much harder to test how pieces will or won't fit together. Sometimes more advanced blending is required (like a hat would have a part of it in front of hair, and part of it behind the hair). Etc.

解决方案

infernowebmedia.com

They sell a cheap and fully functional website code to make your own avatar site.

这篇关于有没有我可以窃取或查看的复合头像脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆