Issue with 3D Particle translation on android

Anything libgdx related goes here!

Issue with 3D Particle translation on android

Postby PlayLight » Thu Jun 13, 2019 5:01 am

I have a 3d ParticleSystem set up and working just fine on desktop, however there is a issue i'm having on Android that i can't pinpoint.

I'm working with a large game Map (300,000 x 300,000) in 3d, and when i create a ParticleEffect with a large vector,
Code: Select all
Vector3 position = new Vector3(240952, 9, 221895);
particles.translate(position);

it does not render on Android.

But smaller vectors work fine
Code: Select all
Vector3 position = new Vector3(5000, 9, 5000);
particles.translate(position);


As this is working fine on desktop i thought it may be due to floating point precision on Android but i have no idea how i could test this directly as i'm relying on the ParticleSystem class to handle particles procedures for me.

I thought i should pop a post here and see if anyone else has come across this, who may be able to provide a little more information.
I've put together a sample project demonstrating the issue. I have used Billboard Particles, though the same outcome happens for other particle types as well. (project includes commenting in Main.java and a starting Vector3 for easy scene placement to test the issue quickly)

I'm happy to provide any further details if required.
Thank you for your time

test project
https://drive.google.com/open?id=1mYu3vft_5CHYxy1A4ItGlJGt_4SSLOS0

currently testing on Android 7.0 [Device: Samsung Galaxy S6]
PlayLight
 
Posts: 9
Joined: Sun Oct 21, 2018 1:16 am

Re: Issue with 3D Particle translation on android

Postby PlayLight » Sat Jun 15, 2019 1:41 am

Issue submitted to repository issues
#5666
PlayLight
 
Posts: 9
Joined: Sun Oct 21, 2018 1:16 am


Return to Libgdx

Who is online

Users browsing this forum: No registered users and 1 guest