XNA Creators Club Online
foros de la comunidad

Search Forums

Page 1 of 42 (417 items) 1 2 3 4 5 Next > ... Last »
  • Re: Terrain Heightmap Sample very inaccurate?

    You mean a simple cube model? Already tried that, I used the cube from the DX SDK.
    Posted to General (Forum) by Melvil on 24/10/2008
  • Re: Terrain Heightmap Sample very inaccurate?

    Okay, so I reduced the terrain bumpiness from 100 to 30 to make it almost flat (although not entirely flat) and created my own little model which feet were centered around the origin. The results are still as inaccurate as they are with any other model, which yields to unacceptable results where the model is buried half into the ground.
    Posted to General (Forum) by Melvil on 22/10/2008
  • Re: Terrain Heightmap Sample very inaccurate?

    No transformations apart from rotation and translation. I don't know if this model is centered around the origin, the center might also be at the bottom (feet) of the model. But this happens with all models - even if I add an offset to the terrain height (to account for the fact than an object might not be modelled around the origin) - in ...
    Posted to General (Forum) by Melvil on 22/10/2008
  • Re: Matrix Math

    You can multiply the rest of your matrices with a rotation matrix, like this: Matrix worldMatrix =       Matrix.CreateRotationZ(MathHelper.PiOver2) ...
    Posted to General (Forum) by Melvil on 22/10/2008
  • Re: 3-D model lighting

    You can post images, go to the HTML mode and enter this code: <img src="url_to_your_image">
    Posted to General (Forum) by Melvil on 22/10/2008
  • Terrain Heightmap Sample very inaccurate?

    Hi everyone, I'm playing around a bit with the terrain content pipeline sample and try to move my character around the terrain using the HeightmapInfo.GetHeight() method. However, it seems like this method is for some reason incredibly inaccurate. Sometimes my character (the DirectX dwarf model) is flying above the terrain, sometimes ...
    Posted to General (Forum) by Melvil on 22/10/2008
  • Re: Rectangle.Intersects()... defined ?

    Take the tool .NET Reflector, you can then examine the XNA dlls yourself, in case you may also want to know how other methods are implemented.
    Posted to XNA Framework (Forum) by Melvil on 07/10/2008
  • Re: Triangles of Models and Their Positions?

    They're in object space in the vertex buffer. So you should call Vector.Transform(vertex, matrix) for each vertex of a triangle to transform them into the space (world, view, projection) you want them to be in.
    Posted to General (Forum) by Melvil on 05/10/2008
  • Re: Reading/writing level data files (xml?)

    I'd use serialization for this task, the XmlSerializer would do a good job here. You may want to take a look at this article.
    Posted to General (Forum) by Melvil on 04/10/2008
  • Re: Does not exist in the current context. - Forgot

    You seriously need to read a book about programming (or C# programming if that helps with XNA) and learn about the scope of variables. The variable client is nowhere defined in the current scope, in this case the method LoadContent. Also, even if it was defined somewhere in your code, an explicit cast like TcpClient tcpClient = ...
    Posted to General (Forum) by Melvil on 04/10/2008
Page 1 of 42 (417 items) 1 2 3 4 5 Next > ... Last »