Regarding 3D

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
User avatar
CMircea
Chairman
Chairman
Posts: 887
Joined: 29 Dec 2006 14:05

Regarding 3D

Post by CMircea »

Anyone remember The Sims 1 (& it's expansions)? You may think it's full 3D, but it's not, it's 2.5D, which the characters 3D and everything else 2D, rendered again as the map is rotated. This could be done for OTTD, with vehicles full 3D, and buildings and trees 2D images with a 3D feel, thus having better performance, yet nice graphics. What do you think of this? (I know it won't get implemented soon, maybe in 0.7.0 or other stand-alone version)
Bjarni
Tycoon
Tycoon
Posts: 2088
Joined: 08 Mar 2004 13:10

Post by Bjarni »

Please don't compare OpenTTD to the sims. I like to think of OpenTTD as a game that sane grownups can play.

As for 3D the statement have always been "it's not going to happen". However the game would never use C++ either and yet it's converted to C++ now.

If you look at the code, you will notice that the graphics are generated all over the code, not confirned to a few files. Also the game keeps a buffer of the screen and only updates the parts where something changed. Both of those issues are 3D killers, so if anybody decides to write a 3D graphics engine, it will be a major change to the code.

However the game spend a great deal of CPU power in the drawing code. If some of that load can be moved to the GPU, then we can get more CPU power to the fun stuff (or a faster game).

As for 3D in the game. Making it full 3D would spoil it, but making the vehicles 3D and the rest 2D would result in vehicles, that follows the terrain . Driving uphill will no longer look as silly (hopefully). They also have the chance to look sane when turning (instead of 45° steps).

It could also make the ground 3D. This would mean that we could increase the resolution of hills without drawing zillions of grass tile sprites. However we should really consider how (and if) to do that. Buildings should still be placed on foundations and be sprites, but it could be that the foundation ends up being 3D to follow the tile edges.


As you can see, it's a huge task and there is no garantee for success. It's not unlikely that we will never have 3D in the game, but I will not say that it won't happen either, but if it happens, it's not likely to show up overnight or this year. Certainly there are benefits, but are they worth the time and do we want the result? Nobody knows for sure, but we do know for sure that we will not move to 3D because all other games do that.
User avatar
brupje
Transport Coordinator
Transport Coordinator
Posts: 288
Joined: 03 Oct 2006 07:17
Location: The hague, Netherlands

Post by brupje »

Maybe a feature for OTTD 2.0 :P
ZZZ
Engineer
Engineer
Posts: 10
Joined: 05 Feb 2007 07:36

Post by ZZZ »

Bjarni wrote: However the game spend a great deal of CPU power in the drawing code. If some of that load can be moved to the GPU, then we can get more CPU power to the fun stuff (or a faster game).

As for 3D in the game. Making it full 3D would spoil it, but making the vehicles 3D and the rest 2D would result in vehicles, that follows the terrain . Driving uphill will no longer look as silly (hopefully). They also have the chance to look sane when turning (instead of 45° steps).
2.5D(use 2d for static terrain and use 3d for dynamic objects) sounds feasible to me,at least they will save the artists some time to draw a few 2D pics to animate an object,with the zoom level of openttd,creating 3D model for it should be fairly easy,since you need only few polygons to make it look almost as 'detailed' as its 2D equivalent,though choosing/implementing a proper level of detail algorimth will be a tough task due to the high levels of zoom.
Quark
Transport Coordinator
Transport Coordinator
Posts: 325
Joined: 20 Sep 2006 11:36
Location: Russia, Moscow

Post by Quark »

Quality 3D is very hard to do. OTTD isn't first-person game and have very large amount of buildings and moving objects. Best 3D engine for it is something similar to SimCity 4 with all 3D technologies from it.
  • Image
Or you likes 5-houses city?
Image
Vloris
Engineer
Engineer
Posts: 108
Joined: 13 Jan 2007 22:39
Location: Enschede, The Netherlands
Contact:

Post by Vloris »

Quark wrote:Best 3D engine for it is something similar to SimCity 4 [..]
Or you likes 5-houses city?
No, I actually prefer Simcity 1900 :P
Quark
Transport Coordinator
Transport Coordinator
Posts: 325
Joined: 20 Sep 2006 11:36
Location: Russia, Moscow

Post by Quark »

 
        ImageImage
Image
Bjarni
Tycoon
Tycoon
Posts: 2088
Joined: 08 Mar 2004 13:10

Post by Bjarni »

Vloris wrote:
Quark wrote:Best 3D engine for it is something similar to SimCity 4 [..]
Or you likes 5-houses city?
No, I actually prefer Simcity 1900 :P
awesome game, but somewhat off topic when it comes to 3D :P
User avatar
Ailure
Route Supervisor
Route Supervisor
Posts: 435
Joined: 26 Apr 2005 19:06
Location: Sweden

Post by Ailure »

Bjarni wrote:Please don't compare OpenTTD to the sims. I like to think of OpenTTD as a game that sane grownups can play.
Shame that you think that. The sims 2, along with Simcity 4 and openTTD belong to my favourite simulation games. The sims 2 is a interesting case, as I don't recall any other simulator game allowing a such wide range of custom creation.

Simcity 4 is a interesting game graphical wise. It mixes 2D and 3D in a such way, that it might be impossible to tell what is 2D, and what's 3D sometimes. I can say for sure that the ground tiles under the buildings is 2D, and that the building is probably 2D as well, but have faked 3D effects when destroyed.

Mixing 2D and 3D like what The sims 1 and Simcity 4 does works best when 3D would be too slow and ugly, but you need the flexibility of 3D objects. But 2.5D as it's called by some people have it's heavy limits. 2D objects have a fixed set of angles, and this was a major limitation in The sims, but not as heavy in Simcity 4.

As for myself, I rather see openTTD stay fully 2D, or seeing a full 3D fork. Then still, some vehicles, such as airplanes would benefit greatly from being fully in 3D.

Some rollercoaster game had a insane amount of sprites for a single car on a attraction, because of the 2D engine. I forgot how many exactly it was..
User avatar
Killer 11
Tycoon
Tycoon
Posts: 2463
Joined: 06 Jan 2004 18:38
Location: Kaunas, Lithuania
Contact:

Post by Killer 11 »

Sims bores me to death, afaik only SOME girls play it here it's just booring as hell and btw i have my own life to live :wink:
User avatar
Ben_K
Tycoon
Tycoon
Posts: 1166
Joined: 01 Jun 2006 15:15
Location: Sydney, AUS

Post by Ben_K »

Killer 11 wrote:Sims bores me to death, afaik only SOME girls play it here it's just booring as hell and btw i have my own life to live :wink:
You just play with trainsets... :lol:
User avatar
Killer 11
Tycoon
Tycoon
Posts: 2463
Joined: 06 Jan 2004 18:38
Location: Kaunas, Lithuania
Contact:

Post by Killer 11 »

i don't have model trains i would need to buy them...
But i don't need to buy life to live it...
Quark
Transport Coordinator
Transport Coordinator
Posts: 325
Joined: 20 Sep 2006 11:36
Location: Russia, Moscow

Post by Quark »

Ailure wrote:Simcity 4 is a interesting game graphical wise. It mixes 2D and 3D in a such way, that it might be impossible to tell what is 2D, and what's 3D sometimes. I can say for sure that the ground tiles under the buildings is 2D, and that the building is probably 2D as well, but have faked 3D effects when destroyed.

Mixing 2D and 3D like what The sims 1 and Simcity 4 does works best when 3D would be too slow and ugly, but you need the flexibility of 3D objects. But 2.5D as it's called by some people have it's heavy limits. 2D objects have a fixed set of angles, and this was a major limitation in The sims, but not as heavy in Simcity 4.

As for myself, I rather see openTTD stay fully 2D, or seeing a full 3D fork. Then still, some vehicles, such as airplanes would benefit greatly from being fully in 3D.

Some rollercoaster game had a insane amount of sprites for a single car on a attraction, because of the 2D engine. I forgot how many exactly it was..
There are no sprites in SimCity 4
  • More screenshots from SimCity 4
    Image Image Image
Image
DeletedUser21
Tycoon
Tycoon
Posts: 11501
Joined: 20 Sep 2004 22:45

Post by DeletedUser21 »

Is that rushhour by accident? Since I have SimCity4, but I don't have monorails or things like that subway system. :)
User avatar
Born Acorn
Tycoon
Tycoon
Posts: 7596
Joined: 10 Dec 2002 20:36
Skype: bornacorn
Location: Wrexham, Wales
Contact:

Post by Born Acorn »

Yes, it is. Although normal Simcity 4 does have Subways, just not the El-Rail or the El-Rail<->Subway conversion.
Image
User avatar
charlieg
Transport Coordinator
Transport Coordinator
Posts: 323
Joined: 08 Oct 2003 14:07
Contact:

Post by charlieg »

Open source tycoon games
--
Free Gamer - open source and Free Software games
FreeGameDev forums - open source game development community
User avatar
Octopussy
Engineer
Engineer
Posts: 122
Joined: 01 May 2006 21:57

Post by Octopussy »

I think it would be great to realise the merge between TTD and Sim City in OpenTTD.

I have a name for this product : "Open Transport City" :D :D

What a nice game project !
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Post by Rubidium »

Nothing stops you from branching OpenTTD and developing "Open Transport City" yourself :D Good luck with it!
KUDr
OpenTTD Developer
OpenTTD Developer
Posts: 219
Joined: 11 Jan 2006 21:36
Location: Czech Republic

Post by KUDr »

Regardind 3D: i tried how difficult it would be to change OpenTTD rendering infrastructure to OpenGL. After 3 days it works with some completness issues (it is not yet complete) and few bugs. If fixed, the next step would be 3D terrain renderer, then vehicles and finally buildings. Not so much work except that somebody who comes with tons of models/textures (instead of sprites) would be needed.
User avatar
Ailure
Route Supervisor
Route Supervisor
Posts: 435
Joined: 26 Apr 2005 19:06
Location: Sweden

Post by Ailure »

Quark wrote:There are no sprites in SimCity 4[/url]
Did I ever say that there were? ;) There are some stuff that does look like sprites in the game (such as people walking around) but they're technically polygons. I seen glitches where those polygons bends around, and it's not pretty. XD So it's understandable why the angles is fixed.
Born Acorn wrote:Yes, it is. Although normal Simcity 4 does have Subways, just not the El-Rail or the El-Rail<->Subway conversion.
There's mods for Simcity 4 where you can do that. I forgot the name though. D:
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 18 guests