origamidev-pete / meshbatcher Goto Github PK
View Code? Open in Web Editor NEWA Godot plugin for batching MeshInstance nodes into a single MultiMeshInstance to improve performance.
License: Other
A Godot plugin for batching MeshInstance nodes into a single MultiMeshInstance to improve performance.
License: Other
Hello, i have a question.
I have imported a model(glb) and saved it as a scene. I would like to directly use the scene saved file to batch, is it possible?
Getting error:
res://addons/MultiMeshBatcher/Batcher_Node.gd:146 - Invalid get index '0' (on base: 'Array').
Its seems there is no array check in function verify_meshes
Possible solution
func verify_meshes(meshes : Array) -> bool:
if meshes != []:
var mesh_test = meshes[0].mesh
for i in meshes:
if i.mesh == mesh_test:
continue
else:
push_error("All meshes must be the same for batching.")
return false
return true
else:
push_warning("No child meshes found! You must add mesh as children of MeshBatcher node.")
return false
Hello, I realized the MeshBatcher node can inherit directly from MultiMeshInstance instead of spatial. It simplifies the code a great deal and creates less nodes.
I did the modification on my version and it works very well, the simpler the better I say ;)
https://github.com/Yogoda/MeshBatcher
Also not sure why you are storing the transforms (faster unbatching?). I removed it in my version, it's a lot of data.
Tell me if you want a pull request, but I'm not sure it is worth it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.