From: SourceForge.net <no...@so...> - 2003-01-26 02:57:58
|
Bugs item #664207, was opened at 2003-01-08 07:11 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101111&aid=664207&group_id=1111 Category: Code Group: None >Status: Closed >Resolution: Fixed Priority: 9 Submitted By: Ralf Pietersz (skyflash) >Assigned to: Ralf Pietersz (skyflash) Summary: We need to find a solution for TERRAIN! Initial Comment: This is rather important. We are still without terrain because I think the old way was stupid and is not gonna take us into the next beta. Old way = every landtile is an object New way = ?? I think for now we should have static terrain and then add objects on top. Trees, Stones. Like all the other games do. :P Later maybe change it to preset land tiles that can be put together, but not as an object but as a different, more optimized data structure. ---------------------------------------------------------------------- Comment By: Ralf Pietersz (skyflash) Date: 2003-01-26 04:02 Message: Logged In: YES user_id=180187 Thanks you for your time on submitting this bug! Please checkout the new CVS, this bug has been fixed. If you are not satisfied with the solution, please reopen the bug. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2003-01-10 12:17 Message: Logged In: NO Suggestion: Have square landtiles. Store the position (row, column) within the class, together with the altitude of each of the 4 corners. Divide the tile into 2 triangles along the line between 2 opposite corners with the lesser difference in height. When displaying the tiles draw the 2 triangles. You can add objects on top of the tiles. Altitudes below 0 (zero) are always filled with water. Note that this approach will only give you square maps. If you want to create a spherical world, you must use triangles by default. The triangles will have different sizes. You'll need _a lot_ triangles to make that lifelike. - Guido ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101111&aid=664207&group_id=1111 |