用C ++建模服装 [英] Modelling clothing in C++

查看:112
本文介绍了用C ++建模服装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望编写一些最终可以绘制人体框架的软件(可以用各种参数进行配置),并且计划要在假人身上穿一些衣服。

I'm looking to write a bit of software that will end up drawing a human frame (which can be configured with various parameters), and the plan is to have some sort of clothing placed on the dummy.

我查看了Blender,OpenGL库以及其他渲染和物理引擎,我不是要你告诉我如何执行此操作,但主要是想知道那里有什么图书馆可以做这种事情?

I've looked at Blender, and OpenGL libraries as well as other rendering and physics engines, I'm not looking for you to tell me how to do this, but mainly I'm wondering what libraries are out there to do this sort of thing?

因此在2d中将有一种服装图案,然后系统(至少在理论上)将其转换为3d表示例如衬衫?然后将其放置在人体框架上。我知道我需要做很多工作,但是在将衣服渲染到框架上,考虑到碰撞以及框架周围如何掉落等方面,我一直在谷歌上搜索,发现了一些有点,但是想知道是否有C ++库可以做到这一点。

So there'll be a pattern for the clothing in 2d, then the system, (at least in theory) will be able to translate that in to a 3d representation of a shirt for example? And then place that on the human frame. I know there's a lot of work I need to do for this, however in terms of rendering the clothing on to the frame, and accounting for collisions and how it drops around the frame etc, I've been googling, and have found a few bits, but was wondering if there were C++ libraries out there that would do that.

我正在使用Visual C ++ 2010开发,目标环境是Windows框。

I'm developing using Visual C++ 2010, and the target environment is a Windows box.

要么,要么我需要上一些物理课。

Either that, or i'm going to need to take some physics lessons.

推荐答案

不幸的是,开发一个像您所谈论的那样的系统将非常困难。从好的方面来说,有很多易于使用的技术可以帮助您有望实现目标。

Unfortunately, developing a system like the one your talking about would be insanely difficult. On the plus side, there are alot of easy to use technologies that will help you attain your goal hopefully.

通常,这种事情的工作方式如下:您在建模程序中制作了一些3d资产,例如Blender,3ds max,Maya,Softimage等,然后在您的程序/游戏中使用它。您可以认为这些程序只是吐出一堆3d坐标,您的程序借助OpenGL或DirectX可以将其加载到内存中并进行渲染。

Generally, the way that this type of thing works is as follows: You make some 3d asset in a modeling program such as Blender, 3ds max, Maya, Softimage, etc, and then use this in your program/game. You can think of these programs as just spitting out a bunch of 3d coordinates, which your program, with the help of OpenGL or DirectX can load into memory and render.

建模当然,加载资产是开发算法以生成点的替代方法。

Modeling and loading assets is of course the alternative to developing algorithms to generate points. This is what it seems like your trying to accomplish.

坏消息是衣服真的很复杂。其中很大一部分是由于大多数情况都需要模拟布料动力学。问题的另一部分是,即使您具有2d图案,您如何将服装与人体模型相结合?皮肤紧吗?疏松?您将如何参数化?实际服装在人体上的放置本身就是一件繁琐的事情,任何有3D建模经验的人都可能会告诉您。

The bad news is that clothing is really really complicated. A big part of this is due to the fact that most of it requires simulating cloth dynamics. Another part of the problem is that even if you had a 2d pattern, how would you the manner in which the clothing would adhere to your human model? Is it skin tight? Loose? How will you parameterize that? The placement of the actual clothing on the body is a chore in and of itself as anyone with experience in 3d modeling might tell you.

尽管如此,一些业内最聪明的专业人员

Nevertheless, some of the industry's brightest professionals are looking for both better ways to simulate cloth, and better ways to automate asset creation.

总而言之,简单的答案就是您尝试做的事情既有趣又有趣

In summation, the easy answer is that what your trying to do, as interesting and noble as it may be, is going to be extremely difficult and may not have the result your looking for.

至于可以找到更多答案的地方:

As for where you can go for more answers:

如果您仍然对寻找一种自动将服装的外观吸引到模型的方法感兴趣,那么我将首先浏览学术网站。寻找具有计算机图形学研究程序的任何计算机科学系。

If your still intersted in finding a way to automate clothing attatchment to models, I would start by looking around academic websites. Look for any computer science departments which have computer graphics research programs. You will find alot of interesting things there.

有关学术型资源的更多信息,请参阅《游戏程序设计宝石》,《 GPU程序设计宝石》和《图形程序设计宝石》系列丛书。他们的文章很多,可以解决诸如此类的图形难题。

For more academic type resources look at Game Programming Gems, GPU Programming Gems, and Graphics Programming Gems book series. They feature many good articles that tackle difficult graphics problems such as these.

您可能要做的另一件事是检查搅拌器。有一个有趣的项目,名为MakeHuman

Another thing you might do is check out blender a little more. There is an interesting project called MakeHuman

http://makehuman.blogspot.com/

这可以自动化在搅拌器中开发人体模型的过程。

That automates the process of developing human models in blender.

有一些教程要在模型上穿衣服,请看一下:
http://www.davidjarvis。 ca / blender / tutorial-05.shtml

There are a couple of tutorials for putting clothing on the models, take a look at this one: http://www.davidjarvis.ca/blender/tutorial-05.shtml

有关搅拌机中服装模拟的更多教程,您可以随时查看

For more tutorials on clothing and cloth simulation in blender, you can always check out

www.blendercookie.com
cg.tutsplus.com

www.blendercookie.com cg.tutsplus.com

我希望其中一些有用。

这篇关于用C ++建模服装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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