I am working on a button in the BGE that calls the in-built script Poly Reducer script (which will help the user to get optimized meshes in the BGE), but since the Poly Reducer does not work in the BGE (it works only in Blender), I was trying to use the Replace Mesh Actuator to replace the original mesh with the reduced mesh that gets formed in Blender while the BGE is running. (Kindly find the attached .blend file as the example)
So what I am actually trying to achieve is this:
When the user clicks the ‘Optimize Button’ in the BGE, the mesh gets optimized.
The optimized mesh is formed in Blender (not in the BGE) hence I want the original mesh to be replaced by this new mesh that is formed in Blender (but not viewable in the BGE unless the BGE is restarted)
Or if there exists some other way to get optimization done in the BGE then please let me know.
Oh yes it would seem useless unless you knew this – what I’m trying to implement is to give the user a final .exe (game which is actually for e-learning purpose) which would have this button. He will be able to import meshes into this ‘game’ and work with them (for e.g. import test tubes, stands etc and drag them around to demonstrate an experiment) so in case he downloads a mesh and then imports it into the ‘game’, and turns out it’s too heavy for the game, then he can optimize it using this button.
So I guess now it makes sense why I’m doing this – right?