3d graphics repository

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

exe
Engineer
Engineer
Posts: 54
Joined: 06 May 2004 15:20

3d graphics repository

Post by exe »

Hello. How about creating 3d TT graphics directly on a wiki?
http://sharpttd.top100.net.pl/wiki/inde ... stries.xml
The data can be downloaded to the (not much existant) game automatically with one click. On other pages of wiki there is also the rest of data files. After uploading all the dummy models, they could be improved gradually. It's easy to run free Wings3d modeler, improve a model, and upload it back, and it's even easier with textures. With a small custom .3ds viewer one could see how industries completed from the parts, and also other models, look in the game.

Are there any low poly TT models created already? Where?
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2890
Joined: 16 May 2007 16:59

Re: 3d graphics repository

Post by Zephyris »

I replied to your othere thread, but I'll put it here as well!

I am very interested in this idea, and 3D models and textures are something I think I can contribute greatly to. I am very willing to make a complete set of both models and textures, however:
It is only worth spending lots of time on graphics and models if its going to happen, how committed are you? :)
What are the specifications of all the models and graphics? ie. file type, scale and polygons/file type and resolution?
What features does the 3D engine support? alpha texures/bump+normal mapping/specualrity/shadowing?
I really want to play OpenTTD in 3D, not a similar game or remote branch - are you aiming to develop this in trunk-acceptable bitesize chunks? I can imagine this would be a lot of work...

I don't mean to put you off because I would love to see this happen, but there are lots of important questions!
exe
Engineer
Engineer
Posts: 54
Joined: 06 May 2004 15:20

Re: 3d graphics repository

Post by exe »

Zephyris wrote: I really want to play OpenTTD in 3D, not a similar game or remote branch - are you aiming to develop this in trunk-acceptable bitesize chunks? I can imagine this would be a lot of work...
Really sorry if that was confusing, but it IS a "similar game or remote branch", in C# :(
Openttd has gui and viewport linked very tightly, i'm not sure if it's ever possible to split everything.
Technically another option would be using SharpTTD gui, SharpTTD 3d viewport, and as a backend OpenTTD linked in using C++/CLI, but that would be hard too.
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2890
Joined: 16 May 2007 16:59

Re: 3d graphics repository

Post by Zephyris »

Oh well :( my ultimate dream would be OpenTTD in 3D. I would still like to help if I can though, do you have any answers to my other questions?
exe
Engineer
Engineer
Posts: 54
Joined: 06 May 2004 15:20

Re: 3d graphics repository

Post by exe »

On the other thread:
exe wrote: 3D models created from TTD graphics is something so basic and obvious that it just can't get lost or be wasted. And on MIT license they can be used for anything.

Models should be really low poly, so it is possible to view massive parts of map. And the texturing should look quite like the original. One map square is one unit in modeller. 3ds files can be imported and exported anywhere including Wings3d, but they can lose some info.

However SharpTTD is not a 3d renderer for OpenTTD, but a totally different game. 3d rendering is just very small part of it. I wouldn't trust this game before I could play it - build some signalled rail routes between industries and earn money, save and load. (to done this year?)

So models are needed anyway right now, at least the dummy ones.
Textures should be .png, and with power of two dimensions (512?). 3d is drawn using http://en.wikipedia.org/wiki/Irrlicht_Engine
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2890
Joined: 16 May 2007 16:59

Re: 3d graphics repository

Post by Zephyris »

Another thing you might want to consider is working with the simutrans engine, I think the code is better separated into graphics and engine chunks...
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2890
Joined: 16 May 2007 16:59

Re: 3d graphics repository

Post by Zephyris »

Attatched are some generic textures (good placeholders) and a selection of low poly .obj s, some houses and oil refinery components.
Attachments
ZephyrisObj1.zip
(30.48 KiB) Downloaded 317 times
ZephyrisPng1.zip
(1.58 MiB) Downloaded 313 times
exe
Engineer
Engineer
Posts: 54
Joined: 06 May 2004 15:20

Re: 3d graphics repository

Post by exe »

Zephyris wrote:Attatched are some generic textures (good placeholders) and a selection of low poly .obj s, some houses and oil refinery components.
Looking good!
a) Instead of ground polygon, just a tile texture specified in the data file should be enough.
b) Scale seems to be 2.5, not 1.0.
c) No uv texture maps yet, and all polygons have backfaces.

I didn't know there is a 3d editor by Google.

Currently I'm doing pathfinding, next it will be downloading data from wiki to the game, and a model previewer tool.
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2890
Joined: 16 May 2007 16:59

Re: 3d graphics repository

Post by Zephyris »

So 3D requirements are:
- No base polygon
- No backfaces
- Tile width = 1
- UV mapped

Some more questions:
- Where should the origin be, I currently use on corner of the tile...
- Why UV mapped? For this type of project I am supprised this is the most efficient way of texturing, a huge number of textures may be reused on different buildings - a massive saving in memory usage: 10 houses, all have brick walls with windows and tiled roofs... 2 generic 256x256 textures, or 10 UV mapped 512x512 textures?
exe
Engineer
Engineer
Posts: 54
Joined: 06 May 2004 15:20

Re: 3d graphics repository

Post by exe »

- Yes, it should be corner of the tile.
- Sure, textures can be reused. I was thinking "textured at all".
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2890
Joined: 16 May 2007 16:59

Re: 3d graphics repository

Post by Zephyris »

Should the textures be provided applied to the model, or provided separately? Because I'm not working directly with .obj i'm not sure how the images are handled...
See attached for example textures.
Attachments
HouseWall1cropedit.png
HouseWall1cropedit.png (329.79 KiB) Viewed 15547 times
OfficeWall1_60s_cropedit.png
OfficeWall1_60s_cropedit.png (231.73 KiB) Viewed 15505 times
PoshWall1cropedit.png
PoshWall1cropedit.png (311.67 KiB) Viewed 15398 times
exe
Engineer
Engineer
Posts: 54
Joined: 06 May 2004 15:20

Re: 3d graphics repository

Post by exe »

Those textures are really good!!

Textures should be simply applied to the model. If it would be needed to change them later, then it is still possible.

Try this: http://sharpttd.top100.net.pl/wiki/inde ... =3d_viewer (1.1 MB)
The model should load with all its textures just by double click on the .obj or .3ds file.

I don't know what the lighting should be - currently it is disabled.
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2890
Joined: 16 May 2007 16:59

Re: 3d graphics repository

Post by Zephyris »

I'm stuck with texturing, I want to get the 512 pixel textures to exactly fit the 1 unit model, mapped via a cube, any ideas?
exe
Engineer
Engineer
Posts: 54
Joined: 06 May 2004 15:20

Re: 3d graphics repository

Post by exe »

Zephyris wrote:I'm stuck with texturing, I want to get the 512 pixel textures to exactly fit the 1 unit model, mapped via a cube, any ideas?
That depends on the modeler used. I would apply material per-face, and then use planar mapping. Or if there is no simple planar mapping then I would try to manually uv unwrap that faces.

BTW: Now there is batching in 3d renderer, and it's possible to render somewhere between 128x256 and 256x256 map tiles (with buildings, trees) on the screen at once with decent fps.
mikael
Engineer
Engineer
Posts: 3
Joined: 14 Nov 2007 13:08

Re: 3d graphics repository

Post by mikael »

Really nice ideas and work exe! Have played OTTD for a while now and the original game in the 90's. I tried your 3d viewer and it runned smoothly on my computer, have you another version that can download 3d objects from the wiki yet? Really want to test that when it's available!

Keep it up man!
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2890
Joined: 16 May 2007 16:59

Re: 3d graphics repository

Post by Zephyris »

It should look awesome, but the problem, as always, is time...

I am setting up a set of models based on a 0.125 unit subgrid (ie. 1/8 ths) and a set of textures that can be subdivided into 1/8 ths without cutting through a window, etc. This way simple planar mapping onto the walls, at a scale of 512 pixels per model unit, will look good, and the textures can be quickly reused on any model. However, I'm stuck with the scaling...
exe
Engineer
Engineer
Posts: 54
Joined: 06 May 2004 15:20

Re: 3d graphics repository

Post by exe »

Any progress with the models and texturing?
Perhaps the precise adjustment and scaling of textures uv on the walls needs to be done more manually on each model.

And there is a question whether models should be remade identical to the original graphics (like on the wiki, part-by-part) or just approximately? Doing identical models could be easier.

Image
256x256 map
Attachments
256x256
256x256
screen3.PNG (452.12 KiB) Viewed 4428 times
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2890
Joined: 16 May 2007 16:59

Re: 3d graphics repository

Post by Zephyris »

The issue (as always) is time! Real life is taking over at the moment...
humdingerx
Engineer
Engineer
Posts: 6
Joined: 05 Jan 2005 11:27

Re: 3d graphics repository

Post by humdingerx »

Oh my gosh! It is my dream to play OpenTTD in 3D as well :) That last picture looks nice! I hope some time you get some free time and can make it!
mikael
Engineer
Engineer
Posts: 3
Joined: 14 Nov 2007 13:08

Re: 3d graphics repository

Post by mikael »

Looks very promising! I like the idea to begin with dummies of each object, make it work, and then bit for bit replacing the 3d objects with real and stunning graphics!
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Ahrefs [Bot], Axlandia and 17 guests