I’l would like use batching to optimize my game but, i have try to use some exeple i’ve find, but it doenst work very well.
i have try batch_test.blend file exemple we can find on this forum, but when i try to change by my 3D model it doenst work, and tell me an message “no model to merged”, i have see if i replace my name model by an number is work, so i dont understand.
Someone can shae an blend file exemple work, or script to explain because im blocked.
I’m would like have like that
from bge import *from mathutils import *
scene = logic.getCurrentScene()
own = logic.getCurrentController().owner
batch = types.KX_BatchGroup ([obj for obj in scene.objects if obj.name == “colune4”])
find all model have name colune4 like that colune4, colune4.001, colune4.002 and more and after can possible to batch other models like stair1, stair1.001, stair1.002
Otherwise i’m would like to know if batching work with group name, because it’s not explain, exemply like for assets map called into main blend file, and use name group as name object.
i have try but i have everytime an error.