• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Solved] Cliff remove request

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,198
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: 1
Status
Not open for further replies.
Top