Git Product home page Git Product logo

meshbatcher's People

Contributors

origamidev-pete avatar yogoda 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

Watchers

 avatar  avatar

meshbatcher's Issues

Question?

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?

Error while try to batch without Mesh child

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

Simplification

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.

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.