A cool new way of texturing LoD

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

User avatar
Mj
Map Reviewer
Posts: 1394
Joined: Sun Apr 25, 2004 3:36 pm
Location: England

A cool new way of texturing LoD

Post by Mj »

I dont know if anyone had thought of this, but in my new map for MoH:Vietnam, (a big map for planes and things) i wanted to make a peninsula. So the first time ever, i used PSP to make my terrain, and it turned out just great. But texturing? Reeeeealy difficult. I would have had to make many different textures for each angle, ect, which explains why all MoH:AA maps are very right-angle-ish. And the fact i couldnt do paths annoyed me too. soooo in a stroke of genius, I enlarged my heightmap around 1000%, and used the textures in correspondence with the height, and then appiled the thing as a whole to my terrain!

More freeform 8-)

Hope this is useful for some of ya,

Mj
Last edited by Mj on Sat Nov 06, 2004 12:27 pm, edited 1 time in total.
ImageImage
User avatar
Jack Ruby
General
Posts: 1443
Joined: Fri Feb 07, 2003 12:20 am
Location: london

Post by Jack Ruby »

That look excellent MJ , I dont understand how you did it, can you explain it in more detail, like how do you increase the heightmap and whats a heightmap anyway ?
Philip II of Macedon sent a message to Sparta:
"If I win this war, you will be slaves forever."
The Spartan ephors sent back a one word reply: "If".
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Cool 8-) I actually tried that for my first mohaa map but in my case it looked horrible :oops: ... looks like you got it to look much better - I'm really impressed ;). Out of curiousity, how many textures did you use and of what size?
Image
User avatar
Mj
Map Reviewer
Posts: 1394
Joined: Sun Apr 25, 2004 3:36 pm
Location: England

Post by Mj »

I will try an explain in some detail... unfortunatley a teacher confiscated my keyboard and mouse 'cause i was playing after lightsout, so you have no pics, i'm afraid. :P

Ok, since i'm lazy, here is how to make a heightmap
http://users.1st.net/kimberly/Tutorial/lodterrain.htm :)

What i did, was count the number of lod squares along one side of my map (in my case 32, for the whole grid) and multiply that by 256, half the original heightmap tga file size in pixels.( = 8192) So, I resized the heightmap image to 8192 pixels (height and length) Thefore we now have 256 pixels per LoD Square, and saved it as a jpg (when i first saved it is a TGA file, it was 150MB :? ) And ended up with a 700kb file. Make it into a texture, select the LoD in question, and apply the texture. It should come up 4 times, one of the heightmap in each quadrant. Just texture window, and scale 2, 2, and it should fit like a glove :)
The picture might need flipping, just use PSP for that.

Then go into game, and the white should correspond with the high parts of your terrain, and the dark, the low. If all's cool, then you can texture your image, using the heightmap as a basis (EG the black line = a river, so mud tex there, the white is mountains, rock tex there ect.) i used stock mohaa textures, and balr14's excellent textures, and made them patterns in PSP, so i could just apply them with the brush :)

My paths are pretty stupid looking, but thats because my PSP skills are pretty low... :wink:

I hope some of that made sense, if not just complain, and i'll try again :P

Mj
ImageImage
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

what ever made you do tht Mjdude? but it's brilliant!
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
Jack Ruby
General
Posts: 1443
Joined: Fri Feb 07, 2003 12:20 am
Location: london

Post by Jack Ruby »

I understand, excellent work and a great idea, :)
Philip II of Macedon sent a message to Sparta:
"If I win this war, you will be slaves forever."
The Spartan ephors sent back a one word reply: "If".
Ric-hard
Sergeant Major
Posts: 102
Joined: Sun Feb 29, 2004 6:44 am
Location: sweden
Contact:

Post by Ric-hard »

Hallo :)
I use a nice software for this FreeWorld3d (there is a demoversion if u wanna check it out), u can paint-sculpture the terrain & paint your textures in layers and blend them together so u get nice soft edges.
Ive used a bunch of terrainmodellingsoftwares but this 1 I really recommend.

Below is screenie from a map I started on where I used this technique.

Image
User avatar
diego
Captain
Posts: 245
Joined: Sun Dec 21, 2003 10:47 pm

Post by diego »

Hmm, It looks really good. But isn't an MTEX value of 79 a bit high? Anyone with more experience care to elaborate on the effect that will have on FPS?

I don't know what kind of system you have or your settings, but I wouldn't want my map to run at 29 fps.


Oh, and that software is only $20. Probably a good investment if you are a terrain newbie like me. And it also looks like it might be more useful with Pacific Assault's method of mapping.

But I want to see what LOD is like the hard way first.
Diego
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Ric-hard, how can you export the stuff you make with that program to radiant? Does it really make LOD patches? or does it generate terrain from brushes? or do you just export a height map? :?
Image
User avatar
Mj
Map Reviewer
Posts: 1394
Joined: Sun Apr 25, 2004 3:36 pm
Location: England

Post by Mj »

what ever made you do tht Mjdude?
Ehm.... good question :)

About FPS + Mtex, its a biiiiiiiiig map, (full grid) and i managed to up the FPS with this 1 big texture. There are a few cons though, like the terrain image is 15mb for me...
ImageImage
Ric-hard
Sergeant Major
Posts: 102
Joined: Sun Feb 29, 2004 6:44 am
Location: sweden
Contact:

Post by Ric-hard »

So far Ive exported heightmaps to use in radiant. Im still waiting for my activationcode for FreeWorld3d.
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

Can you guys please use smaller pictures I would hate to have to change your image tags to links .
Image
Ric-hard
Sergeant Major
Posts: 102
Joined: Sun Feb 29, 2004 6:44 am
Location: sweden
Contact:

Post by Ric-hard »

Which max-size is suitable?
640x480?
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

50%

Post by tltrude »

Make your images 50% or 66.67% of your normal screen resolution size. For me, I always have to brighten and sharpen them a bit.
Tom Trude,

Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

bdbodger wrote:Can you guys please use smaller pictures I would hate to have to change your image tags to links .
True... MJ please resize your image to 640x480 or it will have to be replaced by a link... the forums need to be readable :wink:
Image
Post Reply