Search found 1954 matches

by Kjell
Sun Nov 16, 2025 11:08 am
Forum: General discussion
Topic: Making a demo out of a full project
Replies: 2
Views: 39

Re: Making a demo out of a full project

Hi Ats, There's no easy & universal way to solve this. It really depends on your project and how it is structured. But a combination of option 2 & 3 should work? Do I need to tag DEMO on what is needed and remove the rest during compilation, or should I tag FULL and remove only those parts? ...
by Kjell
Wed Nov 05, 2025 5:06 pm
Forum: General discussion
Topic: New planet mesh generator
Replies: 8
Views: 400

Re: New planet mesh generator

Hi Ats, All right, it was not working because my mesh is in a ModelState (my model is handling all different kinds of astronomical bodies). Ah, then that approach won't work for your particular situation no. Are you sure you want to use a separate ModelState for planets and moons? Generally speaking...
by Kjell
Wed Nov 05, 2025 1:47 pm
Forum: General discussion
Topic: New planet mesh generator
Replies: 8
Views: 400

Re: New planet mesh generator

Hi Ats, How would you update the planet mesh when the model is a clone and the event that triggers the refresh is outside the model (general OnUpdate)? There's a bunch of ways to do this. One way is to store the spawned planet clones in an array, so you can address & refresh each planet's mesh d...
by Kjell
Mon Nov 03, 2025 4:04 pm
Forum: General discussion
Topic: New planet mesh generator
Replies: 8
Views: 400

Re: New planet mesh generator

Hi Ats,

There's no random component in your vertex expression. The noise3() function is a 3D perlin-noise calculation that gives you the exact same output every time you use the same input. So your planet mesh vertex coordinates do refresh, they just end up in the exact same place every time.

K
by Kjell
Wed Oct 22, 2025 11:44 am
Forum: General discussion
Topic: Questions regarding looping sounds using ZGE Sound
Replies: 4
Views: 763

Re: Questions regarding looping sounds using ZGE Sound

Hi Ats, I’m still unsure how to handle deceleration though. Depends a little on how you want it to work / sound. One approach is to do something like this ( hold "S" key ) .. <?xml version="1.0" encoding="iso-8859-1" ?> <ZApplication Name="App" Caption="Z...
by Kjell
Tue Oct 21, 2025 3:11 pm
Forum: General discussion
Topic: Questions regarding looping sounds using ZGE Sound
Replies: 4
Views: 763

Re: Questions regarding looping sounds using ZGE Sound

Hi Ats, The easiest way to have a sound loop forever ( until you tell it to stop ) is to use PlaySound.ByReference and set the length to INF. Here's a simple example ( hold "S" key ). <?xml version="1.0" encoding="iso-8859-1" ?> <ZApplication Name="App" Captio...
by Kjell
Mon Oct 13, 2025 10:20 am
Forum: General discussion
Topic: Help for wireframe in Android ES2/GL3
Replies: 4
Views: 2858

Re: Help for edge shader (wireframe)

Hi Ats, Coloring each triangle with 3 colors was that I was trying to do, but I didn't know I could put a ZExpression inside a Mesh Producers. It feels like a bit of a hack. Would have been more convenient if there was a way to access mesh data ( vertices & faces ) directly, or if MeshExpression...
by Kjell
Sat Oct 11, 2025 8:08 pm
Forum: General discussion
Topic: Help for wireframe in Android ES2/GL3
Replies: 4
Views: 2858

Re: Help for edge shader (wireframe)

Hi Ats, Looks like you're trying to use barycentric coordinates to determine the pixel distance to edge? In that case .. you're accidentally using the vertex position as edge factor input, while you should be using your barycentric coordinates / vertex colors. Below is a simple example ( for regular...
by Kjell
Thu Sep 25, 2025 8:52 am
Forum: General discussion
Topic: Low poly water splash trail
Replies: 1
Views: 13346

Re: Low poly water splash trail

Hi Ats, What do you think about the effect? I assume this is for Omeganaut? It might look a bit flat for objects moving ( primarily ) over the z-axis. Or will you use this on individual wings, like this? https://i.imgur.com/QnYX3mE.gif And just to emphasize .. the splash meshes in Wind Waker have a ...
by Kjell
Thu Aug 21, 2025 9:18 am
Forum: General discussion
Topic: [Solved] Help to get Sunvox module volume (maybe using json?)
Replies: 12
Views: 536715

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 ...
by Kjell
Tue Aug 19, 2025 8:41 am
Forum: General discussion
Topic: [Solved] Help to get Sunvox module volume (maybe using json?)
Replies: 12
Views: 536715

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...
by Kjell
Mon Aug 18, 2025 2:20 pm
Forum: General discussion
Topic: [Solved] Help to get Sunvox module volume (maybe using json?)
Replies: 12
Views: 536715

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_...
by Kjell
Mon Aug 18, 2025 1:58 pm
Forum: General discussion
Topic: [Solved] Help to get Sunvox module volume (maybe using json?)
Replies: 12
Views: 536715

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...
by Kjell
Mon Jul 14, 2025 6:20 pm
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 90
Views: 435433

Re: Questions about ES2/GL3 shaders

Hi Ats,
Ats wrote: Mon Jul 14, 2025 8:48 amI believe OpenGL isn't working properly on Android during the first frame (OnLoaded).
Yikes .. wasn't aware of that bug :(

K
by Kjell
Fri Jul 11, 2025 4:52 pm
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 90
Views: 435433

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 ...