Search found 1883 matches
- Wed Jan 04, 2023 4:28 pm
- Forum: General discussion
- Topic: Problem with scaling a square to fit the full screen resolution
- Replies: 4
- Views: 6511
Re: Problem with scaling a square to fit the full screen resolution
Hi Ats, Ehm .. there's no RefreshContent in that example. And you're using the App.CameraPosition.Z in the calculation instead of the active camera ( CameraBG ). But once you use a FOV of 90 with a distance of 1 you don't need the calculation anymore, all you need is .. BackgroundMeshSize.Scale.X = ...
- Wed Jan 04, 2023 1:04 pm
- Forum: General discussion
- Topic: Problem with scaling a square to fit the full screen resolution
- Replies: 4
- Views: 6511
Re: Problem with scaling a square to fit the full screen resolution
Hi Ats, What I am doing wrong? If you want to scale the background mesh to fill the screen in the setup you're using in your example then you can do the following: <?xml version="1.0" encoding="iso-8859-1" ?> <ZApplication Name="App" Caption="ZGE Screen Ratio"...
- Mon Jan 02, 2023 12:43 pm
- Forum: Extensions
- Topic: XInput
- Replies: 7
- Views: 13672
Re: XInput
Hi Ats, After reinstalling Linux on my laptop, I discovered that it was not crashing for me because, at some point, I installed some weird XInput libraries for Linux. But with a fresh install, the game is crashing like everyone else. Right, calling external functions of which the DLL isn't present w...
- Mon Jan 02, 2023 11:51 am
- Forum: General discussion
- Topic: How to retrieve what kind of model
- Replies: 7
- Views: 9088
Re: How to retrieve what kind of model
Hi Ats, I understand why you are doing that, but having it working in preview and not in release is a bit confusing :? There are quite a few functions that are only available from the IDE ( or Visualizer ) and not in a standalone. Personally i think this is totally fine and isn't too difficult to le...
- Tue Dec 27, 2022 2:15 pm
- Forum: General discussion
- Topic: Fickering issues on some Android devices
- Replies: 16
- Views: 18683
Re: Fickering issues on some Android devices
Hi Ats, Here's what I'm doing Alright, that's perfectly fine & normal. Is the vec4(position, 1.0) necessary? Nope, that's not necessary. Internally ZGE uses vec3 for vertex positions, but when you define the attribute as vec4 in your vertex shader it automatically fills the position.w component ...
- Tue Dec 27, 2022 12:07 pm
- Forum: General discussion
- Topic: Fickering issues on some Android devices
- Replies: 16
- Views: 18683
Re: Fickering issues on some Android devices
Hi Ats, The drawing distance is 500. And Things appears at a distance of 600 to avoid suddenly poping out of the fog. In the 256-512 range the smallest interval that can be expressed using a half-float is 0.25. Whether that's a problem or not depends entirely on your situation. Do keep in mind that ...
- Mon Dec 26, 2022 12:35 pm
- Forum: General discussion
- Topic: Fickering issues on some Android devices
- Replies: 16
- Views: 18683
Re: Fickering issues on some Android devices
Hi Ats, ChatGPT is pretty impressive, but it's certainly not perfect ( yet ). Avoid using uniform arrays if possible. Instead of using a uniform matrix for the light position, light color ambient, and fog color, you could use individual uniform variables for each of these values. This would reduce t...
- Tue Nov 29, 2022 12:19 pm
- Forum: General discussion
- Topic: HOW TO REGISTER
- Replies: 2
- Views: 6901
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...
- Wed Nov 23, 2022 12:21 am
- Forum: Extensions
- Topic: 3D Physics with ZgeBullet
- Replies: 104
- Views: 279960
- Sun Oct 02, 2022 3:44 pm
- Forum: General discussion
- Topic: Rpg style text display
- Replies: 4
- Views: 6754
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: 6754
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: 18683
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: 18683
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: 7424
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: 7424
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...