Ceres629

I'm migrating from mdx to xna but I can't seem to find the xna  equivalent of the mdx vertex type 'PositionColoredNormal' how do i get this vertex type in XNA

I just want a texture-less colored cube with lighting, it seems strange that there is a more complex VertexPositionNormalTexture type, but no VertexPositionNormalColor type...

Am I missing something here


Re: XNA Framework Where is the PositionColoredNormal Vertex type in XNA?

dczraptor

There is no VertexPositionColorNormal in XNA. You can implement your own vertex types though. I'm not sure why they were left out thuogh. It wouldn't be too hard to implement the 7 different basic vertex structures.




Re: XNA Framework Where is the PositionColoredNormal Vertex type in XNA?

Ceres629

Thats strange...

While i love the structure of the XNA framework over the old MDX one, being a beginner I find there are some very strange and simple things missing from it that were in MDX (like meshes)

Creating a lit non-textured coloured cube or a sphere at run time in mdx was incredibly easy. Now with both meshes gone AND ColoredNormal vertex types gone in XNA I'm completely clueless as to what to do.

The general message is that u can create your own mesh class or vertex type and that it is easy to implement, but if it is so easy to implement why not just include it anyway Does anyone know where i can find some code that implements the Mesh classes and vertex types from MDX in XNA Or a simple explanation on how to do it

Can i just lift the vertex type from MDX straight into XNA




Re: XNA Framework Where is the PositionColoredNormal Vertex type in XNA?

dczraptor

Here's a link on implementing a vertex structure: http://www.riemers.net/eng/Tutorials/XNA/Csharp/Series3/Vertex_format.php




Re: XNA Framework Where is the PositionColoredNormal Vertex type in XNA?

Ceres629

Thanks that helps a lot!