Playmaker Forum

PlayMaker News => General Discussion => Topic started by: Zolomoz on February 21, 2019, 04:20:32 AM

Title: Merge Building blocks
Post by: Zolomoz on February 21, 2019, 04:20:32 AM
Hi there I'm Jeremy.
UFABET (http://www.ufa365.com/สมัครสมาชิก-ufabet)
It's not really related to Playmaker but programming in general. We have this system where you build, in our game, and to make it look nicer we would like to merge the building blocks. We have a basic system for it at the moment, but it compares if there is blocks next to it and then merges them. It can be seen in our trailer here.

We did a mock up in maya, which shows the way we would like the mesh to behave, but if we export seperate meshes and merge them it just seems like a lot of work. Is there a simpler way to do this kind of thing? Maybe it should be voxel based or something,
Thank in advance.
Title: Re: Merge Building blocks
Post by: djaydino on February 21, 2019, 10:09:21 AM
Hi,
I have no experience yet with Merging meshes.
Maybe there are some assets on the asset store which can help.
Title: Re: Merge Building blocks
Post by: PolyMad on February 21, 2019, 10:53:07 AM
You can export a whole scene in Unity and you can use each of the objects one by one, if they are separate.
Title: Re: Merge Building blocks
Post by: Fat Pug Studio on March 01, 2019, 05:25:02 AM
https://docs.unity3d.com/ScriptReference/Mesh.CombineMeshes.html
Title: Re: Merge Building blocks
Post by: tcmeric on March 01, 2019, 06:14:57 AM
Mesh combining is not generally a trivial task. Therefore you will need an asset or this free github version: https://github.com/Whinarn/UnityMeshSimplifier

Not all mesh combining tools support runtime. You may need to experiment a little, as when you mesh combine items, you need to think about uv, uv lighting, lightmapping changes, etc. So there tends to need to be a little play to get it just right.

PS, you missed your trailer link.