Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
3d particle system doesn't work with GWT (anymore?) #3871
BilboardRenderControllerData is not handled by reflection for GWT and script fails to go through initialisation (create method for instance). It is relatively hard to get that information debugging it through FireFox or Chome so I didn't provide any extra JS stack traces, but following added to my project fixes the build and things (for at least BillboardParticleBatch) work then:
Now, I am not sure (it doesn't seem to be 100% right) that all of those extra classes need to be known to the GWT class reflection LibGDX's framework.
Could someone, please, double check if current code in com.badlogic.gdx.graphics.g3d.particles is correct and if so add appropriate extend configuration properties to GwtReflect.gwt.xml? I would have prepared pull request, but as I said, it doesn't seem to be 100% right what is really needed for reflection. I hope it is not really necessary and list of classes needed can be appropriately reduced.
Tried on LibGDX 1.6.2 and 1.9.2.
Let me try again now I had time to create working/not-working example...
When GWT compiled LibGDX project doesn't have above classes provided to GWT.
As I am not sure how to provide simple file which would be then compiled for GWT I have created two projects and zipped them up - one with working particle system that has above extend-configuration-property added to Demo3DProject.gwt.xml and not working with Demo3DProject.gwt.xml without having extra extend-configuration-property entries (as they should really go in GwtReflect.gwt.xml).
I've attached both here.
Version of LibGDX and/or relevant dependencies
Stacktrace is from Firefox:
Please select the affected platforms
Is there anything else I need to provide? I don't mind uploading compiled WebGL versions somewhere you'll be able to see it working (with the bodge)/not working.