Forum
Contact





DirectX using C#
DirectX using C++
DirectX using Visual Basic



Latest Forum posts

 Tutorial 3 for Windows Phone 7
  Posted by: Anonymous
  When: 20/05/2013 at 02:30:13

 No download link for 2d series: shooter
  Posted by: zaboleq
  When: 07/05/2013 at 15:46:28

 Collision Class?
  Posted by: Anonymous
  When: 05/05/2013 at 19:03:59

 stack overflow
  Posted by: cityguy
  When: 07/04/2013 at 01:58:38

 Meshes looks strange.
  Posted by: ab_saratov
  When: 01/04/2013 at 04:31:08

 Lamppost Not loaded
  Posted by: Anonymous
  When: 22/03/2013 at 06:43:52

 Collision Class?
  Posted by: Da_Boom
  When: 21/03/2013 at 01:23:09

 Math boggles me
  Posted by: cityguy
  When: 17/03/2013 at 03:44:48

 Collision Class?
  Posted by: Da_Boom
  When: 16/03/2013 at 03:44:42

 Tree update
  Posted by: Anonymous
  When: 15/03/2013 at 21:11:22

 XNA 4.0
  Posted by: Anonymous
  When: 15/03/2013 at 19:43:57

 Error when I try to run.
  Posted by: Anonymous
  When: 15/03/2013 at 19:21:06

 Error With the Effect File
  Posted by: Anonymous
  When: 15/03/2013 at 18:21:01

 Can only get shadowmap
  Posted by: Anonymous
  When: 15/03/2013 at 15:48:52

 Vertex and Pixel Shader Versions?
  Posted by: Anonymous
  When: 15/03/2013 at 15:07:16

 Unsupported properties
  Posted by: Anonymous
  When: 15/03/2013 at 14:23:00

 Problem Loading Skybox
  Posted by: Rana
  When: 15/03/2013 at 10:34:45

 Black Screen Of Death - Help!
  Posted by: Anonymous
  When: 15/03/2013 at 03:43:43

 2.0 anyone?
  Posted by: Anonymous
  When: 15/03/2013 at 02:19:48

 Defitinition of tha rotation axis
  Posted by: Anonymous
  When: 15/03/2013 at 00:55:14




Topic: Adaptation of Series 2



  
Goto parent category
  
Create a new user account


   Adaptation of Series 2
 Poster : JCKodel
 Posts: 2
 Country :
 City:

  
Posted by JCKodel on 03/01/2007 at 18:47:03
First of all, excelent tutorials! It's my primary source to what I'm intending to do: an isometric engine using tiled terrain based on an array of tile code and height.

So far, I managed to obtain this: with help from Series 2. It renders just one part of the array (as the map is VERY huge) while you move out the camera.

But, there is some problems that I'm unable to work out...

First of all: in Series 2, you use a tiled bitmap with all textures used. I've tried to do that and there is some lines between the tiles (the math isn't precise enough and one tile displays one or more pixels from the tile at side, creating a wireframe effect in the borders of the terrain's tiles.)

The image above is ok because my texture file has only one texture... I need to correct the "blend" of tiled textures or insert more than one texture in the scene, but I just can't think out how! =(

Another problem: the terrain lighning was made using a phong algorithm that I've found on google, but it's not too precise, because all of three normals for a vertex are the same. It would be nice some more tutorials about lights, specially how to calculate normals in this case and what means the light position >.< (where is the light and to where it points out?)

Finally, I'm having problems... better... I just can't at all find the coordinates of the mouse in 3D scene. The scale of the engine is the same of the Series 2 tutorial. How could we click in a top of a building and know exact which array coordinates are those?

I'm willing to share the source code with anyone (my intention was to made some kind of tutorial, as there is no tiled height map for XNA). Ah! It's in VB ^^

Thanx in advance for any help.
 Poster : Anonymous
 Posts:
 Country :
 City:

  
Posted by Anonymous on 03/01/2007 at 18:48:05
The image failed to load >.<
The URL is:
http://www.tenebree.com/isometricengine.png

 Poster : riemer
 Posts: 1392
 Country : Belgium
 City: Antwerp

  
Posted by riemer on 04/01/2007 at 14:32:02
I'm currently finishing Series 3 for XNA, where you'll learn to create your own effect. Once you've learned this, creating alpha blending shouldn't be a problem. Also, the series contains a few chapters on lighting. For example, the lighting intensity relative to a light in 3D space for each pixel is calculated. I think this can be helpful for your second question.

I will make sure I'll have the full 3rd series posted this weekend.

If you're planning to write a tutorial about your code, I would of course be more than happy if I could host it on this site ;) This weekend, XNA will become the primary contents of this site, it's very easy to add a 'XNA for VB' chapter, and the site gets quite a large audience. Of course, you'll get full credits for your pages!
 Poster : JCKodel
 Posts: 2
 Country :
 City:

  
Posted by JCKodel on 14/01/2007 at 13:02:46
I've managed to write the complete isometric engine in XNA, but later I realized that XNA only runs on machines with pixel shader >.< I know... stupid of my part...
Then, I have translated my engine to Managed DirectX. Everything is working very fine... it's possible to render a Ultima Online map, with animated (and transluced) water, etc... but, I'm facing a problem that I'm not able to resolve: how to click on a tile and know what tile is it!

This engine is based on Flightsim tutorial. The tutorial draws a map based on an array.
It is possible to add a tutorial to get the array XY coordinate based on the building top (or ground) clicked by the mouse?
 Poster : riemer
 Posts: 1392
 Country : Belgium
 City: Antwerp

  
Posted by riemer on 16/01/2007 at 07:10:06
You can use Viewport.Transform to do the maths for you.

I should write a ShortTut on this, currently I'm writing on a chapter about normals.

  
Post a new reply
 





Google
 
Web www.riemers.net
If you appreciate the amount of time I spend creating and updating
these pages, feel free to donate -- any amount is welcome !
- Website design & DirectX code : Riemer Grootjans -
©2006 Riemer Grootjans


News
Home
Forum
XNA 2.0 Recipes Book (8)
XNA 3.0 Recipes Book (8)
Downloads
Extra Reading (3)
Matrices: geometrical
Matrix Mathematics
Homogenous matrices
Community Projects (1)
Tutorials (160)
XNA 4.0 using C# (89)
DirectX using C# (54)
Series 1:Terrain (14)
Opening a window
Linking to the Device
Drawing a triangle
Camera
Rotation - Translation
Indices
Terrain creation
Terrain from file
DirectInput
Importing bmp files
Colored vertices
DirectX Light basics
Mesh creation
Mesh lighting
Series 2: Flightsim (19)
Series 3: HLSL (19)
Short Tuts (2)
Resizing problem
Checking Device caps
DirectX using C++ (15)
DirectX using VB (2)