开发者

Implement a 3D paint application: how to start?

开发者 https://www.devze.com 2023-01-02 18:55 出处:网络
I want to implement a paint-like application, which will enable kids to create and work with 3 dimensional objects.

I want to implement a paint-like application, which will enable kids to create and work with 3 dimensional objects.

How 开发者_高级运维can I start? What is the right approach? WPF, OpenGL, or Direct3D? (I prefer C# solutions, but C++ is OK also).

Thank you all in advance!

--NewB


Here is an excellent example using WPF you could start with:

http://www.codeproject.com/KB/WPF/Wpf3DPrimer.aspx

However, you should definitely keep an open mind and consider some other possibilities. Because there are actually lots of different ways of doing this sort of thing, all of them with their own relative costs and benefits. It's kind of like ice cream - WPF is probably like chocolate, although that might be too strong a statement.


Just as a note, you may wish to take a look at XNA too - it's a nice API that wraps up a lot of the more complex Direct3D bits and bobs and allows you to jump right in there, it's also for use with C#


I'd skip all of the above, and use a higher-level API like MOGRE or osgDotNet. These will let you switch between DirectX and OpenGL relatively painlessly, and semi-automatically optimize the drawing, as well as supporting quite a few features that will be quite a bit of work to do entirely on your own. You may never need the extra features, but then again you might -- and with these they're more or less thrown in for free.

0

精彩评论

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