Jump to content
Sign in to follow this  
rhumbaflappy

ReMeshing ReWorked Coasts

Recommended Posts

Hi all.I'm using an experimental macro to help the process of remeshing reworked water areas. People are going to need a way of doing this, now that Chris Wright's AutoASM is being used.This isn't the most elegant solution, but it does work... and the code is LWM, so it can be added to the same BGLC code produced by Chris's program ( so it can reside in one BGL ). Make sure the ReMesh code is added to the datastream after Chris's code ( But make sure it's in the same Cell area of the code ).Here's the Macro:; ReMeshMacros.incReMesh Macro X, Y, Height, Fraction BYTE 2 SWORD Height ; // Whole elevation value in meters BYTE Fraction ; // Fractional elevation value in 1/128 meters BYTE ( X * 32 ) + 0 ; BYTE ( Y * 32 ) + 0 ; BYTE ( X * 32 ) + 31 ; BYTE ( Y * 32 ) + 31 ; BYTE 2 SWORD Height ; // Whole elevation value in meters BYTE Fraction ; // Fractional elevation value in 1/128 meters BYTE ( X * 32 ) + 0 ; BYTE ( Y * 32 ) + 31 ; BYTE ( X * 32 ) + 31 ; BYTE ( Y * 32 ) + 0 ;EndMThe ReMeshMacros.inc can be cut'n'pasted to notepad, and saved as 'ReMeshMacros.inc' for use.The macro splits an LOD13 Area into an 8x8 grid for remeshing. Just remesh the part of the Area you want redone.Attached is a 'meshtest.txt' giving an example of code.CAUTION:If you remesh an area, you will NOT want to alter this line in FS2002.cfg:TERRAIN_MAX_VERTEX_LEVEL=19Some simmers are recommending a change to 21. Don't do it. It becomes impossible to remesh with the higher setting. 2 pics show what I mean. The first is at 19... the second is 21. So unless you like oversampled 'waffles', leave the default setting alone, and quit trying to tweak the mesh beyond what MS found to be the right setting.Dick

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...