SVG loading (rendering, conversion) in Castle Game Engine thanks to FPC 3.3.1
r/pascal • u/XeonProductions • 15h ago
r/pascal • u/kimmadsen • 1d ago
r/pascal • u/DeviantDav • 1d ago
A correction first: the 1.0.0 post said forty-eight padded panels. There are forty-six. Two of the slots are the door and the door declined to be padded.
What the ride knows about itself
The Midway Show now has a ten-second insert, a tribute to Farbrausch's fr-08 .the .product. Every bulb, panel and strip gets a floating lowercase label. Then six of them unfold into cards showing what the engine actually knows: the turntable angle, each panel's bearing hash and friction, tire roll, the lighting mode, and a live hash of the ride's state. They're all real values, updated on fixed ticks, so the same take shows the same digits every time.
To see it whenever you like, open the console and type gravitywell sheet.
Fewer black screens
Strict GPU drivers (Mesa, and some Intel and AMD setups) could refuse the ride's shader outright over a single word NVIDIA lets slide. That's fixed, along with a stray-error case that could leave the ride black for the rest of the session.
More attention to light bulbs
Get Gravity Well from GitHub Releases
- ThisOldCPU / deschutescore
r/pascal • u/vajaina01 • 1d ago
People who know both Pascal and C, can you recommend to learn Pascal before C or it is unnecessary today?
r/pascal • u/DeviantDav • 1d ago
The elevator apparently wasn’t enough.
Now you can operate the spinning room yourself.
Gravity Well, powered by Gear3D, has its first playable Windows release.
One EXE. Forty-eight padded panels. Absolutely no forward progress.
If you caught the earlier Midway video, this is the ride behind it: a procedurally generated Gravitron-style carnival machine with individual roller rails, rubber drive tires, a central operator’s booth, a lifting roof, and considerably more attention to light bulbs than anyone reasonably requested.
The operator’s booth is now yours.
This may be a questionable staffing decision.
Download and ride
Get Gravity Well from GitHub Releases
Download GravityWell.exe, put it in a folder of your choosing, and run it. It’s a 64-bit Windows application, approximately 63.4 MB, with the music included.
No installer. The application creates its supporting folders when it starts. Move just the EXE somewhere fresh and it recreates the folder structure there.
Choose Ride to take the controls, or Midway Show for the five-minute guided sequence. Keyboard, mouse, and XInput-compatible controllers are supported.
You can adjust the throttle, change camera views, inspect the machinery, or let the show handle the questionable lighting decisions.
For the Pascal crowd
Gear3D is my long-running Delphi/Object Pascal game engine. The ride is assembled in code from engine geometry and materials.
The rubber drive tires are linked to the rotating rim. As speed builds, the padded panels climb their inclined rails. Each panel has its own bearing friction and damping, so they rise and settle individually.
Some bearings remain more enthusiastic about their employment than others.
At full speed, the room turns at 24 RPM. The lights run chase patterns or respond to bass, mid, and treble from the engine’s audio analysis. Their brightness warms up and fades through a filament model.
Yes, the imaginary light bulbs still behave like light bulbs.
The music, playlist, live spectrum display, and console commands come from the shared engine. The Midway Show uses those commands to operate the ride, change lighting, move the camera, and explain what you’re seeing.
Years of engine development, and apparently the pieces wanted to become a carnival ride.
Controls, screenshots, and more details
Gravity Well: Please remain attached to the wall.
Your chair is welcome to remain stationary.
ThisOldCPU / deschutescore
r/pascal • u/DeviantDav • 1d ago
r/pascal • u/DeviantDav • 2d ago
Gravity Well - Midway
Powered by Gear3D
If only there were a big spinny spaceship that went absolutely fucking nowhere.
So, what the fuck are you looking at this time?
A spinning room.
Specifically, a procedurally generated Gravitron-style carnival ride: forty-eight padded panels, individual roller rails, a central operator’s booth, rubber drive tires, a lifting roof, and considerably more attention to light bulbs than anyone reasonably requested.
The elevator apparently wasn’t enough.
Now the whole room has to rotate.
What you’re watching is Gravity Well - Midway, a three-minute ride sequence captured from a running Gear3D build. Loading, spin-up, full speed, questionable lighting decisions, spin-down, and a little after-hours inspection.
All rendered in real time.
You supply the monitor. Your inner ear supplies the objections.
Now, what the fuck are you REALLY looking at?
Gear3D is my long-running Delphi/Object Pascal game-engine project. It powers several different games and applications, and Gravity Well is another of its procedural demonstration scenes.
The ride is assembled in code from engine geometry and materials. The platform, turntable, drive assemblies, passenger panels, booth, and roof are parts of a working scene.
The drive model links the rubber tires to the rotating rim. As speed builds, the padded panels climb their inclined rails. Each panel has its own bearing friction and damping, so they rise and settle individually. Some bearings are more enthusiastic about their employment than others.
At full speed, the show runs at 24 RPM.
The lighting gets its own controller. White loading lights dim for the ride. Coloured bulbs run chase patterns or respond to bass, mid, and treble from the engine’s audio analysis. Their brightness warms up and fades through a filament model.
Yes, I spent time making imaginary light bulbs behave like light bulbs, the colors occasionally exercise artistic license.
The music runs through Gear3D’s playlist and audio system, with the live spectrum display showing what the engine is playing.
Midway itself is a timed show controller using ordinary registered console commands. It operates the ride, changes lighting, selects camera views, and supplies captions explaining what you’re seeing. When it finishes, it restores the previous scene state.
The procedural assembly, motion, lighting controller, and OpenGL rendering are kept separate, giving the scene room to follow the engine as its other rendering backends develop.
And yes, I’m sharing the ride scene source.
It’s a working example of what years of engine development make possible once enough of the pieces already exist.
Apparently, those pieces wanted to become a carnival ride.
There are other projects.
They are not getting more sensible.
For now, enjoy the ride.
Gravity Well: Please remain attached to the wall.
ThisOldCPU / deschutescore
If you stuck around, I thank you for watching my nonsense.
r/pascal • u/joy_of_thinking • 3d ago
AI coding tools treat FreePascal/Lazarus projects as text files. But this one treats Lazarus as an IDE.
It runs a local MCP server inside the IDE, so an assistant (Claude Code, or any MCP client) works with the real thing: the open project, the editor buffers, the compiler messages, the debugger and the form designer.
IDE rebuild tool is included, so the package is usable even to develop itself!
Ruscal is a fairly complete and well-tested Turbo Pascal to Rust transpiler, so you can run your old Turbo Pascal programs on modern computers. It supports mixing Rust and Turbo Pascal, embedding either way. It also supports graphics, including turtle graphics. I also included tools for pretty-printing Turbo Pascal and converting old binary files to JSON. Great pain was taken to ensure accuracy with the original Turbo Pascal.
r/pascal • u/AcanthaceaeNew774 • 4d ago
Pure Free Pascal 3.2.2 / GLFW3 / OpenGL3.3 / DOD / custom physics module / [NO LAZARUS BINDING]
r/pascal • u/DeviantDav • 4d ago
Hellavator Desktoy
Powered by Gear3D
**Three minutes of disco. One elevator.**
So, what the fuck are you looking at?
An elevator.
A perfectly functional, procedurally generated elevator with stainless-steel walls, working doors, buttons, lighting, a scrolling LED marquee, questionable announcements, and a soundtrack that has absolutely no business being here.
Someone decided it needed a disco ball.
Things escalated.
What you're watching is three minutes of **Hellavator: Disco Days**, captured directly from a running Gear3D build. No prerendered animation, no composited video effects, and no AI-generated imagery. Just the engine doing increasingly unnecessary things to an innocent elevator and exporting it via the built-in OBS capture support.
**Now, what the fuck are you REALLY looking at?**
Gear3D is my long-running, Delphi/Object Pascal game-engine project. It powers several different games and applications, and this elevator is one of its procedural demonstration scenes.
The cabin is assembled from engine geometry and materials. The lighting, reflections, disco ball, illuminated dance floor, controls, and moving doors are rendered in real time.
The music comes through the engine's playlist and audio system, complete with the live spectrum display.
The three-minute sequence is driven by a timed show controller that uses the same registered console commands and scene interfaces available elsewhere in the engine. It triggers effects, changes states, moves the camera, and restores the cabin.
The elevator scene's geometry and behavior are separated from its OpenGL renderer, with the goal of keeping the content reusable as Gear3D's other rendering backends mature.
**And yes, I'm sharing the elevator scene source.**
Not because this is a polished technology demo or a finished game. Because it's an example of what happens when years of engine development reach the point where ridiculous ideas can be assembled from existing parts.
There's more here than an elevator.
There are also considerably worse ideas.
I'm not explaining them.
For now, enjoy the disco.
**Hellavator: The World's Most Obnoxious Desk Toy.**
ThisOldCPU / deschutescore
If you stuck around, I thank you for watching my nonsense.
Du prototypage concret à l'ingénierie embarquée : quand le code rencontre le matériel. ⚙️📱
Petit retour en arrière avec ce prototype d'ascenseur contrôlé en Bluetooth à l'aide d'une application mobile multiplateforme développée sous Delphi FMX.
L'interface : Une application mobile épurée et réactive (BmbController) pour piloter les différents niveaux (Rez-de-chaussée, Premier, Dernier niveau).
Le terrain : Une liaison sans fil robuste avec le microcontrôleur pour exécuter les ordres en temps réel et afficher les états sur les afficheurs 7 segments.
r/pascal • u/AcanthaceaeNew774 • 8d ago
Pure Free Pascal 3.2.2 / GLFW3 / OpenGL3.3 / OpenAL / MiniGUI.pas / assimp.dll / libvlc.dll / freeImage.dll / bass.dll / DOD / [NO LAZARUS BINDING]
uses
SysUtils, Math, fgl, Classes (just file read/write),
glfw3, gl33,
SterilTypes, SterilMath,
SterilWindow,
FrameLimiter,
RenderTypes, RenderQueue, RenderState, ShaderCore, SimpleRenderEngine,
MeshGenerators,
MiniGUI,
BASS, BassBridge,
libvlc;
Avec Python4Delphi, Delphi peut exécuter du code Python et intégrer des bibliothèques puissantes comme OpenCV.
Résultat : une application Delphi capable de détecter des objets en temps réel.
projet détecte les ballons dans une vidéo et affiche automatiquement “Ballons” en haut de l’écran.
Ce n’est pas une simple détection/non-détection, mais une reconnaissance visuelle intégrée dans Delphi.
r/pascal • u/Zuborivik • 12d ago
Hello code hobbyists!
I wanted to share my small project. It's a minimalist reflex/clicker game where you hunt down a shrinking circle. The interesting part is that I coded it by myself from scratch using PascalABC.NET.
Had some tough times embedding the .ico file properly into the .NET executable without crashing it, but thanks to rcedit, it works perfectly now!
If you want to check it out and test your reaction speed, it's completely free on Itch.io. Let me know what you think about creating games on Pascal!
Play it here: https://zuborivik.itch.io/yellowhunter
r/pascal • u/ansikun • 12d ago
I wanted to read and write compressed data in Delphi without bundling a separate codec DLL. LZMA2 Delphi does that through a TStream API.
Here's a small XZ example. Add Lzma.Api and Lzma.Types to uses and pass two open streams.
var Options := TLzma2.XzOptions(5, 4, lzCheckCrc64);
TLzma2.Compress(SourceStream, OutputStream, Options);The library handles raw LZMA and LZMA2, standalone .lzma, XZ with one LZMA2 filter per block, and a subset of 7z. I tested 26.06 with Delphi 13.2 for Win32 and Win64.
The release includes the CLI and the VCL app shown below.

L'installation de delphi