New map format

New map format

Discuss maps & map creation - from concept to execution to the ever elusive release.

Moderator: Moderators

Post Reply
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

New map format

Post by jcnossen »

See this post:
http://taspring.clan-sy.com/phpbb/viewt ... 026#112026

There is some help in the wiki: http://spring.clan-sy.com/wiki/SM3_Map_Format , which will be updated in the future as I finish the renderer.
Last edited by jcnossen on 16 Aug 2006, 02:32, edited 1 time in total.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Post by knorke »

ooooooh :shock:
I like how you can simply use images to make a map.

At first I got the error "maps/dry.smd not found" (when the commander was spawned) but then I made a copy of "dry.sm3" named "dry.smd" and it worked.
Seems the game stills looks for that file even when it doesnt need it?

Not sure if this not done yet or a bug:
nano-particles are light-blue, selection rectangles are black, radar isn't drawn
(windows xp, Leadtek 6800)

The lighting on one of the maps looks kinda cool, is it dynamic, ie are rising suns and stuff possible?
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Post by Forboding Angel »

the new format is simply pwnage. I've been messing around with it the lost few days.
User avatar
SwiftSpear
Classic Community Lead
Posts: 7287
Joined: 12 Aug 2005, 09:29

Post by SwiftSpear »

I don't quite get how blendmaps work... What size should your blend map be as opposed to your heightmap? White = full render and black = full texture alpha?

Also, can we add decals to the map? Things like roadways running along the map...
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

nanoparticles are light blue because thats team coloured nanoparticles takign effect.

Although SJ turned it off by default in a recent commit but I think the nanospray looks very very nice
User avatar
Comp1337
Posts: 2434
Joined: 12 Oct 2005, 17:32

Post by Comp1337 »

The heightmap looks a bit... wrong. I think it needs some transparecy or just decreased brightness.
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Post by jcnossen »

What size should your blend map be as opposed to your heightmap? White = full render and black = full texture alpha?

Also, can we add decals to the map? Things like roadways running along the map...
The blendmap can have any power of two dimensions, equal to heightmap dimensions-1 or smaller.

Decals will probably come later at some point. Also in cooperation with Buggi so the editor can place decals in a nice way.

At first I got the error "maps/dry.smd not found" (when the commander was spawned) but then I made a copy of "dry.sm3" named "dry.smd" and it worked.
Seems the game stills looks for that file even when it doesnt need it?
Hm not sure, I'll check this out when I get home.
The lighting on one of the maps looks kinda cool, is it dynamic, ie are rising suns and stuff possible?
No, there are a lot of tradeoffs for such a thing, and I prefer fast static shadows like this to dynamic shadows actually. People still want to play spring on pre-shader hardware, and it's quite complex to implement both static optimizations for those and dynamic stuff for flexible hardware.

Also the [LIGHT] section is used to generated the shadowing, but with a point light instead of a directional light which it actually is. So that might be confusing but it will change.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Post by Forboding Angel »

Comp1337 wrote:The heightmap looks a bit... wrong. I think it needs some transparecy or just decreased brightness.
Ok, at what point did you miss the fact that he's telling us about the new map format and not releasing a map :roll:

JC, got a question about the tile size. I understand that the tile size can be used to resample textures on the map... how do you set it so that it does not change the size of the textures at all? Tile size = 0?

Also, if the blendmaps are set as blend and basically acting as layers... Which ones get applied first? For example: If I'm using 15 blendmaps and I need a few of them to be applied before the others (because they overlap), does the sequence in the sm3 define the order that they are applied?

Also kids, you can use the render demo that JC posted long ago to see what your map looks like with bump mapping.

Oh damn, another point. When you archive your map, you can put everything else in seperate folders etc, but the sm3 must remain only in the maps folder inside the archive.
User avatar
Cheesecan
Posts: 1571
Joined: 07 Feb 2005, 21:30

Post by Cheesecan »

This is great. I'll be diving in once I finish my current project!
colorblind
Spring Developer
Posts: 374
Joined: 14 Mar 2005, 12:32

Post by colorblind »

jcnossen wrote:
At first I got the error "maps/dry.smd not found" (when the commander was spawned) but then I made a copy of "dry.sm3" named "dry.smd" and it worked.
Seems the game stills looks for that file even when it doesnt need it?
Hm not sure, I'll check this out when I get home.
It was a 'bug' in some startscripts, which had the .smd extension hard-coded. It's already fixed in SVN 8)
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Post by Forboding Angel »

Very soon I will be posting a new tutorial of how to very effectively use this new map format. Any idiot can make one blendmap for hills etc and all it a day, but with craploads of blendmaps available it's a crying shame not to take advantage of it.
User avatar
Cabbage
Posts: 1548
Joined: 12 Mar 2006, 22:34

Post by Cabbage »

er any chance of posting a few screenshots? Or does it still look pretty similar atm?
User avatar
NOiZE
Balanced Annihilation Developer
Posts: 3984
Joined: 28 Apr 2005, 19:29

Post by NOiZE »

from up high it looks awesome the lighting is really nice.

Image


from closer down, i miss a detail tex, and the hills look a bit blury IMO. Also the minimap doesn't work yet for me. And the selection box around a unit is black instead of green.

Image
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Post by Forboding Angel »

No need for a detail tex tho. Normals bumpmapping ftw.
User avatar
Weaver
Posts: 644
Joined: 07 Jul 2005, 21:15

Post by Weaver »

Ooh, time to play.
User avatar
NOiZE
Balanced Annihilation Developer
Posts: 3984
Joined: 28 Apr 2005, 19:29

Post by NOiZE »

Detailtex is needed for when you are up really close... it now just get blurry which doesn't look nice...
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Post by Forboding Angel »

JC another question about the new format.

I know that a 2048x2048 is the max that an ATI card will handle, however, Will larger work in spring? Please tell me that that max size isn't hardcoded. THe new generation of gfx cards can do 8192. Anyway, I'm getting off point here.

Will spring run the map if it is larger that 2048x2048 and since you still ahve to add +1 pixel, will 2049x2049 break maps for ati users? Can maps on the scale of 4096x4096 (4097x4097 actual hightmap dimentions) be usable for people with nvidia cards?
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Post by Forboding Angel »

NOiZE wrote:Detailtex is needed for when you are up really close... it now just get blurry which doesn't look nice...
dude, make sure you aren't blowing up the tile sizes. Resampling a high res texture == bad.
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Post by jcnossen »

Detailtex is needed for when you are up really close... it now just get blurry which doesn't look nice...
Nobody's stopping you from adding more texture stages ;)
IMO it's better just to replace the snow with a higher res. texture.

This pack for example looks great: http://www.slackiller.com/downloads/cliff_textures.zip , especially when I still had the bumpmapping in it.
Will spring run the map if it is larger that 2048x2048 and since you still ahve to add +1 pixel, will 2049x2049 break maps for ati users?
Not hardcoded, it's just that currently the shadow texture has a fixed ratio with the heightmap, so when the heightmap gets too big the shadow texture will be > 2048x2048
And I'm not sure how the rest of spring handles 4096x4096

Anyway, you see it still needs a lot of polishing...

Another thing is that for blend operations, the renderer optimizes when entire nodes have black or white areas on the blendmaps.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

A detailt exture cna still be applied, just tile a detail texture over the map using a blendmap that covers the whole map applying transparency to it..
Post Reply

Return to “Map Creation”