A.N.T. Landscape Addon not reproducible in some cases #113959

Closed
opened 2023-10-20 04:17:24 +02:00 by Zeyu-Ma · 8 comments

The generated terrain is different for certain commands. Please don't say it is not a bug because in most cases the ant landscape does reproduce results. It is in those rare cases that the command does not reproduce. If reproducibility is not the goal, then it should not be reproducible most times, otherwise, you need to ensure it is reproducible. Otherwise, it is misleading.

System Information
Operating system: At least Linux and MacOS
Graphics card: Not related

Blender Version
Broken: all (newest 3.6.5 tested)
Worked: none

Short description of error

The generated terrain is different, as seen in the attached screenshot.

Exact steps for others to reproduce the error
open blender, run this command,

bpy.ops.mesh.landscape_add(ant_terrain_name="Landscape", land_material="", water_material="", texture_block="", at_cursor=True, smooth_mesh=True, tri_face=False, sphere_mesh=False, subdivision_x=512, subdivision_y=512, mesh_size=2, mesh_size_x=2, mesh_size_y=2, random_seed=0, water_plane=False, water_level=0.01, remove_double=False, show_main_settings=True, show_noise_settings=True, show_displace_settings=True, refresh=True, auto_refresh=True, noise_offset_x=0, noise_offset_y=0, noise_offset_z=0, noise_size_x=1, noise_size_y=1, noise_size_z=1, noise_size=1, noise_type='marble_noise', basis_type='BLENDER', vl_basis_type='PERLIN_ORIGINAL', distortion=1.5, hard_noise='0', noise_depth=8, amplitude=0.5, frequency=1.8, dimension=1, lacunarity=2, offset=1, gain=2, marble_bias='2', marble_sharp='3', marble_shape='1', height=0.6, height_invert=False, height_offset=0, fx_mixfactor=0, fx_mix_mode='1', fx_type='14', fx_bias='0', fx_turb=0.5, fx_depth=2, fx_amplitude=0.38, fx_frequency=1.5, fx_size=1.15, fx_loc_x=-1, fx_loc_y=1, fx_height=0.5, fx_invert=False, fx_offset=0.06, edge_falloff='3', falloff_x=2, falloff_y=2, edge_level=0, maximum=1, minimum=-1, vert_group="", strata=5, strata_type='0')

which is copied from output of blender when using Volcano preset in A.N.T. Landscape
Take a screenshot
Reopen blender,
do this again.

The generated terrain is different for certain commands. Please don't say it is not a bug because in most cases the ant landscape does reproduce results. It is in those rare cases that the command does not reproduce. If reproducibility is not the goal, then it should not be reproducible most times, otherwise, you need to ensure it is reproducible. Otherwise, it is misleading. **System Information** Operating system: At least Linux and MacOS Graphics card: Not related **Blender Version** Broken: all (newest 3.6.5 tested) Worked: none **Short description of error** The generated terrain is different, as seen in the attached screenshot. **Exact steps for others to reproduce the error** open blender, run this command, ``` bpy.ops.mesh.landscape_add(ant_terrain_name="Landscape", land_material="", water_material="", texture_block="", at_cursor=True, smooth_mesh=True, tri_face=False, sphere_mesh=False, subdivision_x=512, subdivision_y=512, mesh_size=2, mesh_size_x=2, mesh_size_y=2, random_seed=0, water_plane=False, water_level=0.01, remove_double=False, show_main_settings=True, show_noise_settings=True, show_displace_settings=True, refresh=True, auto_refresh=True, noise_offset_x=0, noise_offset_y=0, noise_offset_z=0, noise_size_x=1, noise_size_y=1, noise_size_z=1, noise_size=1, noise_type='marble_noise', basis_type='BLENDER', vl_basis_type='PERLIN_ORIGINAL', distortion=1.5, hard_noise='0', noise_depth=8, amplitude=0.5, frequency=1.8, dimension=1, lacunarity=2, offset=1, gain=2, marble_bias='2', marble_sharp='3', marble_shape='1', height=0.6, height_invert=False, height_offset=0, fx_mixfactor=0, fx_mix_mode='1', fx_type='14', fx_bias='0', fx_turb=0.5, fx_depth=2, fx_amplitude=0.38, fx_frequency=1.5, fx_size=1.15, fx_loc_x=-1, fx_loc_y=1, fx_height=0.5, fx_invert=False, fx_offset=0.06, edge_falloff='3', falloff_x=2, falloff_y=2, edge_level=0, maximum=1, minimum=-1, vert_group="", strata=5, strata_type='0') ``` which is copied from output of blender when using Volcano preset in A.N.T. Landscape Take a screenshot Reopen blender, do this again.
Zeyu-Ma added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-10-20 04:17:25 +02:00

It looks like A.N.T treats the random_seed parameter with value 0 as special. Can you try setting that value to something other than 0, like 1, and see if you get consistent results across calls? It seems to work for me.

It looks like A.N.T treats the `random_seed` parameter with value `0` as special. Can you try setting that value to something other than 0, like 1, and see if you get consistent results across calls? It seems to work for me.
Jesse Yurkovich added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-10-20 05:07:58 +02:00
Author

Good observation. In the initial test, it seems nonzero values work. However, in a bunch of jobs I run, I found some nonzero seeds are not reproducible, but some zero seeds are reproducible. Quite weird.

Good observation. In the initial test, it seems nonzero values work. However, in a bunch of jobs I run, I found some nonzero seeds are not reproducible, but some zero seeds are reproducible. Quite weird.
Author

And to make things more weird. Only in volcano preset it happens. Nothing weird happens in all other presets I tried.

And to make things more weird. Only in volcano preset it happens. Nothing weird happens in all other presets I tried.

I'm not able to reproduce such a problem. I tried various combinations of running other presets before volcano and things seem consistent here. We'll have to wait to see if anyone else has an idea of how to reproduce more reliably.

I'm not able to reproduce such a problem. I tried various combinations of running other presets before volcano and things seem consistent here. We'll have to wait to see if anyone else has an idea of how to reproduce more reliably.
Jesse Yurkovich added
Status
Needs Triage
and removed
Status
Needs Information from User
labels 2023-10-20 06:31:00 +02:00
Author

Sorry, to clarify, do you mean the issue of Volcano at seed 0 is not reproducible or issues other than that are not reproducible? Thanks for your investigation btw!

Sorry, to clarify, do you mean the issue of Volcano at seed 0 is not reproducible or issues other than that are not reproducible? Thanks for your investigation btw!

Seeds of 0 will be different to each other, and that's expected, based on how the addon is coded. Setting a seed to something other than 0 always seems to produce a consistent pattern for me.

Seeds of 0 will be different to each other, and that's expected, based on how the addon is coded. Setting a seed to something other than 0 always seems to produce a consistent pattern for me.
Author

I see. I made a mistake when saying some nonzero seeds are not reproducible; my checking was wrong. For the seed 0, it does happen to be reproducible for some reason in some cases; I understand.
Now the question is just that is it misleading to make seed 0 specially not reproducible?

I see. I made a mistake when saying some nonzero seeds are not reproducible; my checking was wrong. For the seed 0, it does happen to be reproducible for some reason in some cases; I understand. Now the question is just that is it misleading to make seed 0 specially not reproducible?

Thanks for the report. However you had reported in the wrong repository. It should have been reported in the blender-addons repository instead of the blender repository.

Fortunately, I created another report there: blender/blender-addons#104972

Will close this one.

Thanks for the report. However you had reported in the wrong repository. It should have been reported in the [blender-addons](https://projects.blender.org/blender/blender-addons) repository instead of the [blender](https://projects.blender.org/blender/blender) repository. Fortunately, I created another report there: https://projects.blender.org/blender/blender-addons/issues/104972 Will close this one.
Blender Bot added
Status
Archived
and removed
Status
Needs Triage
labels 2023-10-23 15:55:30 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#113959
No description provided.