Page 1 of 1

Openttd 3D

Posted: 16 Dec 2024 08:03
by lihui_zhang
Does anyone want to 3D-ify openttd? It may require a lot of code modification and 3D modeling work. Can it be done by AI? Train him to convert images into 3D models?

Re: Openttd 3D

Posted: 17 Dec 2024 02:46
by kamnet
It would be so much code modification that it might as well just be a whole new game.

Re: Openttd 3D

Posted: 17 Dec 2024 03:30
by Redirect Left
lihui_zhang wrote: 16 Dec 2024 08:03 Does anyone want to 3D-ify openttd? It may require a lot of code modification and 3D modeling work. Can it be done by AI? Train him to convert images into 3D models?
At that point you might as well just play Locomotion. Which was Chris Sawyers original 3D successor to Transport Tycoon Deluxe, although he got interested in rollercoasters and did Rollercoaster Tycoon 1&2, then appears to have used a modified version of the RCT2 engine to produce Locomotion, the track looks a lot like the Miniature Railway from RCT lol
There's also an open-source reimplementation, but you need the original files from Locomotion, it hasn't spawned its own open source graphics like OpenTTD, at least not yet.

Could you use an AI? Sure, you can make one. Will it really work? To a degree, likely! Not even triple A games however apparently have the money to make an AI work good. The GTA Trilogy "Definitive Edition" (lol) tried it, and from what we can tell there was a lot of AI or other automated stuff used to upscale things, and yeah it worked, but it had zero idea the context for some things. A lot of oddities such as this. Which from my limited knowledge of these things, appears to be a result of subdivision smoothing that has gone mad and with no context, and wasn't able to understand that one thing was -meant- not to be a perfect circle.

OpenTTD is open source, so feel free to give 3Ding it a go yourself.

Re: Openttd 3D

Posted: 17 Dec 2024 06:52
by uzurpator
Redirect Left wrote: 17 Dec 2024 03:30Which was Chris Sawyers original 3D successor to Transport Tycoon Deluxe
Locomotion isn't 3D.
lihui_zhang wrote: 16 Dec 2024 08:03 Does anyone want to 3D-ify openttd?
It exists - called Transport Fever 1/2, there is also Mashinky and Train World - each taking their own take on the genre.

Re: Openttd 3D

Posted: 17 Dec 2024 07:30
by Redirect Left
uzurpator wrote: 17 Dec 2024 06:52 Locomotion isn't 3D.
Far more 3D than Transport Tycoon was, albeit using an isometric camera still. It does however use 3d models made in 3d software like Blender, then squashed to Loco standards.

Re: Openttd 3D

Posted: 17 Dec 2024 07:33
by jfs
Someone attempted, 5 years ago: viewtopic.php?t=86412

Re: Openttd 3D

Posted: 17 Dec 2024 09:44
by uzurpator
Redirect Left wrote: 17 Dec 2024 07:30 Far more 3D than Transport Tycoon was, albeit using an isometric camera still. It does however use 3d models made in 3d software like Blender, then squashed to Loco standards.
It's still not 3d. You can use rendered sprites in OTTD as well. Locomotion is still the same tech as original TT, just with more views for each vehicle.

Re: Openttd 3D

Posted: 17 Dec 2024 10:25
by Redirect Left
uzurpator wrote: 17 Dec 2024 09:44 It's still not 3d.
I would 100% count games like RCT & Locomotion as 3D regardless of the isometric camera, the environment definitely has the feel of 3D, far more than games like TTD that has the same camera, but the graphics are rather... poor all things considered, and do not really portray that 3D feeling for the world. But that is just getting into personal opinions & preferences, and not worth arguing.

Re: Openttd 3D

Posted: 17 Dec 2024 10:36
by uzurpator
Redirect Left wrote: 17 Dec 2024 10:25 I would 100% count games like RCT & Locomotion as 3D regardless of the isometric camera,
The camera is irrelevant. The tech behind it is the same as it is with vanilla TT and any spinoff game - just pre-rendered sprites rendered back to front. TT was hand drawn, Locomotion had its sprites rendered off 3d models - true, but 32bit OTTD also has most of its sprites rendered this way.

The idea behind BrickED was to make a 3d editor that allows to render sprites from a 3d model while keeping the hand-drawn asthetic of TT games. BrickED can render 360 degrees of any vehicle and even apply the required modifications to its size to match what TT requires. By your logic - it makes OTTD 3d already.

Re: Openttd 3D

Posted: 17 Dec 2024 10:40
by Redirect Left
Redirect Left wrote: 17 Dec 2024 10:25and not worth arguing.
uzurpator wrote: 17 Dec 2024 10:36 [..]
I enjoy how you infact chose to continue arguing. Bold move. I respect that.

Re: Openttd 3D

Posted: 17 Dec 2024 10:52
by uzurpator
Dunno how it looks on your end, I'm just correcting your incorrect statements.

Re: Openttd 3D

Posted: 17 Dec 2024 11:01
by Redirect Left
Redirect Left wrote: 17 Dec 2024 10:25 into personal opinions & preferences, and not worth arguing.
I wonder what this means.

Alas you win, for I am sure the admin team will choose to scapegoat me, rather than you for continuing this tedium I have already attempted to end.

Again, I respect bold moves.

To answer the original question, yes, but mostly no. Again, anyone is free to muck about in code. So if you have no qualms with OTTD or it's code. Get in the guts and try to 3D it to either my, your or Uzurpators high standards. Good luck, if you need any other info DM me, Uzurpator has thoroughly trap carded this thread for me.

Re: Openttd 3D

Posted: 17 Dec 2024 11:11
by Pyoro
If it happens then surely it'd be a visualizer like Armok Vision or Stonesense for Dwarf Fortress.

Re: Openttd 3D

Posted: 17 Dec 2024 11:12
by uzurpator
Redirect Left wrote: 17 Dec 2024 11:01
Redirect Left wrote: 17 Dec 2024 10:25 into personal opinions & preferences, and not worth arguing.
I wonder what this means.
It means that '3D' has an unambiguous meaning in the context of video game graphics. One in which 'sprites' are re-rendered every frame of the game, with respect to a view port, from a mesh and texture data, with usage of shader programs, usually on a separate device usually known as 'GPU'.

Diablo II was using pre-rendered sprites, Diablo II:Resurrected is rendered with 3D.

Re: Openttd 3D

Posted: 17 Dec 2024 12:10
by jfs
Pyoro wrote: 17 Dec 2024 11:11 If it happens then surely it'd be a visualizer like Armok Vision or Stonesense for Dwarf Fortress.
Someone looked into that, a little less than two years ago, but as far as I can tell gave up on the idea: viewtopic.php?t=90601

Re: Openttd 3D

Posted: 18 Dec 2024 08:36
by lihui_zhang
kamnet wrote: 17 Dec 2024 02:46 It would be so much code modification that it might as well just be a whole new game.
1. 3D.
2. like "Mine-craft", with an infinitely large map, as long as you have enough hard-disk space..

That's a good wish. I have to read the current code first.

Re: Openttd 3D

Posted: 18 Dec 2024 08:43
by lihui_zhang
Redirect Left wrote: 17 Dec 2024 03:30
lihui_zhang wrote: 16 Dec 2024 08:03 Does anyone want to 3D-ify openttd? It may require a lot of code modification and 3D modeling work. Can it be done by AI? Train him to convert images into 3D models?
At that point you might as well just play Locomotion. Which was Chris Sawyers original 3D successor to Transport Tycoon Deluxe, although he got interested in rollercoasters and did Rollercoaster Tycoon 1&2, then appears to have used a modified version of the RCT2 engine to produce Locomotion, the track looks a lot like the Miniature Railway from RCT lol
There's also an open-source reimplementation, but you need the original files from Locomotion, it hasn't spawned its own open source graphics like OpenTTD, at least not yet.

Could you use an AI? Sure, you can make one. Will it really work? To a degree, likely! Not even triple A games however apparently have the money to make an AI work good. The GTA Trilogy "Definitive Edition" (lol) tried it, and from what we can tell there was a lot of AI or other automated stuff used to upscale things, and yeah it worked, but it had zero idea the context for some things. A lot of oddities such as this. Which from my limited knowledge of these things, appears to be a result of subdivision smoothing that has gone mad and with no context, and wasn't able to understand that one thing was -meant- not to be a perfect circle.

OpenTTD is open source, so feel free to give 3Ding it a go yourself.
The current video generation AI can understand the rules of the 3D world. Perhaps some special training can be done to allow AI to convert photos or images into 3D models. I don't know if anyone is doing this job.

Re: Openttd 3D

Posted: 18 Dec 2024 09:54
by lihui_zhang
jfs wrote: 17 Dec 2024 07:33 Someone attempted, 5 years ago: viewtopic.php?t=86412
Thank you. I'm reading that post.

Re: Openttd 3D

Posted: 20 Dec 2024 07:53
by lihui_zhang
Reading code and trying it on my computer. (Wayland/Sway with SDL2)

1. Reading original code
2. merge 3D rendering code from Assert