Page 1 of 1

Trouble with a map

Posted: 27 Feb 2009, 04:42
by Sheekel
Cant seem to get the texture map to display properly, any ideas?

http://img150.imageshack.us/my.php?image=screen000g.jpg

Re: Trouble with a map

Posted: 27 Feb 2009, 04:44
by MidKnight
post source textures?
although you probably already know: texture images need to be 8x map size +1

to be honest, i dont have very much experience in mapping
dont expect good advice from me! :P

Re: Trouble with a map

Posted: 27 Feb 2009, 04:50
by Sheekel
1) texturemap = 512*yourspringmapsize (in this example this value is: 512*4 = 2048)
2) heightmap = (texturemapsize/8)+1
3) metalmap = (texturemapsize/8)+1

I'm running 4096x2048 = 8x4 map, so height and metal maps are 513x257

The map compiled and displayed correctly once..then i did some minor tweaking to the heightmap in photoshop and now its borked :/


I've tried compiling with a blank heightmap, metalmap, and texturemap, and i still get the same screwy map. Am i missing a parameter when im compiling?

c:\mapconv\mapconv.exe -c - x 500 -n 50 -o TestMap.smf -t texture1.bmp -m metal.bmp -a height1.bmp -i -l

Re: Trouble with a map

Posted: 27 Feb 2009, 05:10
by MidKnight
quadruple-check photoshop export settigs?

Re: Trouble with a map

Posted: 27 Feb 2009, 05:24
by Sheekel
yeah about 6 times

Re: Trouble with a map

Posted: 27 Feb 2009, 10:01
by SirArtturi
This is because users map conv is buggy and give really weird results eventhough everything would be right...

Beherith has tweaked mothers map compiler to produce output without scanlines so I suggest you to use that compiler.

It should be uploaded to jobjol IIRC.

edit:

Also I would suggest you to make featuremap, eventhough you wouldnt have any features on it... Make it pure black...
Sheekel wrote:
c:\mapconv\mapconv.exe -c - x 500 -n 50 -o TestMap.smf -t texture1.bmp -m metal.bmp -a height1.bmp -i -l
You could set compression value -c and if you are using users conv, it doesnt support .bmp's

Re: Trouble with a map

Posted: 27 Feb 2009, 10:09
by Beherith
Yep, typical users mapconv bug. And as Artturi said, add a blank featuremap, 512*256 black bmp in your case.

Link to tweaked mothers mapconv:
http://spring.jobjol.nl/show_file.php?id=1745

Re: Trouble with a map

Posted: 28 Feb 2009, 16:38
by TradeMark
Can you send that program source code? (and all needed libaries etc) i want to make it faster.

Re: Trouble with a map

Posted: 28 Feb 2009, 19:37
by BaNa
TradeMark wrote:Can you send that program source code? (and all needed libaries etc) i want to make it faster.

AFAIK beh's tweak is a wrapper program that corrects the syntax problems with mother mapconv, not a lot to tweak there. You should look into mothers mapconvs source if you want to tweak.

Re: Trouble with a map

Posted: 28 Feb 2009, 19:42
by TradeMark
where is the source code?

Re: Trouble with a map

Posted: 01 Mar 2009, 03:42
by MidKnight
iirc, the reason beherith made a wrapper, and not a bona fide tweaked version, is that the mapconv source is apparently harder to compile than TASClient :P

Re: Trouble with a map

Posted: 01 Mar 2009, 11:42
by Beherith
I posted the source code into the thread. As you can see its really not much. No additional lib dependencies are needed. Its just a standard console app made in visual studio.

http://spring.clan-sy.com/phpbb/viewtop ... 70#p336070

Re: Trouble with a map

Posted: 01 Mar 2009, 14:06
by BrainDamage
MidKnight wrote:iirc, the reason beherith made a wrapper, and not a bona fide tweaked version, is that the mapconv source is apparently harder to compile than TASClient :P
I compiled mothers mapconv in linux out the box by just using just make
and i'd espect it be no more troublesome in mingw after i download the required libs ( probably spring's mingwlibs are more than enough ), so not hard at all

Re: Trouble with a map

Posted: 01 Mar 2009, 15:13
by TradeMark
Beherith wrote:I posted the source code into the thread. As you can see its really not much. No additional lib dependencies are needed. Its just a standard console app made in visual studio.

http://spring.clan-sy.com/phpbb/viewtop ... 70#p336070
i mean mapconv source lol

but seems like nobody has it / nobody knows how to compile

maybe someone could point out the map format definitions and i make it from scratch then?

Re: Trouble with a map

Posted: 01 Mar 2009, 16:21
by Beherith
Oh, you can get mapconv source easily, its in the spring SVN repository under trunk/tools/mapconv . If you want the old version of it, you need to check out revision 5000 of mapconv.

I only had major trouble compiling it, thus I decided it took less time to write a wrapper.