Search found 1876 matches

by Kjell
Sun Nov 19, 2023 6:16 pm
Forum: General discussion
Topic: How to use the program including DLL on Android?
Replies: 2
Views: 23933

Re: How to use the program including DLL on Android?

Hi, I run a program on Windows using DLL, but when I compile it to Android, it doesn't run on Android, what should I do? A DLL file is very similar to a EXE file and is therefore platform-specific and will only work on Windows. Android has a similar shared library concept though, using the SO extens...
by Kjell
Sun Oct 22, 2023 11:11 am
Forum: Your projects
Topic: Simplest FPS, escape from island game.
Replies: 7
Views: 34740

Re: Simplest FPS, escape from island game.

Hi zakkwylde, Sorry to bring up such an old post but i realized that the shot models in your FPS engine does not follow the crosshairs at extreme angles (i.e. vertically up and down). Would you know the fix for these? In order to fix jph's "basic_FP_engine_001.zgeproj" project, change the ...
by Kjell
Mon Oct 09, 2023 9:43 am
Forum: General discussion
Topic: A way to set GL fog color?
Replies: 4
Views: 24706

Re: A way to set GL fog color?

Hi jinxtengu, Below is a simple example ( containing 8 white boxes and a animated camera ) that enables blue exponential fog with a density of 0.05: <?xml version="1.0" encoding="iso-8859-1" ?> <ZApplication Name="App" Caption="ZGameEditor application" FileVer...
by Kjell
Fri Oct 06, 2023 9:34 am
Forum: General discussion
Topic: ZGEBullet Collision Shape Viewer / Editor
Replies: 14
Views: 80708

Re: ZGEBullet Collision Shape Viewer / Editor

Hi Ats, Contrary to the zbtCreateTriangleMeshShape function, I don't get the points array. Should they be stored in a certain order? Nope .. the points don't have to be in a certain order. As quoted from the Panda3D documentation: A good analogy for a convex hull is an elastic membrane or balloon un...
by Kjell
Thu Oct 05, 2023 10:26 am
Forum: General discussion
Topic: ZGEBullet Collision Shape Viewer / Editor
Replies: 14
Views: 80708

Re: ZGEBullet Collision Shape Viewer / Editor

Hi Ats, Just to be sure, what float* triangles array would look in ZGE for a single triangle, something like this? Yup .. the btTriangleMesh(false, false) call gives you a mesh with 3-components ( XYZ ) per vertex using 16-bit indices ( so no more than 65536 vertices total ). Then the addTriangle ca...
by Kjell
Mon Sep 11, 2023 8:20 pm
Forum: General discussion
Topic: CollisionBounds fourth value?
Replies: 3
Views: 18849

Re: CollisionBounds fourth value?

Hi Ats, There is a fourth value that can be set for CollisionBounds, besides X,Y and Z. So what is it? It's ( currently ) not used by any of the collision styles. How to set/get it by code? Both XYZW and RGBA can be used with any 4D vector. So in order to access the 4th component of CollisionBounds ...
by Kjell
Sat Sep 09, 2023 9:20 am
Forum: General discussion
Topic: Tracing Floats
Replies: 2
Views: 16443

Re: Tracing Floats

Hi Ats, I guess it is some kind of limitation with int or float size, but I don't understand why...? A signed 32-bit integer has a range of -2147483648 to 2147483647. Which means you can safely multiply the fractional part of a float by ( up to ) 10⁸ .. so that's all fine. However, a 32-bit float us...
by Kjell
Tue Jul 25, 2023 9:23 am
Forum: General discussion
Topic: Skybox
Replies: 4
Views: 17814

Re: Skybox

Hi Ats, I'm trying with a SkyCylinder, that only rotates on its X axis. It should work, but the cylinder mesh ZGE Library.xml is made out of a sphere, without texture coordinates. For your purpose you want to generate a cylinder from a 2D-grid. The normals aren't necessary ( for sky-cylinder use ) ....
by Kjell
Tue Jul 25, 2023 12:39 am
Forum: General discussion
Topic: Skybox
Replies: 4
Views: 17814

Re: Skybox

Hi Ats, So I'm planning to replace the background rectangle by a skybox. But I don't know how to get rid of the visible edges and corners of the cube. Is this possible, or should I use a skysphere instead? If you want to use a skybox .. you need a texture that has been projected onto a box. Similarl...
by Kjell
Wed Jul 05, 2023 3:19 pm
Forum: General discussion
Topic: ZGEBullet Collision Shape Viewer / Editor
Replies: 14
Views: 80708

Re: ZGEBullet Collision Shape Viewer / Editor

Hi Ats, I can simply retrieve the offset in my sketchup ruby script and store it with the rest, it will be easier and ready for release too. That's definetely more convenient than having to do it in ZGE. The sketchup and ZGE axis don't have the same rotation Right, there's no consensus .. software l...
by Kjell
Sun Jul 02, 2023 10:15 am
Forum: General discussion
Topic: ZGEBullet Collision Shape Viewer / Editor
Replies: 14
Views: 80708

Re: ZGEBullet Collision Shape Viewer / Editor

Hi Ats, With this new method, it is simpler to export models to ZGE without having to center them, so that, as an example, the pyramid can be put on the ground by setting its Position.Z = 0, instead of Position.Z = -pyramidHeight/2. Right, it's important to place your mesh origin correctly so that y...
by Kjell
Fri Jun 30, 2023 5:48 pm
Forum: General discussion
Topic: ZGEBullet Collision Shape Viewer / Editor
Replies: 14
Views: 80708

Re: ZGEBullet Collision Shape Viewer / Editor

Hi Ats, Are you you putting the transformation ( position / rotation / scale ) values in the SketchUp object names or something? Or are those simply the variable names your script generates from the object values? Anyway, for a compound shape i'd use a parent object / dummy that ( for instance ) has...
by Kjell
Thu Jun 29, 2023 7:15 am
Forum: General discussion
Topic: ZGEBullet Collision Shape Viewer / Editor
Replies: 14
Views: 80708

Re: ZGEBullet Collision Shape Viewer

Hi Ats, And I rediscover why I completely stopped working on Omeganaut: setting the collision shapes is a hassle. This all comes down to preference, but for imported meshes i'd personally define the collision shape(s) in the software you're using to create them ( Blender / Maya / ??? ) and use a cus...
by Kjell
Tue May 09, 2023 10:09 am
Forum: General discussion
Topic: Sound volume based on distance
Replies: 4
Views: 14709

Re: Sound volume based on distance

Hi jinxtengu, I notice that the sound ceases entirely when the player is directly over the top of the source of the sound. Is that because it's clipping a value of 1? Whoops .. forgot to abs() the result of log2() :oops: Change the volume assignment line in Cricket.OnUpdate to .. CricketSound.Volume...
by Kjell
Tue May 09, 2023 9:45 am
Forum: General discussion
Topic: Dynamic terrain
Replies: 6
Views: 33814

Re: Dynamic terrain

Hi jinxtengu, Looking at the example, I see the map array is populated by random values That's just for demonstration purposes, you can just as easily populate the map array using a mesh made in Blender ( or similar ). Below is the same example as before but using the data of a exported mesh. https:...