SC4 Devotion Forum Archives

Other City-Building Games => [Archived] CityMania - Open Source Sim City => Other games => CityMania Graphics => Topic started by: Nique on September 03, 2009, 01:12:21 PM

Title: [Graphics] Object type, 2d sprites or 3d models?
Post by: Nique on September 03, 2009, 01:12:21 PM
For example, a tree

Should it be drawn as a 2d sprite? or just as a model?
I think a tree should be drawn as a 2d sprite pointed to the camera because we have a static camera.
If we want to simulate wind (in the future), we can animate it.

Now, a car has to make a curve when it turns right or left. So i suggest that we use and leave them as 3d models in game.
Title: Re: [Graphics] Object type, 2d sprites or 3d models?
Post by: joelyboy911 on September 03, 2009, 01:25:27 PM
I think that trees are such complicated objects, that they should be kept 2d. All those different branches would slow the rendering down a lot.
Yes. cars and other vehicles should be 3d.
Title: Re: [Graphics] Object type, 2d sprites or 3d models?
Post by: croxis on September 03, 2009, 01:51:30 PM
Sprite or billboard should work.
Title: Re: [Graphics] Object type, 2d sprites or 3d models?
Post by: JonM on September 06, 2009, 12:55:18 PM
Ya but on the other hand, you can make a beautiful 3d tree under 100 polys, using billboards with 3d trunk and what not. But for now maybe we should keep it easier, a 2d billboard.

Title: Re: [Graphics] Object type, 2d sprites or 3d models?
Post by: Jonathan on September 06, 2009, 01:58:13 PM
I'm not sure what a billboard is, but is it one of things things that are always facing the camera?

Well I'm not sure if I'm the only one but I find them incredibly annoying, it probably wouldn't be so noticeable in 2.75D but it's just irratating how they are identical on all sides.

If that's totally incorrect/irrelvant/etc then just ignore it.

Jonathan
Title: Re: [Graphics] Object type, 2d sprites or 3d models?
Post by: Nique on September 06, 2009, 03:16:42 PM
of course not. It is rendered from a 3d model.. from all points so it wont be identical on all sides.
Title: Re: [Graphics] Object type, 2d sprites or 3d models?
Post by: croxis on September 06, 2009, 05:25:59 PM
A billboard is essentially a square or rectangle with a texture on it. This is how buildings were done in SC4. 
Title: Re: [Graphics] Object type, 2d sprites or 3d models?
Post by: mrdazza_460 on September 07, 2009, 06:33:26 AM
The trouble hear is, getting the trees, I have a tone of models of trees but they came with rhino, I can render them for you but don't know if you are allowed to uses them.
Title: Re: [Graphics] Object type, 2d sprites or 3d models?
Post by: Nique on September 14, 2009, 03:04:17 PM
Hmm, i have seen tropical 3 DEMO (http://www.bigdownload.com/games/tropico-3/pc/tropico-3-demo/), i think this way of rendering (constructing) buildings is also a good option to consider.

And have you seen the terrain? It's fantastic.


(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg193.imageshack.us%2Fimg193%2F7340%2Ftropico3200903061142261.jpg&hash=e9ecbec13bdf52c3313a0b43e8d64999112bb5e8)
Title: Re: [Graphics] Object type, 2d sprites or 3d models?
Post by: croxis on September 14, 2009, 04:37:36 PM
With 3d graphics a lot comes down to the quality of the textures.  Awesome textures can even make low polygon objects look good (some games on the wii are great examples of this).
Title: Re: [Graphics] Object type, 2d sprites or 3d models?
Post by: Nique on September 14, 2009, 05:05:25 PM
I think one of the most important things to archive is render good, realistic graphics. So, we need to pay a lot of attention on textures and vegetation of the terrain (tree's grass, bushes, (maybe low poly models?) rocks...). 
Title: Re: [Graphics] Object type, 2d sprites or 3d models?
Post by: j-dub on September 14, 2009, 05:08:19 PM
I don't know why, but for some reason, the stuff I see in this picture does remind me of a ground level SimCity 4. However, this looks like it takes a lot of space, whatever is going on here, there appears to be a huge draw distance here and a lot of foliage. Someone knows how to render. Anyway Nique,I think City Mania would look fine just as this picture, we don't have to get carried away with the weeds though. All I know is that flat trees that spin around and just face the camera are annoying.

Mrdazza_460: There really should be no problem porting the trees from that program for this project. Why? Because we already used a bunch of copyrighted stuff into SC4 already anyway. Besides the fact, other game players/modders are always porting something from somewhere else, like a console game into their mods for a different PC game. I have a game I will not mention, that does do just that. What makes this so different? There is so much going on, it can't be stopped. So long this is not for profit, the original tree maker is credited, and the fact we can say this is fair use, there should be no problem.

If you don't feel safe with I said above, I thought people did upload BAT ready 3D tree models to the SimCity4 exchange sites anyway. For that matter, other stuff like water BAT models are uploaded too, so to make stuff easier later, there is that, instead of the ground up. I also thought, so long as you work with them, they would allow this stuff for a situation like this, since they are SC4 community already. This Tropical game takes advantage of 3D plant models. If City Mania can look just like this Tropical picture, I think that would be the route. Maybe Nique, I don't know if you have the Tropical demo, maybe porting stuff from that game would work.
Title: Re: [Graphics] Object type, 2d sprites or 3d models?
Post by: mrdazza_460 on September 26, 2009, 04:36:26 PM
to save you time you should just get a standard set of textures and so on and let other people mod it down the track, you can get bogged down with stuff like this and let it consume the project.   
Title: Re: [Graphics] Object type, 2d sprites or 3d models?
Post by: tomkeus on November 23, 2009, 03:56:01 PM
OK, guys, I know we've been quiet for some time, but croxis and me are discussing some problems. So here's the lowdown:

We initially wanted to have 2.75D version (kinda like in SC4, only allowing us to have buildings at arbitrary angle) in order to have greater detail. It turned out to be problematic. When I came up with the idea, it didn't cross my mind to do some estimates on memory usage. I did that last week, and it turned out that it would require ridiculous amounts of graphics memory (10x10 km city could require somewhere between 2 and 5 GB of memory to store textures).

So I guess, we will have to scratch that idea and go 3D. Some estimates I did show that we could fit 10x10 km city full to the brim in less than 512 MB of graphics memory.

This rises the question of processing performance so some aggressive optimizations would be required. I'm currently looking into some papers concerned with rendering of large architectural environments.

One idea I have is to have orthographic camera positioned like in SC4 as primary camera, only being capable to rotate around vertical axis and not just being limited to four angles. This allows for easy and fast determination of visible geometry. Free camera doesn't allow for such optimization and using it, especially for panoramic views will significantly hit performance, so I'm thinking that it could be good idea to use it as a secondary camera.
Title: Re: [Graphics] Object type, 2d sprites or 3d models?
Post by: Atomius on November 24, 2009, 09:01:49 AM
As long as there is a mode or expansion pack or some way to have the 'free camera' i'm for the idea.

Incidentally I recently purchased Game Maker Pro and Virtucity has a beta 3D mode with perspective projection. Of course with my weak knowledge of modelling and lighting etc it is a slow process.

But it's good to know you've ditched ortho SC4 style. I always thought a true successor to 4 should be in full 3D, or have a full 3D option/mode.
Title: Re: [Graphics] Object type, 2d sprites or 3d models?
Post by: tomkeus on November 24, 2009, 09:51:42 AM
Quote from: Atomius on November 24, 2009, 09:01:49 AM
But it's good to know you've ditched ortho SC4 style. I always thought a true successor to 4 should be in full 3D, or have a full 3D option/mode.

It is nice, but large cities have huge amounts of polygons, so it is in no way easy task to get acceptable performance, not even CXL did it, and they had professional developers and millions of $ at disposal who actually did pretty good job considering huge amounts of geometry they had to handle.
Title: Re: [Graphics] Object type, 2d sprites or 3d models?
Post by: Atomius on November 25, 2009, 10:00:37 AM
Well I think you mentioned the game would be developed using the 'contruction layer', so as computers are getting more powerful I should think that by the time the game engine is as good as what Simcity 5 would have had perhaps it will be easier.



Title: Re: [Graphics] Object type, 2d sprites or 3d models?
Post by: tomkeus on November 25, 2009, 11:11:59 AM
Quote from: Atomius on November 25, 2009, 10:00:37 AM
Well I think you mentioned the game would be developed using the 'contruction layer', so as computers are getting more powerful I should think that by the time the game engine is as good as what Simcity 5 would have had perhaps it will be easier.

It wasn't easy so far. I sifted through a c**pload of papers from various academic journals concerned with rendering of urban environments. Bottom line is that there is no universal way to do optimization. At least three methods for visibility determination should be used, depending on the position of the camera.

First when camera is isometric and positioned like in SC4, second when the camera is free and close to the ground (or bellow average roof line) and third for panoramic views of the city (camera above the roof line, looking either not too much bellow the horizon or not much over the horizon).

So far, I think I've found good way to do first and second, but the only idea to optimize third I have so far is to use agressive LODing.