• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Solved] Cliff remove request

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,207
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