Search found 1876 matches

by Kjell
Tue Nov 29, 2022 12:19 pm
Forum: General discussion
Topic: HOW TO REGISTER
Replies: 2
Views: 6368

Re: HOW TO REGISTER

Hmm, Wouldn't it be useful to also make the register link visible again ( next to login in the top-right corner ) and then put this information on the register page instead of the current "Creating a new account is currently not possible" message? As soon as this topic won't be the most re...
by Kjell
Wed Nov 23, 2022 12:21 am
Forum: Extensions
Topic: 3D Physics with ZgeBullet
Replies: 104
Views: 271105

Re: 3D Physics with ZgeBullet

Hi Ats,
Ats wrote: Tue Nov 22, 2022 10:01 amWith 250% help from Kjell, the problem I had was corrected.
Hmm .. 250% seems a bit excessive, but i'm glad i could be of help :)

K
by Kjell
Sun Oct 02, 2022 3:44 pm
Forum: General discussion
Topic: Rpg style text display
Replies: 4
Views: 6304

Re: Rpg style text display

Hi jinxtengu, what does "0xD" denote? When you press Enter ( for a newline ) in Notepad ( on Windows ) it inserts the following two bytes: 0x0D = 13 = CR = Carriage Return 0x0A = 10 = LF = Line Feed https://i.imgur.com/UeuoAcL.png So basically the code is looking for two consecutive newlin...
by Kjell
Sun Oct 02, 2022 12:00 pm
Forum: General discussion
Topic: Rpg style text display
Replies: 4
Views: 6304

Re: Rpg style text display

Hi jinxtengu, The animated text effect itself is super easy, but depending on what "features" are needed for the cut-scenes that drive the text animation your implementation might vary quite a bit. Anyway, below is a simple example ( press spacebar to continue ). <?xml version="1.0&qu...
by Kjell
Sun Sep 11, 2022 4:01 pm
Forum: General discussion
Topic: Fickering issues on some Android devices
Replies: 16
Views: 17798

Re: Fickering issues on some Android devices

Hi guys, I think you can get better range of the zbuffer by adjusting ClipNear and ClipFar so that you reduce the difference between them. Correct, this can alleviate z-fighting problems because you're basically giving the same amount of pixel-depth to a smaller depth-region. However, the glichting ...
by Kjell
Sat Sep 10, 2022 5:31 pm
Forum: General discussion
Topic: Fickering issues on some Android devices
Replies: 16
Views: 17798

Re: Fickering issues on some Android devices

Hi Ats, So I searched a bit on the internet and I found something similar here: https://community.khronos.org/t/flickering-in-android/104038 They are talking about cleaning the depth buffer: GLES20.glClearColor(0, 0, 0, 1); GLES20.glEnable(GLES20.GL_DEPTH_TEST); GLES20.glClearDepthf(1.0f); ... GLES2...
by Kjell
Mon Sep 05, 2022 9:32 am
Forum: General discussion
Topic: [Solved] Shifting an array of vectors
Replies: 5
Views: 6968

Re: Shifting an array of vectors

Hi Ats, The shift only happens then the waypoint will be destroyed, so once every 1 or 2 seconds That's something you generally want to avoid .. processor intensive stuff that only happens every once in a while and can't be spread over multiple frames. In video games you want to keep your processor ...
by Kjell
Mon Sep 05, 2022 12:13 am
Forum: General discussion
Topic: [Solved] Shifting an array of vectors
Replies: 5
Views: 6968

Re: Shifting an array of vectors

Hi Ats, What do I do wrong? By trying to shift the point vectors back-to-front, you end up copying the last point of your array into all indices. Your inner loop should go front-to-back instead. By the way, i'd recommend trying to avoid shifting around elements in your arrays unless absolutely neces...
by Kjell
Mon Aug 15, 2022 12:26 pm
Forum: Extensions
Topic: 3D Physics with ZgeBullet
Replies: 104
Views: 271105

Re: 3D Physics with ZgeBullet

Hi zakkwylde, In the keypress assignments, only 2 keys were shown. But the commands to rotate along the axes are the 4 cursor arrows. Could you point me to where the commands are programmed? The ZExpression in the AxisRepeat component sets the CharCode property of the AxisPositive and AxisNegative c...
by Kjell
Fri Aug 12, 2022 5:38 pm
Forum: General discussion
Topic: Scrolling heightmap
Replies: 3
Views: 5936

Re: Scrolling heightmap

Hi Ats, I don't know how to calculate the ration translate / time to make the movement fluid That value ( and how you calculate it ) is dependent on what you do in your MeshExpression calculation. But now that I think of it, maybe it would be better to have several height maps that scrolls and less ...
by Kjell
Thu Aug 11, 2022 3:25 pm
Forum: General discussion
Topic: Going too far from the center of the world
Replies: 8
Views: 8273

Re: Going too far from the center of the world

Hi Ats, For starters, is 00100000 = 0x20 or 0x32??? A binary value of 00100000 is 20 in hexadecimal and 32 in decimal, so 0x20 is correct. If you're having trouble with hexadecimal and binary i'd recommend keeping a calculator that has a programmer mode handy ( like the default one in Windows ). htt...
by Kjell
Thu Aug 11, 2022 9:00 am
Forum: General discussion
Topic: Going too far from the center of the world
Replies: 8
Views: 8273

Re: Going too far from the center of the world

Hmm, But it turned out that I still have to use it, otherwise colliding bodies would just get out of the ground if the object are planted into it. Can't you adjust the colliders so you don't have objects that sit on / in the ground don't penetrate the floor collider? That would save you the physics ...
by Kjell
Wed Aug 10, 2022 10:33 am
Forum: General discussion
Topic: Going too far from the center of the world
Replies: 8
Views: 8273

Re: Going too far from the center of the world

Hi Ats, Big boy engines such as Unity and Unreal gets weird when the objects are too far from the center of the world: physics, animations, lights... So I was wondering if this could be an issue in ZGE? Same thing in ZGE ( since it also uses 32-bit floating point values for most things ). And if it ...
by Kjell
Wed Jul 27, 2022 9:28 am
Forum: Feature requests
Topic: Possibility to change ZGE default font?
Replies: 4
Views: 7877

Re: Possibility to change ZGE default font?

Hi Ats, So where does the magic happen to set the editor's font? ZGameEditor uses the SynEdit component for code editing and doesn't set any specific font ( so the default is used ). Apparently you can set a custom font using the SetFont procedure. Should be pretty straight-forward to add a CodeEdit...
by Kjell
Mon Jul 25, 2022 11:05 am
Forum: General discussion
Topic: Question about Rotation and RotationVelocity
Replies: 5
Views: 7665

Re: Question about Rotation and RotationVelocity

Hi Ats,
Ats wrote: Mon Jul 25, 2022 10:49 amI made a strip down example illustrating the difference
Just checked your example using gDEBugger and indeed the normal matrix isn't updated / correct when using RenderTransform. So this is a bug in ZGE.

Image

K