All Activity
- Today
-
Majaxos joined the community
-
fbauerme joined the community
- Yesterday
-
Hi everyone! This is Yue. I’m continuing my journey in the Winter Games Tournament with my project: "Ingenuity Legacy". This is a very personal project for me, a tribute to that brave little helicopter, and today (Day 3) was a rollercoaster of emotions and code. I wanted to share my progress because today the project stopped feeling like a "floating mesh" and started feeling like a real machine with weight and soul. Here is what I achieved today using Lua in Leadwerks 5: Rotor Inertia & Visuals: I implemented the visual rotation of the coaxial blades. It's not just a simple loop animation; the rotation speed is code-driven by an inertia variable. When I toggle the engine off, the blades don't stop instantly—they keep spinning and slow down gradually over 30 seconds, simulating the momentum in the low-density atmosphere. Real Martian Physics: I abandoned the arcade approach (0 gravity). Now, the helicopter has a constant gravity of -3.71 (Mars gravity). The engine script calculates "Lift" based on the rotor RPM. If the engine power drops, gravity wins, and the drone falls realistically. It feels heavy now! The 24-Meter Ceiling: Did you know the real Ingenuity had a max altitude of roughly 24 meters? I implemented a "thin atmosphere" logic. If the player tries to go higher, the lift force decreases smoothly. No invisible walls, just physics saying "no more air here." Dynamic Audio: I added a drone loop that changes Pitch and Volume based on that same rotor inertia. It sounds like a giant mosquito now, very immersive! The "Bug" of the Day (The Funny Part): I spent a good amount of time fighting with the Audio. I used EmitSound, but the sound was being left behind at the spawn point (0,0,0). I tried to force SetPosition on the speaker every frame, but it was messy. Then, I realized something absurdly simple: I had created the Mouth (the Speaker on the drone), but I forgot to tell the engine where my Ears were! 😂 One simple line saved the day: _camera:Listen(). Now the audio works perfectly in 3D space. Sometimes the solution is just telling the engine: "Hey, put my ears on the camera, please!" I'm really enjoying the process and learning a lot about the new API. Thanks for reading! - Yue
-
Yue started following Speaker:SetPosition
-
Crestfallen joined the community
-
Pompe joined the community
-
ah, sorry i didn't see it right, i read over it fast
-
I meant that was something for me to do, but the answer to your question is here: https://github.com/Regalis11/scpcb
-
-
luke, diet water started following 2560x1440
-
how do i use rewrite the code using OpenGL
- Last week
-
Josh started following Directional Shadow Projection Broke in VR and Ide Editor
-
-
Got my Vive set up again, and everything is currently charging. It always amazes me how reliably this moderatly complicated setup works.
-
DystoStorm joined the community
-
5.0.2 beta Added View > Show Terrain menu item and associated functionality.
-
pctweaks joined the community
-
Creating terrain completely crashed PC/Audio/Video drivers
Josh replied to TwoCatsYelling's topic in Bug Reports
I love these types of threads. They make life exciting! -
Creating terrain completely crashed PC/Audio/Video drivers
TwoCatsYelling replied to TwoCatsYelling's topic in Bug Reports
Success! I don't know if it was reinstalling just the drivers, or that crash was just a complete fluke... But it's working. Good. I reinstalled Windows specifically to work with LW5 lol. Still gonna use the Linux version when it's ready, but I'm too impatient :p. Must use now! Sorry for the scare! Thanks, Josh. -
Yue started following Ide Editor
-
I would like the editor in the debugging information, as in the map editor, to be resizable, as the information appears too small on my monitor.
-
Creating terrain completely crashed PC/Audio/Video drivers
TwoCatsYelling replied to TwoCatsYelling's topic in Bug Reports
Adrenaline is AMD's version of GeForce Experience. All the same kind of functionality, etc. I'll try just downloading the drivers and see if that makes a difference. Wish me luck lol. -
Creating terrain completely crashed PC/Audio/Video drivers
Josh replied to TwoCatsYelling's topic in Bug Reports
I don't know anything about Adrenaline software. It's easy to select your card in that dialog and download the correct drivers for your card. -
Creating terrain completely crashed PC/Audio/Video drivers
TwoCatsYelling replied to TwoCatsYelling's topic in Bug Reports
I installed them through their Adrenaline software, same as I have before. I could try reinstalling them again? -
Josh started following Creating terrain completely crashed PC/Audio/Video drivers
-
Creating terrain completely crashed PC/Audio/Video drivers
Josh replied to TwoCatsYelling's topic in Bug Reports
Card is a AMD Radeon RX 6700 XT. I have a 6600, not much different. I think your drivers are probably not installed correctly? You can get the correct graphics driver for your card here: https://www.amd.com/en/support/download/drivers.html -
That is true, it has been "deprecated" for years...yet it still works.
-
I think now Leadwerks 5 has a lot of functionality. And users like me need more study materials and samples. I guess the samples should be small: an one game feature - one sample. This is easy to study.
-
@Josh I watched your recorded video Winter Games Tournament on YouTube. Modern Apple's OSes don't use OpenGL, they uses Metal API - proprietary video API. Apple said: OpenGL is deprecated. If I remember correctly, Apple stopped use OpenGL at 2019 in MacOS Catalina.
-
TwoCatsYelling started following Creating terrain completely crashed PC/Audio/Video drivers
-
Had what I'd call a pretty catastrophic crash with LW5 today. This is out of the blue. LW5 has always worked fine when I've run it on Windows.. 10 or 11. Anyway... Installed LW5 on a fresh Windows 11 install. GPU drivers are up to date. I was watching a YT video at the time, so there was sound, etc. (only saying this for what happened later) Installed Leadwerks 5. It started up fine. Created and opened a project fine. Creating brushes worked fine. Everything was fine, working as expected, until I tried to create 1024x1024 terrain. Right as I noticed the terrain wasn't showing up in any of the views, the following happened, in rapid succession: 1. The LW5 editor froze up. 2. The audio from the YT video I was watching turned into a loud "buzzing" sound before audio died completely. 3. The entire system froze up. 4. Both of my monitors went black, with the power lights blinking, meaning no signal. I cold-rebooted the PC, and only one monitor was working. Took me about 30 minutes to figure out the graphics drivers were borked; I had to reinstall them to get both monitors working again. I uninstalled LW5 immediately. While I'd love to help further, I'm not going to try and recreate the problem lol. I've attached my DXDiag in case anything in there might help. If there's anything else I can provide info-wise, etc, let me know. I just would not feel comfortable trying to recreate that issue. It was pretty crazy. Might it be an AMD GPU related thing? I have a NVidia 2070 Super I can try, though I'd rather not. The AMD is faster lol. DxDiag.txt
-
I will make this "unsolved" since the original issue is not fixed, but I am glad we found something that works for you.
-
Thaks! That was the problem! I commented some lines in Main.lua to load the my map, I don't know if it's ok Note: This project is only for testing and learning the basic things of Leadwerks before to make any more serious project. --Load a map --if isstring(game.commandline["map"]) then --local mapname = game.commandline["map"] local mapname = "Maps/testRagdoll.map" game.scene = LoadMap(game.world, mapname) if game.scene then mainmenu:ApplyCameraSettings() mainmenu:SetHidden(true) game.window:SetCursor(CURSOR_NONE) mainmenu.newgamebutton:SetText("Resume Game") end --end
-
Guilherme joined the community
-
When you run from the editor, it includes the map file in the command line. If no map file is specific, the game starts in the default menu. I would need to see your project in order to tell what is happening.