开发者

Drawing cloth or surfaces in openGL ES?

I'm trying to draw a 3d kitchen table with openGL, I'm having trouble in representing the tablecloth over it. I would like to be able to deform the tablecloth with gestures suc开发者_Go百科h as swipes. I want to go with a 3d strategy, drawing my tablecloth using a NURB surface, but seems like openGL ES has no support for it.

Any suggestions ?

Any 3d engine for iPhone with features which could help me ?

Thanks.


It sounds like you're asking for a cloth simulation?

Do you need to deform the cloth arbitrarily, or do you have only a set number of "swipes" or deforms you're after? If so, I'd suggest maybe faking it using morph targets. Just make your tablecloth in the DCC package of your choice and set up the deformed positions as morph targets, and blend between them at run time. This will have better performance than a cloth sim of equivalent quality (probably). I'm pretty sure whatever Engines that are our there will support morph targets. (I don't know what's out there - sorry!)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜