python 'seed_set(x)' seems to be not doing nothing for noise generating function. #47993
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#47993
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
when executing python commands:
noise.seed_set(4)
Seed initialization gives no effect on output of random number generator:
noise.noise_vector(mathutils.Vector((1,1,1)), mathutils.noise.types.STDPERLIN)
Meaning output stays the same, but it should change with each seed change.
blend file with simple script for testing:
SeedRandom.blend
Just change number in 'noise.seed_set(4)' to see no difference on output
Changed status to: 'Open'
Added subscriber: @JoseConseco
as a workaround i can add random number to input Vector for:
noise.noise_vector(InputVector + RandoVector, noisetype)
And it work as seed ok, for now.
Added subscriber: @ideasman42
The code is calling out to API's which don't use the random seed.
Making this work isn't some simple fix, however we could use the seed to re-position the point used to get noise (currently values are hard-coded), see:
https://developer.blender.org/diffusion/B/browse/master/source/blender/python/mathutils/mathutils_noise.c;29bb10ee964a23df393442ceb98ddaf747c8c5f1$198-205
Sounds good to me. I'm basically doing the same thing in post above :) in python.
Changed status from 'Open' to: 'Resolved'
This issue was referenced by blender/blender@722d586257