Page MenuHome

A.N.T. Landscape broken mesh generation
Closed, ResolvedPublic


System Information
Operating system: Linux-5.8.0-41-generic-x86_64-with-debian-bullseye-sid 64 Bits
Graphics card: Mesa Intel(R) HD Graphics 620 (KBL GT2) Intel 4.6 (Core Profile) Mesa 20.2.6

Blender Version
Broken: version:

  • 2.92.0 Beta, branch: master, commit date: 2021-01-29 16:08, hash: rB5d215d522541
  • 2.93.0 Alpha, branch: master, commit date: 2021-01-29 16:35, hash: rBd0f59d38429d
  • 2.92.0 Alpha, branch: master, commit date: 2020-11-19 22:15, hash: rBfdd3032f8fad

The bug was introduced in commit rB74188e65028d268af887ab2140e4253087410c1e
Worked: 2.91.2, branch: master, commit date: 2021-01-19 16:15, hash: rB5be9ef417703

Addon Information
Name: A.N.T.Landscape (0, 1, 8)
Author: Jimmy Hazevoet

Short description of error
When generating a mesh with A.N.T.Landscape, the values from the operator panel (Adjust last Operation) are misinterpreted which results in a very distorted mesh. When I try to tweak the parameters to achieve something closer to the expected result, it seems like the offset and gain values under noise settings are way to sensitive, moving them just a tiny bit changes the mesh to much.

Exact steps for others to reproduce the error

  1. Enable Addon A.N.T.Landscape
  2. Add Mesh --> Landscape
  3. open Adjust last Operation Panel
  4. Click on "Operator Presets" (at the very top of the panel)
  5. Choose "Mountain 1"

See the result here:

And compare it to the results from the same preset from Blender 2.91.2

Event Timeline

When looking at rBA / ant_landscape I doubt that this is a problem with the addon itself. The latest change to the addon's code was from Oct 16 2020...

It looks like the distortion only occurs when using Noise Type "Ridged MFractal" or "Slick Mountains"

Robert Guetzkow (rjg) changed the task status from Needs Triage to Confirmed.Jan 30 2021, 1:16 PM
Robert Guetzkow (rjg) claimed this task.

The variable scope was improperly changed in rB74188e65028d268af887ab2140e4253087410c1e. The declaration of the variable pwr should not have been moved into the loop since it was previously declared outside and pwr is modified in the loop. With the error introduced in the commit the value of pwr is reset in each iteration.