Jump to content
Sign in to follow this  
rhumbaflappy

TMF tools to make small hills?

Recommended Posts

Guest Cazador

Dear Sir:Is there a way to create smal hills using the tmf tools and bglc?Can BGLC create bgl to the southern hemisphere?Thanks.Alfredo MEndiola LoyolaLima Peru

Share this post


Link to post
Share on other sites

I've only made landclass updates with my Landclass Assistant proggie, but I thought Martin Wright had a program to aid in building mesh... Hopefully, someone can forward a link to you...-John

Share this post


Link to post
Share on other sites

Hi Alfredo.BGLC is Microsoft's MASM assembly language compiler, that has been customized for Flight Simulator. It can create code for any region on earth.You can create hills with BGLC and Christian Stock's TMFmacros.incThe hills would be indexed to LOD13 areas, and would be TMF flatten code ( triangles at the least ) that can raise or lower the mesh. It won't appear flat, because the flatten points can be quite close together. It doesn't matter what the LOD of the underlying mesh is... the TMF flattens are LOD13. The advantage is the entire LOD13 area doesn't need to be meshed... just some flattens to create the hill.You'll need to download masm.zip and nzrc.zip by Christian Stock, from the Avsim Library. BGLC is contained in the Special Effects SDK for FS2002.You may also want to see georgio's fsregen for a Gmax-orientated solution for TMF flattens.

Share this post


Link to post
Share on other sites

Hi Alfredo. Here's some code to create a small hill using Christian Stock's 'TMFmacros.inc', and BGLC:

; ===================================================================include TMFmacros.inc; Hill Test; ===================================================================; DATA_BASEdata_base	label	word	dw	1			; world set number	dd	2667133 	; North Bound	dd	2444872 	; South Bound	dd	310192082 	; East Bound	dd	262470223 	; West Bound	dd	0			; VOR data	dw	0			; lowest VOR freq	dw	0			; highest VOR freq	dd	0			; seeds level 8 data	dd	0			; seeds level 9 data	dd	0			; seeds level 10 data	dd	0			; seeds level 11 data	dd	0			; seeds level 12 data	dd	0			; traffic data	dd	0			; minimum safe altitude data	dd	terrain_data - data_base; terrain mesh data	dd	0			; object data	dd	0			; library data	dd	0			; facilities data	dd	0			; anchor point data	dd	0			; ATIS data	dd	0			; NDB data	dd	0			; dynamic object paths data	dd	0h,0h			; minimum library id	dd	0h,0h			; maximum library id	dd	0			; miscellaneous data	dd	0			; title and description data	dd	0			; magnetic variation data	dd	0			; exception and exclusion data	dd	87654321h		; magic number	dd	0			; compression switch	dw	0			; spare	dd	0h,0h,0h,0h		; GUID	dd	0			; product id	dd	0			; product build number	dd	0			; new facility data pointers	dd	0			; new facility name list data	dd	0			; new facility band list data	dd	0			; new facility data; ===================================================================; TERRAIN MESH DATABASEterrain_data	label	word; TERRAIN MESH HEADER	dd	terrain_header_end - terrain_data; end of terrain header	dd	514				; version	dd	0				; unknown entry	dd	0				; unknown entry	dd	0				; elevation header	dd	0				; land class header	dd	0				; unknown header	dd	0				; class lookup header	dd	0				; season header	dd	0				; class lookup list	dd	0				; water class header	dd	0				; elevation index	dd	0				; land cover index	dd	0				; unknown index	dd	flatten_header - terrain_data	; flatten polygon header	dd	0				; decal header	dd	0				; reserved	dd	0				; reserved	dd	0				; main terrain data	dd	0				; reserved	dd	0				; reserved	dd	0				; reserved	dd	0				; regions header	dd	0				; reserved	dd	0				; reservedterrain_header_end	label	word; ===================================================================; TERRAIN FLATTEN POLYGON HEADERflatten_header	label	word	FLATTEN_HEADER 513, flatten_list, flatten_data, flatten_end; TERRAIN FLATTEN POLYGON DATAflatten_data	label	word; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -data_start_0	label	word	FLATTEN_DATA 2, 7, 2, 28, 1, 1, 0			 ; 1st hill peak ------------------------------------------------------		FLATTEN_POLYGON 3, 674, 0			FLATTEN_POINT 17, 234			FLATTEN_POINT 27, 236			FLATTEN_POINT 22, 239; 2nd hill peak  -----------------------------------------------------		FLATTEN_POLYGON 3, 678, 0			FLATTEN_POINT 41, 234			FLATTEN_POINT 41, 237			FLATTEN_POINT 39, 241data_end_0	label	word; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -; ===================================================================; TERRAIN FLATTEN POLYGON LISTflatten_list	label	word	FLATTEN_LIST 1, flatten_groupsflatten_groups	label	word	FLATTEN_GROUP 189, 437, flatten_data, data_start_0, data_end_0; ===================================================================; FLATTEN_ENDflatten_end		label	word; ===================================================================

And a picture of some foolishness I'm playing with:

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...