public void InitDiaHinh(Vector3 pCamPos) { if (File.Exists(modSaBan.myTextureFile)) { this.m_TexImage = new Bitmap(modSaBan.myTextureFile); } else { this.m_TexImage = new Bitmap(modSaBan.myGRID_WIDTH, modSaBan.myGRID_HEIGHT); } modSaBan.my3DSoPixelsPer1000m = this.GetSoPixelsPer1000m(); checked { this.myPixelsPerGridX = (double)this.m_TexImage.Width / (double)(modSaBan.myGRID_WIDTH - 1); this.myPixelsPerGridY = (double)this.m_TexImage.Height / (double)(modSaBan.myGRID_HEIGHT - 1); modSaBan.mySurf2X = (double)this.m_TexImage.Width; modSaBan.mySurf2Y = (double)this.m_TexImage.Height; Bitmap arg_BF_1 = this.m_TexImage; Vector3 pcameraTarget = new Vector3(0f, 0f, 0f); base.InitTerrain(arg_BF_1, pCamPos, pcameraTarget, -0.448798954f, modSaBan.myLightDir); modSaBan.clrColor = CHelper.GetClrColor(this.m_TexImage); this.m_Symbol3Objs = new ArrayList(); base.LoadModelMeshs(modSaBan.myD3DModelMeshFile); base.LoadBillboardMeshs(modSaBan.myBillboardMeshFile); this.m_AngleZ = base.GetAngleZ(); this.m_AngleX = base.GetAngleX(); } }