Git Product home page Git Product logo

godot_scatter_plugin's Introduction

Scene scattering tool for Godot Engine

scatter_plugin

This plugin adds tools to help placing many scene instances in an environment by "painting" over it, rather than dragging and dropping them manually from the file system dock.

It adds a new node Scatter3D.

Installation

This is a regular editor plugin. Copy the contents of addons/zylann.scatter into the same folder in your project, and activate it in your project settings.

How to use

  • Have a scene with collisions in it, for example a ground, terrain, building...
  • Add a Scatter3D node to the scene, or select one already present
  • Add scenes you wish to be able to paint into the list, and select the one you want to paint
  • Start placing them by left-clicking in the scene. You can remove them using right-click.
    • This will create scene instances as child of the Scatter3D node.

License

  • License file

godot_scatter_plugin's People

Contributors

jummit avatar wojtekpil avatar zylann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

godot_scatter_plugin's Issues

doesn't instance the models on the terrain [MacOs]

  • I've pasted "zylann.scatter" next to "zylann.hterrain" in the addons folder.
  • activated the plugin from the godo plugin setting.
  • created a 3d scene
    • added hterrain
    • directional light
    • scatter 3D
  • select on the scatter node and add the 3d scene that i wish to instance it
  • tried to click and drag on the terrain but i got error in the output.
res://addons/zylann.scatter/tools/plugin.gd:159 - Attempt to call function 'get_parent' in base 'null instance' on a null instance.
Paint scenes

is that a bug or im not following the instructions?

Support for Godot 4

Hello! I used to use this plugin in Godot 3. Are there any plans to update support for Godot 4?

Error: "'!is_inside_tree()' is true. returned: Transform()"

Hi Zylann!

Great plugin. I do, however, have a problem. Sometimes, but not always (not exactly sure why it happens), the following error appears in the output window when I use the plugin to paint objects into my scene:

Error: scene/3d/spatial.cpp:266 - Condition ' !is_inside_tree() ' is true. returned: Transform()

When I close and reopen the scene, some of the objects are gone. Other times, I might have like, let's say I have 10 rocks in my scene, but only 3 (for example) is visible in the scene tree (Scene tab).

Can you please fix those problems? It will mean so much to me. I would've done it myself if I knew how to do it.

Thanks!!

Refactoring broke adding new items to scatter list

After latest commit I cannot add new items to scatter list. It seems that methods add_pattern(...) and remove_pattern(...) were renamed with underscore prefix. And calls to ur.add_do_method(self, "add_pattern", path); doesn't work anymore.

Scatter Positioning Problems

If Scatter is not in global Zero cordinates or not global rotation zero it places objects incorrectly - it does not take into account location of Scatter Node in global cords.

scenes are placed in incorrect coordinates:

Found a bug with latest version from the repo. Had to do a quick capture during dev stream.

2022-08-19.12-25-19.mp4

Possible causes:
I am running Godot a smaller DPI in the editor settings, could that be messing with the coordinates?

Plugin places multiple meshes at the same position in a single click.

Godot 3.3.2

If I hold the mouse button, the plugin continuously places scenes where the mouse is. Sometimes It does so by a dozen, so even if I quickly click the mouse, it can place 2 or 3 scenes in the same place at once.

If I hold the mouse for even half a second I end up with 3 dozen scenes, most of which are stacked in the same position.

Placing on CSG geometry

Is it possible to place things on a CSG object? It has collisions enabled, but maybe it only works when the game is running?

Unable to add scenes to node

After adding the node, then selecting "add" in the node menu I am able to see the "tree.tscn" but upon selecting it and clicking on 'add', the item will not show up in the side bar to begin using the tool.

image

image

image

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.