Author Topic: Editing Groups for Placement on sloped terrain.  (Read 275 times)

Offline TBlayde

  • Zinc Member
  • *
  • Posts: 39
Editing Groups for Placement on sloped terrain.
« on: October 14, 2002, 02:42:09 AM »
My Idea:

I want to be able to place a city on a hillside, facing an airfield to make it more difficult to capture the field.

The Problem:

When I looked at the work from the air, I noticed the bottom graphic was not conforming to the terrain like the buildings were. This gave the impression of seeing into the mountain to look at the flat graphic. Another example of this can be seen in the MA when dropping a bomb on a steep hill. The impact crater will hang out of the mountain like a shelf.

My Attempted Solution:

I thought since it was only one graphic file in the object group was causing this visual error, I would find it and delete it from the group after placing it in my desired location.  This resulted in frequent and consistent CTD's when attempting to look at it in the game.

The Question:

Is there some scripting that depends on this bottom graphic to achieve the desired effect from leveling the builsings on it? If so, what language is it in and where would I modify this behaviour so I can make maps with buildings and structures on sloped terrain as well as surrounding airfields? and such?

Offline BenDover

  • Platinum Member
  • ******
  • Posts: 5803
Editing Groups for Placement on sloped terrain.
« Reply #1 on: October 14, 2002, 01:47:32 PM »
no, the AH engine doesn't allow it

Offline pokie

  • Silver Member
  • ****
  • Posts: 841
      • http://s7.eastlink.ca/~tscott
Editing Groups for Placement on sloped terrain.
« Reply #2 on: October 14, 2002, 03:19:41 PM »
From the Terrain Editor Help file

Quote
Objects Overview: the last paragraph

When placing objects on the terrain, don’t place shapes where they touch a gridline.  The Aces High engine can visually “clip off” portions of the object resting on a gridline based on a given view angle.  Ensure the entire area upon which a texture shape is to be placed is flat, or a weird visual discontinuity could occur.  These are both good reasons to complete terrain editing before beginning object placement.


Now having said this, you can try looking at these files for some ideas.

http://accesswave.ca/~tscott/AH-stuff/AH-Editor&Stuff/ROLL-6.zip

http://accesswave.ca/~tscott/AH-stuff/AH-Editor&Stuff/TILT-7.zip

http://accesswave.ca/~tscott/AH-stuff/AH-Editor&Stuff/ROTATE-8.zip

You can't do any changes to the way the game works like BenDover said, other than what files are available to us in the editor.
The 3 files that I listed, deal with the .oba file that is generated by the editor.

Also, since we can manipulate some of the shapes by their skins, you could always just eliminate the crater view thats is made after the bombs explodes.

http://accesswave.ca/~tscott/AH-stuff/AH-Editor&Stuff/Skins/EliminateCrater.ZIP

Place these 4 files in your texsrc folder on the terrain you are making.  Now build your terrain and then bomb something and you'll see what I mean.

Pokie