• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Cliff remove request

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,285
Took me a while to dig up the old code I used. Anyway, it is done!

If you want the cliffs to be removed more intelligently you will need to guide me through or explain the desired logic. The current removal was done with the below, very simple, logic.
Code:
        terrain.simpleTransform( V -> {
            V.setGroundHeight(TerrainVertex.convertHeightWC3ToVertex(
                TerrainVertex.convertHeightVertexToWC3(V.getGroundHeight()) + 128f * V.getCliffLevel()));
            V.setCliffLevel(0);});
 

Attachments

  • Azeroth 2.1 No Cliff.w3x
    834.6 KB · Views: 4
Status
Not open for further replies.
Top