如何根据用户选择更改图像颜色 [英] How to change image color based off of user selection

查看:63
本文介绍了如何根据用户选择更改图像颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个滑板网站,允许用户自定义滑板设置。我想知道什么类型的编程用于这种事情,因为我付钱做网站的人说他们不能这样做。



所以例如,会有一张默认的车牌颜色,车轮和卡车的图片都放在一起。从那里,他们将选择他们想要的颜色或印刷品,并且电路板会在不离开屏幕的情况下改变颜色。当他们选择轮子的颜色时,轮子会根据他们的选择改变颜色或尺寸。



任何人都知道这将是什么样的编程?



谢谢!

I am starting a skateboard website that allows user to customize skateboard setups. I wanted to know what type of programming is used for this sort of thing because the people that I paid to do website are saying they can't do it.

So for example there would be a picture of a default board color, wheels, and trucks all put together. From there they would select the color or print they wanted on board and the board would change color without leaving the screen. When they chose color of wheels the wheels would change color or size depending on what they choose.

Anyone know what kind of programming this would be?

Thank you!

推荐答案

你可以简单地准备几个不同颜色组合的设计,完美预渲染,所以用户可以从固定的选项集中进行选择。我知道这根本不酷,但这是你可以立即做的。其他一切都是数量级更复杂的。如果您提出这样的问题,很难相信您有足够的经验来利用和开发更先进的技术。



您可能会记住一些位图颜色转型软件。我可以肯定地告诉你:它可以工作,但是忘记任何质量。无论软件有多好,都无法像设计级软件那样以任意方式自由地改变颜色;这不是因为软件,而是因为信息科学的关注和事物的本质(你想要细胞的3D对象):那些位图不包含真正需要以任意颜色渲染对象的对象的3D结构信息。



所以,我们得出的结论是:你可能需要的最小技术总是包括你的滑板和其他物体的3D模型,以及渲染这些根据要求提供3D模型。请注意,只有最好的软件才能真实地进行渲染。我想说,你可能需要一些你需要在服务器端利用的优质引擎。并且很难相信仅仅是一个PHP库,无论多好,都可以很好地应对这个问题。首先,PHP是解释它可能提供较差的性能。此外,它不是一种严肃的语言;很多人会称之为 ersatz-language ,后者变得流行,主要是因为它便宜,而且资源要求不高。但是,您可以尝试找到一些东西:

http://sourceforge.net/directory/graphics/graphics/3drendering/os:windows/freshness:recently-updated/?q=php+3D+rendering [ ^ ],

http://www.phpclasses.org/package/3364-PHP-Compose-and-render-3D-object-models.html [ ^ ],

http://bfy.tw/PQt [ ^ ]。



我需要警告你:我从未尝试过以上任何事情,但我看到了一些样本;它们太原始了我的口味,几乎不能给滑板网站的用户留下深刻印象,也不愿意订购他们的定制设计。



您可以考虑使用更多高级服务器端技术,但它可能会使您的项目更加真实。不过,你会遇到很多问题,但整件事情真的很可行。



-SA
You could simply prepare few several designs with different color combinations, perfectly pre-rendered, so the user could choose from the fixed set of options. I do understand that this is not cool at all, but this is what you can do immediately. Everything else is orders of magnitude more complicated. If you are asking such a questions, it's hard to believe you have enough experience to leverage and develop more advanced techniques.

It's possible that you kept in mind some bitmap color transformation software. I can tell you for sure: it can work, but then forget about any quality. You don't have a freedom to change colors in an arbitrary way, as the design-grade software requires, no matter how good the software is; this is not because of software, but because of informational science concern and nature of things (3D objects you want to cell): those bitmaps don't carry the information on the 3D structure of the objects really needed for rendering the object in arbitrary colors.

So, we're coming to the conclusion: the minimal technology you may need would always include having 3D models of your skateboards and other objects, and rendering of these 3D models on request. Note that only the best software does this rendering realistically. I would say, you may need some good-quality engine which you would need to leverage on your server side. And it's hard to believe that a mere PHP library, no matter how good, can cope with this problem really well. First of all, PHP is interpretive it may provide inferior performance. Besides, it has been created not as some serious language; many would call it ersatz-language, which became popular mainly because it is cheap, not very resource-demanding. However, you can try to find something:
http://sourceforge.net/directory/graphics/graphics/3drendering/os:windows/freshness:recently-updated/?q=php+3D+rendering[^],
http://www.phpclasses.org/package/3364-PHP-Compose-and-render-3D-object-models.html[^],
http://bfy.tw/PQt[^].

I need to warn you: I never tried anything of the above, but I saw some samples; they are too primitive to my taste, hardly can impress the users of a skateboard site, set aside a desire to order their custom designs.

You can consider using some more advanced server-side technologies, but it might make your project more realistic. Still, you are going to have a lot of problems, but the whole thing is really doable.

—SA


这篇关于如何根据用户选择更改图像颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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