Search found 1889 matches
- Sun Oct 02, 2022 3:44 pm
- Forum: General discussion
- Topic: Rpg style text display
- Replies: 4
- Views: 7194
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...
- Sun Oct 02, 2022 12:00 pm
- Forum: General discussion
- Topic: Rpg style text display
- Replies: 4
- Views: 7194
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...
- Sun Sep 11, 2022 4:01 pm
- Forum: General discussion
- Topic: Fickering issues on some Android devices
- Replies: 16
- Views: 19385
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 ...
- Sat Sep 10, 2022 5:31 pm
- Forum: General discussion
- Topic: Fickering issues on some Android devices
- Replies: 16
- Views: 19385
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...
- Mon Sep 05, 2022 9:32 am
- Forum: General discussion
- Topic: [Solved] Shifting an array of vectors
- Replies: 5
- Views: 7876
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 ...
- Mon Sep 05, 2022 12:13 am
- Forum: General discussion
- Topic: [Solved] Shifting an array of vectors
- Replies: 5
- Views: 7876
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...
- Mon Aug 15, 2022 12:26 pm
- Forum: Extensions
- Topic: 3D Physics with ZgeBullet
- Replies: 104
- Views: 283648
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...
- Fri Aug 12, 2022 5:38 pm
- Forum: General discussion
- Topic: Scrolling heightmap
- Replies: 3
- Views: 6757
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 ...
- Thu Aug 11, 2022 3:25 pm
- Forum: General discussion
- Topic: Going too far from the center of the world
- Replies: 8
- Views: 9399
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...
- Thu Aug 11, 2022 9:00 am
- Forum: General discussion
- Topic: Going too far from the center of the world
- Replies: 8
- Views: 9399
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 ...
- Wed Aug 10, 2022 10:33 am
- Forum: General discussion
- Topic: Going too far from the center of the world
- Replies: 8
- Views: 9399
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 ...
- Wed Jul 27, 2022 9:28 am
- Forum: Feature requests
- Topic: [FIXED] Possibility to change ZGE default font?
- Replies: 4
- Views: 9008
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...
- Mon Jul 25, 2022 11:05 am
- Forum: General discussion
- Topic: Question about Rotation and RotationVelocity
- Replies: 5
- Views: 8582
- Mon Jul 25, 2022 10:10 am
- Forum: General discussion
- Topic: Question about Rotation and RotationVelocity
- Replies: 5
- Views: 8582
Re: Question about Rotation and RotationVelocity
Hi Ats, Why RotationVelocity isn't making the model rotating on its own Y axis? This is because the default rotation axis order of a model is XYZ. For what you want to do you'd either need YXZ or YZX. Unfortunately you can't select the order of euler angles in ZGE, so the easiest solution is to orie...
- Sun Jul 24, 2022 12:51 pm
- Forum: Bug reports
- Topic: Access violation error when selecting a mesh
- Replies: 2
- Views: 6485
Re: Access violation error when cselecting a mesh
Hi Ats, I have a bug in my project, and it crashes ZGE without warning if I click the Model/ModelState/Definitions/Mesh in the left column. The problem comes from the MeshExpression that has access to a variable in the definitions of the Model. This issue is a little annoying yes. It's caused by the...