Sign in to follow this  

[mdx] Tutorial/sample code for point sprites?

This topic is 4221 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I'm writing a game in Managed Direct 3d. I'd like to add a particle system to the game using point sprites with alpha blending, however, the internet seems to be devoid of any Managed Direct 3d C# tutorials/samples on point sprites and I'm having a hard time converting vb into c#. Any tips/pointers/links would be greatly appreciated. Thanks, David

Share this post


Link to post
Share on other sites
fervent,

The differences between DirectX and Managed DirectX are for the purposes of learning, mostly syntactical. For example, I'm an experienced DirectX programmer, and I am often able to answer people's questions on how to do something using MDX, even though I've never used it. Typically I just convert my knowledge of C++ into C#, and the "directx" portion is then very similar.(Replace D3DRS_* with RenderStates enum's, etc...)

My advice for learning would be to search for DirectX tutorials, not MDX tutorials, as there are far more available, and then convert the C++ code into C#. The languages are infinitely closer in syntax, then VB->C#, so you should have an easier time understanding the principles being shown. Then its just a matter of replacing all the D3DRS_* and other enums into their appropriate MDX counterparts.

For starters, check the DirectX SDK (Apr. 2006). There is a section in the Documentation (C++ not MDX) on point sprites. Just looking over it, you shouldn’t have a problem converting that info into MDX.

Cheers!

Share this post


Link to post
Share on other sites

This topic is 4221 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this