Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Studio Chat / AGK Particle Editor Function 'texture2D' not supported on target in inc_gpup.agc at line 967

Author
Message
AmarJSB
4
Years of Service
User Offline
Joined: 11th Feb 2020
Location:
Posted: 1st Mar 2020 04:18
I made a game and added particles using the AppGameKit Particle Editor but on some Android phones there was an error like this

The error occurs when the game is run on my Android 5.1 cell phone while on the other Android 5.1 phones there is no error and the game runs smoothly as usual
is there a way to solve this problem?
GaborD
6
Years of Service
User Offline
Joined: 3rd Dec 2017
Location:
Posted: 1st Mar 2020 16:38
That's a weird one.
It's in the vertex shader and 5.1 is old, which gives me one idea that maybe helps. Sending you a PM with a quick change. Hopefully that helps. If it does I'll make an official update with it.
If it doesn't help, then it's old hardware that doesn't support texture reads in the vertex shader, in which case GPU particles are not possible on that phone due to the hardware limitation.
janbo
15
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 1st Mar 2020 22:27 Edited at: 1st Mar 2020 22:55
So the Particle editor and code uses custom shader ? (Don't have it yet ^^)
Cause I can't find default shader that uses VTF's in AGK.
AmarJSB
4
Years of Service
User Offline
Joined: 11th Feb 2020
Location:
Posted: 2nd Mar 2020 01:57
Quote: "That's a weird one.
It's in the vertex shader and 5.1 is old, which gives me one idea that maybe helps. Sending you a PM with a quick change. Hopefully that helps. If it does I'll make an official update with it.
If it doesn't help, then it's old hardware that doesn't support texture reads in the vertex shader, in which case GPU particles are not possible on that phone due to the hardware limitation. "

@GaborD
ok I'll try
janbo
15
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 2nd Mar 2020 12:51 Edited at: 2nd Mar 2020 12:52
Also shouldn't it be texture2DLod instead of texture2D as Vertex shader can't know which Lod to use so one need to choose the lod level explicitly ?
But I'm just guessing as I have no info about the shader.
GaborD
6
Years of Service
User Offline
Joined: 3rd Dec 2017
Location:
Posted: 2nd Mar 2020 20:28 Edited at: 2nd Mar 2020 20:44
Yep it should, some compiler versions won't catch it. Saw it too, the fixed version is out in testing. Mistakes were made. Blame has been assigned (to me), heads are rolling.
This is the first device reported that has the problem, we will see what happens. Hoping for the easy fix.
janbo
15
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 2nd Mar 2020 22:37
Everything but not the head...I need your head if I come up with some special shader questions
AmarJSB
4
Years of Service
User Offline
Joined: 11th Feb 2020
Location:
Posted: 9th Mar 2020 03:49 Edited at: 9th Mar 2020 03:50
the result is no error but it says "tap / click the screen to exit
"

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-04-26 04:20:47
Your offset time is: 2024-04-26 04:20:47