XNA Creators Club Online
Page 1 of 1 (8 items)
Sort Posts: Previous Next

Terrain drawing problem

Last post 11/14/2009 10:19 PM by TheGrunt. 7 replies.
  • 11/7/2009 2:37 PM

    Terrain drawing problem

    I'm having some issues with drawing terrain. I'm using XNA's code generated geometry sample for my terrain processing. The Draw method is same as the one in sample but still i get some wierd problems, terrain (letters) have holes in it... Any sugestions?

  • 11/7/2009 3:44 PM In reply to

    Re: Terrain drawing problem

    Have you checked the heightmap values where the triangles are missing?
    Game hobbyist hell-bent on coding a diabolical Matrix
  • 11/8/2009 6:58 AM In reply to

    Re: Terrain drawing problem

    It almost looks like you don't have enough polys in your object to accomodate the heightmap.
  • 11/8/2009 7:05 AM In reply to

    Re: Terrain drawing problem

    It's hard to say anything without looking at the code and heightmap, but I think Noogy is right about your terrain resolution being too low for the heightmap details.
  • 11/8/2009 9:03 AM In reply to

    Re: Terrain drawing problem

    Without seeing a top-down view and a wireframe I'd have to agree with everyone here.  The dropped tiles are where the letters curve which suggests that its a terrain resolution problem.
  • 11/8/2009 9:15 AM In reply to

    Re: Terrain drawing problem

    I set high res picture for terrain and i still have same problem



    and here is look from up...


            internal void DrawObject(Matrix CameraProjectionMatrix, Matrix CameraViewMatrix)  
            {  
                foreach (ModelMesh mesh in pModel.Meshes)  
                {  
                    foreach (BasicEffect effect in mesh.Effects)  
                    {  
                        effect.EnableDefaultLighting();  
                        effect.PreferPerPixelLighting = true;  
     
                        effect.World =  
                            Matrix.CreateFromYawPitchRoll(  
                            pRotation.Y,  
                            pRotation.X,  
                            pRotation.Z) *  
     
                            Matrix.CreateScale(pScale) *  
     
                            Matrix.CreateTranslation(pPosition);  
     
                        effect.Projection = CameraProjectionMatrix;  
                        effect.View = CameraViewMatrix;  
     
                        effect.SpecularColor = Vector3.One;  
                        effect.SpecularPower = 10;  
                    }  
                    mesh.Draw();  
                }  
            } 
  • 11/10/2009 2:19 PM In reply to

    Re: Terrain drawing problem

    Aleksandar:

    I set high res picture for terrain and i still have same problem

    Try increasing the number of polygons of the mesh instead. That is what I assume Catalina meant with "terrain resolution".

    Increasing the resolution of the height map image can only make the problem worse.

  • 11/14/2009 10:19 PM In reply to

    Re: Terrain drawing problem

    Gorgeous shader, btw!
Page 1 of 1 (8 items) Previous Next
var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG