CFS3 map dimensions?
Results 1 to 12 of 12

Thread: CFS3 map dimensions?

Hybrid View

  1. #1

    CFS3 map dimensions?

    I'm currently researching certain ways to improve terrain and water rendering, not sure yet if anything good will come out of this.
    One issue I came across: there's a cfs3h2o.dds file which defines sea color and covers the whole map (though it is flipped vertically). I need to find a way to calculate coordinates in this file based on world coordinates. Of course CFS3 already does it for its water, but so far I'm unable to reverse engineer that part.

    For the stock CFS3 Western Europe I calculated that the map is a "square" (I guess the Earth if flat ) with a side of about 1560 km. However I don't know where this size comes from: is it hardcoded? Or is it somewhere in the game data?

    I know there are other maps - Pacific Ocean and North Africa, but I don't have them installed and can't verify the size.
    Are those maps the same size as the stock one? Or if they are different, what controls it?

    The only remotely related thing I found is in cfs3europe.xml inside terrains\terrdata.zip:
    <Terrain OriginLat="N48 0.0" OriginLon="E3.5 0.0" ...
    These are indeed the coordinates of the center of the game map (SE of Paris), but I don't see anything about the map size.

  2. #2
    I believe the terrain sdk has some of the information you are looking for. Not certain as I don't have access to it where I am. The number 1560 or perhaps 1535 seems to ring a bell. I suppose from there you have to divide the resolution of the water color texture by the size of the map, and using the origin you could calculate lat and long of any point on the sheet. Assuming everything has been flattened I think that would work, right? I'm very intrigued by this post to say the least!

  3. #3
    I had come across these coordinates

    N55 W7 4.5
    N41 E14 4.5

    for the total CFS3 map.

    MAW and PTO are the same size,
    different coordinates.

    **It's in mapdata.xml file for each theatre.**
    Last edited by FireStorm II; October 17th, 2019 at 18:22. Reason: mapdata

  4. #4
    gecko, thanks, I forgot to look into SDK. It says that the stock map size is 1,572,864m. I'll try searching for this number in the game memory.
    I don't even have to bother converting lat/lon into meters (CFS3 does this) or dividing by texture size (GPU does this). All I need is to know the maximum extents of the map in meters from its origin.

    Since I want to be able to add water over any terrain I need to make sure it blends with the sea water and thus I need to know its base color from cfs3h2o.dds.

    FireStorm II, if MAW and PTO are the same size I can just hardcode it (or put in the config at least) if everything else fails. Thanks!

  5. #5
    I believe some maps might be a different size - Korea for example. This by the way might actually enable us to put real water in the Korea map after all these years instead of land painted to sort of look like water.

    Also will the resolution of the cfs3h20.dds be able to be changed? I ask as I've put a decent amount of work into a very high res version that allows much more detail in water color.

  6. #6
    As I recall, MAW’s map is as big as you can go.
    Tom
    __________________________________________________ ___________________________________________
    Wisdom is the principal thing; therefore get wisdom: and with all thy getting get understanding. Proverbs 4:7



Members who have read this thread: 1

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •