Comments (4)
This is expected, because in order to draw graphics, it needs to be added to some of the worlds. By default, the world of the root of the game is used.
I already have a method that changes the world for all meshes, but only 1 world can be selected. This method only needs to be exposed.
At the moment, a separate mesh is being created for each shape, there are 19 in total. +1 for lines. There is also a division into _process
and _physics_process
. That is, (19 + 1) * 2 meshes are created for one world.
I think it's not very difficult to add support for other worlds, but it will probably reduce performance a little more. And somehow you need to specify the world in which to draw (scoped configs are most likely).
from godot_debug_draw_3d.
I have added the ability to change World3D for the entire geometry. You can check how set_world_3d_from_viewport
works using binaries from here.
The next goal is to be able to render to multiple Worlds at the same time, but I'm not completely sure how this will be implemented.
from godot_debug_draw_3d.
more edits are needed, but the main part is already working.
from godot_debug_draw_3d.
fixed #42
from godot_debug_draw_3d.
Related Issues (20)
- [Bug]: Not working with Godot 4.1 RC1/2/3 HOT 22
- [Bug]: DebugDraw.draw_grid generates an error on Godot 4.0 HOT 2
- [Feature Request]: Web/WASM Support HOT 2
- API documents seems not work? HOT 4
- [Bug]: Duration in set_text doesn't seems to work HOT 2
- C# bindings generator HOT 8
- [Feature Request]: Viewport Scaling Visibility HOT 7
- [Feature Request]: iOS Support HOT 4
- [Bug]: weird constant high gpu usage anywhere in the editor HOT 8
- [Feature Request]: Drawing Planes HOT 4
- [Bug]: Macos Arm64 Support HOT 22
- [Feature Request]: DebugDraw2D should be visible on 2D viewport too HOT 6
- [Bug]: Rotation of DebugDraw3D.DrawBox() draws a warped/flattened box. HOT 5
- [Bug]: DebugDrawDefaultCanvas Control Node filters mouse input HOT 2
- [Bug]: DrawCylinder radius results in cylinders that are 2x as wide as they should be. HOT 2
- [Bug]: HOT 9
- [Feature Request]: Provide source code for the telemetry module HOT 3
- [Feature Request]: Set Render priority HOT 13
- [Feature Request]: Statically link libgcc and libstdc++ on linux HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from godot_debug_draw_3d.