Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 90 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 2
Category: CoD2 MP Mapping
CoD 2 mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: Working on a terrain generator...
P.C.Invasion
General Member
Since: Mar 22, 2005
Posts: 700
Last: Oct 21, 2013
[view latest posts]
Level 6
Category: CoD2 MP Mapping
Posted: Monday, Oct. 1, 2007 05:58 pm
Hi all.

Inspired by the terrain in BF2, I thought I'd work something out to automatically generate terrain for COD2. My project is very rudimentary so far, but I've had some success with different patch sizes. Plus I'm working with very basic Perl scripting (because that's about the extent of my programming capability) [crazy]

The terrain(s) are based off of greyscale, 8 bit RAW images.
Below are some samples taken from actual terrain screenshots using Google Earth, and exports from Terragen and WorldMachine.

Using the Fake based lighting in Radiant to better show the terrain features.

The Z height for each vertice can be modified in my Perl script.

One foreseeable problem is that I'm using a script for Paint Shop Pro to edit, break down and save the original image into the series of RAW images that my Perl script uses. Not everyone has PSP!








This one used a terrain generated from Terragen:



This one I used a terrain generated from WorldMachine:

Share |
tourist.Tam
General Member
Since: Feb 2, 2007
Posts: 397
Last: Oct 6, 2009
[view latest posts]
Level 5
Category: CoD2 MP Mapping
Posted: Tuesday, Oct. 2, 2007 02:59 pm
Nice idea. Looking forward to see the progress.

Tam
Share |
Capt.Com
General Member
Since: Nov 14, 2004
Posts: 879
Last: Oct 6, 2007
[view latest posts]
Level 7
Category: CoD2 MP Mapping
Posted: Tuesday, Oct. 2, 2007 04:13 pm
P.C.Invasion writes...
Quote:
... One foreseeable problem is that I'm using a script for Paint Shop Pro to edit, break down and save the original image into the series of RAW images that my Perl script uses. Not everyone has PSP!


This is one of the nicest idea so far. As for PSP, anyway not everyone has PhotoShop either. If its easy for you with PSP, go ahead with it and when the progrqam will be done, some updates may be done for other image programs, while waiting, people will "adapt" themselves to your things ;)
Share |
supersword
General Member
Since: Jul 28, 2004
Posts: 1989
Last: Nov 22, 2011
[view latest posts]
Level 8
Forum Moderator
Im a fan of MODSonair
Category: CoD2 MP Mapping
Posted: Tuesday, Oct. 2, 2007 07:00 pm
That's so cool. Good work. Keep us updated. [thumbs_up]
Share |
Mpz
General Member
Since: Jul 10, 2006
Posts: 195
Last: Jun 30, 2008
[view latest posts]
Level 4
Category: CoD2 MP Mapping
Posted: Wednesday, Oct. 3, 2007 10:09 pm
Wow, I'm looking forward to this baby when you release it. It should add some realism to maps fairly easily.

I know from experience that trying to do complex planned terrain manipulations isn't easy. (Bazna, Tunisia was a pain in the butt) This program you are working would have been really nice to have.
Share |
RoterBaron
General Member
Since: May 11, 2007
Posts: 21
Last: Sep 6, 2008
[view latest posts]
Level 1
Category: CoD2 MP Mapping
Posted: Wednesday, Oct. 3, 2007 11:30 pm
hi ... i could also think about a tool doing things like this ...

should not be hard ...

i can make a tool that creates an obj-file ... this can be used with many editors and als be exported with my XMODEl Creator ...

but this can be an idea for later ...

actually i need to work a bit more on the XMODEL Creator ^^
Share |
P.C.Invasion
General Member
Since: Mar 22, 2005
Posts: 700
Last: Oct 21, 2013
[view latest posts]
Level 6
Category: CoD2 MP Mapping
Posted: Friday, Oct. 5, 2007 04:44 am
Thanks for the responses.

I'm working on algorithms to get my program to do what the PSP script does so people won't have to have the Paint Shop Pro software. Things are moving along when I have time to work on it.
Share |
Eladd
General Member
Since: Mar 28, 2004
Posts: 491
Last: Nov 29, 2015
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 MP Mapping
Posted: Friday, Oct. 5, 2007 06:53 am
Wasn't there a terrain generator for SOF?
What if you looked at that? Maybe it could give you some ideas on how to get around the PSP thing?

I never mapped for SOF but as I understand it the terrain was done quite differently to COD even though it was still radiant and based on the quake engine.

You project to date is looking good. It would be great to have something like this. Keep up the good work. Hopefully you will have something that we can all use sooner than later [thumbs_up]
Share |
playername
Preferred Member
Since: Aug 24, 2006
Posts: 821
Last: Apr 15, 2011
[view latest posts]
Level 7
Forum Moderator
Im a fan of MODSonair
Category: CoD2 MP Mapping
Posted: Saturday, Oct. 6, 2007 03:31 am
Wow that looks good! I can't do terraining worth poo-poo! My terrain is like all bumpy and blochy. That is better than i can do, keep up the great work
nullFew tips for coding.
1. Keep the script as short as possible.
2. Don't comment every line. Only comment portions where they may be needed to point something out.
3. Don't over complicate the script, keep it organized and easy to read.

These help you find simple errors and makes it easy to make changes.
Share |
P.C.Invasion
General Member
Since: Mar 22, 2005
Posts: 700
Last: Oct 21, 2013
[view latest posts]
Level 6
Category: CoD2 MP Mapping
Posted: Sunday, Oct. 7, 2007 05:29 pm
Excellent progress this weekend!!

I've got my program to edit the source raw image file so there will be no need for any image editing software or scripts whatsoever.

[jumping][jumping]

If I have the time to clean things up a bit, and I don't hit any roadblocks, I should have a "prototype version" released this week sometime.
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 MP Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»