class MAP
{
public:
int type;
int height;
}
MAP* pmap;
pmap = new MAP[MWIDTH*MHEIGHT];
Map brushesh?
Hi
Im making 2D map editor. It''s like a heightmap (so no tiles you know) but it has real materials like sand grass granite etc... And it should also have road''s, but drawing good looking road''s is a hard and time taking task so I was thinking that could I use some sort of brushesh to draw road''s?
So basicly im asking how to make 2D road generator if you got world like this:
For straight segments its easy; just get the start and end, figure out some interval points, and determine the heights and normals for each smaller segment and generate polygons or texture coordinates. If you''re asking how to generate paths or cool-looking curved roads, its a different story...
You know what I never noticed before?
quote:
Original post by vanillacoke
If you''re asking how to generate paths or cool-looking curved roads, its a different story...
Ya.. tell that story please

Maybe there''s some tutorials you could point to give me a start? (I haven''t been able to find them my self becose I don''t know what words to look for)
Or what mathematical stuff should I learn? (trigometry of course?)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement