Search found 1945 matches
- Thu Aug 21, 2025 9:18 am
- Forum: General discussion
- Topic: [Solved] Help to get Sunvox module volume (maybe using json?)
- Replies: 12
- Views: 101905
Re: [Solved] Help to get Sunvox module volume (maybe using json?)
Hi Ats, I would like to embed the volumes of the music instruments directly in the game, instead of relying on external text files. I guess that's why the File component has the FileEmbedded property :wink: https://i.imgur.com/WlHDLDR.png I don’t think functions in ZGE can pass arrays. You can, you ...
- Tue Aug 19, 2025 8:41 am
- Forum: General discussion
- Topic: [Solved] Help to get Sunvox module volume (maybe using json?)
- Replies: 12
- Views: 101905
Re: [Solved] Help to get Sunvox module volume (maybe using json?)
Hi Ats, Am I doing it right? It's easier when using a line per value instead of separating by comma. For example: <?xml version="1.0" encoding="iso-8859-1" ?> <ZApplication Name="App" Caption="ZGameEditor application" FileVersion="2"> <OnLoaded> <ZEx...
- Mon Aug 18, 2025 2:20 pm
- Forum: General discussion
- Topic: [Solved] Help to get Sunvox module volume (maybe using json?)
- Replies: 12
- Views: 101905
Re: Help with Sunvox volume and json
Hi Ats, The ZExternalLibrary that Rado1 made for SunVox is simply a direct "interface" to the SunVox DLL ( similar to the OpenGL ZExternalLibrary ), there's no wrapper involved. So yes, you can simply add any missing API function. int sv_get_module_ctl_value(int slot, int mod_num, int ctl_...
- Mon Aug 18, 2025 1:58 pm
- Forum: General discussion
- Topic: [Solved] Help to get Sunvox module volume (maybe using json?)
- Replies: 12
- Views: 101905
Re: Help with Sunvox volume and json
Hi Ats, I was wondering if the JSON can be read by ZGE, so I can get the base volume for each module. There's no JSON parser built into ZGE ... and i don't think anyone has written a JSON ZLibrary either. What are you're trying to do exactly? Can't you use sv_get_module_ctl_value to retrieve the vol...
- Mon Jul 14, 2025 6:20 pm
- Forum: General discussion
- Topic: Questions about ES2/GL3 shaders
- Replies: 90
- Views: 223957
- Fri Jul 11, 2025 4:52 pm
- Forum: General discussion
- Topic: Questions about ES2/GL3 shaders
- Replies: 90
- Views: 223957
Re: Questions about ES2/GL3 shaders
Hi Ats, But the main problem is glGetUniformLocation that returns 0 :| It's weird that it returns 0, it should be -1 when something is wrong. All right, the square isn't showing up on Android because of the "f" in "0.0f". Oops, my mistake .. since it's GLSL i should have written ...
- Fri Jul 11, 2025 11:32 am
- Forum: General discussion
- Topic: Questions about ES2/GL3 shaders
- Replies: 90
- Views: 223957
Re: Questions about ES2/GL3 shaders
Hi Ats, The example i posted uses "Compatible" mode, which doesn't support shaders on Android. And in case you'd switch the example to ES2/GL3, the shaders need to be re-written ( a bit ). So, here's a ES2/GL3 version instead ( untested .. i don't have any Android devices lying around at t...
- Fri Jul 11, 2025 12:18 am
- Forum: General discussion
- Topic: Questions about ES2/GL3 shaders
- Replies: 90
- Views: 223957
Re: Questions about ES2/GL3 shaders
Hi Ats, Did you use ES2/GL3 for both the PC and Android version? Anyway, here's an example using glGetUniformLocation that should move a sprite around like a clock. <?xml version="1.0" encoding="iso-8859-1" ?> <ZApplication Name="App" Caption="ZGameEditor applicati...
- Wed Jul 02, 2025 9:48 pm
- Forum: General discussion
- Topic: Questions about ES2/GL3 shaders
- Replies: 90
- Views: 223957
Re: Questions about ES2/GL3 shaders
Hi Ats, What I don’t understand is how glUniform1f sets a random value inside the shader. The glUniform function(s) set the value of a specific uniform variable of the shader that is currently active. It's the "location" argument that determines which uniform variable you're writing to. In...
- Wed Jul 02, 2025 6:01 pm
- Forum: General discussion
- Topic: Questions about ES2/GL3 shaders
- Replies: 90
- Views: 223957
Re: Questions about ES2/GL3 shaders
Hi Ats, Can I pass a random number from the currently rendered model to its shader? That's what uniform variables are for :wink: Unfortunately, there's a issue with ShaderVariable. Since UseMaterial is ignored when the selected material is already active, any changes to ShaderVariable will be skippe...
- Sun Jun 29, 2025 10:03 am
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 291
- Views: 158655
Re: Google Play New problem : 64bits
Hi Ats, So I tried your last test several times, and for quite a while. It’s not crashing at all. Then I tried enabling and disabling GL_BLEND again, just to be sure. It randomly crashes at some point, every time. Yea .. it's not GL_BLEND specifically. Something related to ZExternalLibrary is causin...
- Sat Jun 28, 2025 6:20 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 291
- Views: 158655
Re: Google Play New problem : 64bits
Hmm, Sorry, your colored background isn't crashing on Android 64. So weird .. :? What if you swap the glEnable/glDisable(GL_BLEND) calls with two Materials that do the equivalent? <?xml version="1.0" encoding="iso-8859-1" ?> <ZApplication Name="App" Caption="Androi...
- Sat Jun 28, 2025 5:23 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 291
- Views: 158655
Re: Google Play New problem : 64bits
Hi Ats, Have you tried other ( basic ) OpenGL calls to see if it still crashes on 64-bit Android? For example something like: <?xml version="1.0" encoding="iso-8859-1" ?> <ZApplication Name="App" Caption="ZGameEditor application" ClearScreenMode="1" ...
- Wed Jun 25, 2025 8:48 am
- Forum: Bug reports
- Topic: Problem with array definition in script
- Replies: 3
- Views: 61207
Re: Problem with array definition in script
Hi Ats, So I'll keep my array as is, since "Persistent arrays only supported for numeric data types". Perhaps your "Alphabet" example is just an example .. but in case it's a map for a font or name-entry dialog or something, you might as well store the ASCII codes instead. Howeve...
- Tue Jun 24, 2025 4:45 pm
- Forum: Bug reports
- Topic: Problem with array definition in script
- Replies: 3
- Views: 61207
Re: Problem with array definition in script
Hi Ats, That syntax can only be used to declare and initialize local arrays .. like this: <?xml version="1.0" encoding="iso-8859-1" ?> <ZApplication Name="App" Caption="ZGameEditor application" FileVersion="2"> <OnLoaded> <ZExpression> <Expression> <...