Skip to content

[Suggestion] Add Better Tooling for Density Functions / recursive generators #840

@TimberStalker

Description

@TimberStalker

It would be nice if any recursive generators like density functions could have a basic domain specific language that lets you edit them in a simpler way. Currently, using the node based editor is extremely annoying and you have to awkwardly edit the json to wrap arguments. Making it a single text editor that parses a chain of function calls would be significantly simpler to use.

for example
min(0.5, add(y_clamped_gradient(0, 64, 1, 0), noise(erosion, 1, 1)))
You could add some quality of life where things like add and multiply, and even invert and power support operators
min(0.5, y_clamped_gradient(0, 64, 1, 0) + noise(erosion, 1, 1))

I would implement it myself but i couldnt find a good place to hijack the editor displays. It seems to strip information about the actual type before it gets to the nodes. If anyone could give me a good way to determine the type of node in the renderer i could do it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions