Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Models and Media / [LOCKED] rolfy uneven terrain tutorial (How to get working terrain inFPSC)

Author
Message
rolfy
17
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 27th Feb 2007 06:40 Edited at: 27th Feb 2007 19:33
This tutorial will help you to get your terrains into FPSC,with full collision for player and enemies.I know others have done much the same thing but this takes it a little further.
For this tutorial I used 3dsMax,but it should work in theory for any modeling program which will enable you to cut and slice your meshes into smaller parts.
The main thing to remember here is that you must be precise in your slices or you will end up with alignment and collision errors in your segments.
I am assuming a basic knowledge of Max to use this method,please do not ask questions about using Max in this thread,if you dont know how to turn the grid on I can only suggest you read the sofware manual.

First off create your terrain,I use 'Mountain' a free plug-in by Effectware,I have used this plug-in for many years now through many versions of Max and it has served me well on many occasions.you can download it here.

http://www.maxplugins.de

I use feet/inches for the units set up.It can also help to use snap to grid to keep your slices precise.
For this example I have set the terrain to be 100'wide by 8'high,this will fit perfectly into 12x12 segments,you can make your terrain larger but be aware when you import into segment editor it will only accept 55 slices,after that it will crash.
If it helps you can import a floor segment to get some idea of scale you will be sliceing your mesh into 3x3 segment parts.

Convert your terrain into an editable mesh and turn on edge selection in the modify tab,turn on slice plane and tick the 'split' box.Rotate the slice plane 90 degrees on the x axis and place on the origin, click slice.




Make your next slice three units (1 unit=1 segment) from this and continue until you have made all your horizontal slices in the mesh.
Rotate the slice plane 90 degrees on the z axis and repeat slicing,your mesh should look like the one below.



Turn off slice plane and edge.
Click explode in the modify tab set this to 90 or your mesh will break into too many parts.



Your mesh slices can now be selected,export each slice as a .x number them 1-16.
This example is only using a 100'x100'mesh making 16 slices, as you can import up to 55 slices into segment maker you can export even larger terrains.Export your mesh slices to a folder in your meshbank.



Open the FPSC segment editor and click on 'mesh',this opens the test browser,press the F1 key and select the folder your slices are in.Import slice 1 and repeat the process for the rest of your slices,because the slices all share the same pivot point they will align precisely.If your terrain was textured you will have to apply the texture to each slice in the segment editor before export.



Export the entire segment to your segment folder,remember to add the .fps extension to the file name and you should be good to go.

You can find a couple of free terrains to try out here.
http://forum.thegamecreators.com/?m=forum_view&t=100643&b=24
Nickydude
Retired Moderator
17
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 27th Feb 2007 12:52
An excellent tutorial rolfy! Would it be ok to include it in my guide?


Locrian
18
Years of Service
User Offline
Joined: 21st Nov 2005
Location: Burton Mi.
Posted: 27th Feb 2007 14:46
Nice tut Rolfy. One question though....How do I turn on 3d Max
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 27th Feb 2007 14:51
Quote: "How do I turn on 3d Max"


You have to talk to it real sweet like and move the mouse just so....

I'm sorry, my answers are limited. You must ask the right question.

filya
17
Years of Service
User Offline
Joined: 23rd Aug 2006
Location: USA
Posted: 27th Feb 2007 16:19
Thanks for the guide Rolfy. Shall have to try doing this again in Milkshape to see if it works.

-- game dev is fun...but taking up too much time --
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 27th Feb 2007 18:16
rolfy,

Greetings. One word: huge.

Thanks,

Seth Black

"...I'm sorry, could you repeat your question a little louder? I'm a trifle deaf in this ear."

- Willie Wonka
rolfy
17
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 27th Feb 2007 19:31
Quote: "How do I turn on 3d Max"

With a very large hammer.

Quote: "Would it be ok to include it in my guide?"

Please do,Nickydude
SamHH
17
Years of Service
User Offline
Joined: 9th Dec 2006
Location: Vermont
Posted: 8th Mar 2007 19:10
has anybody done this in milkshape?
filya
17
Years of Service
User Offline
Joined: 23rd Aug 2006
Location: USA
Posted: 8th Mar 2007 19:48
tried tried and failed

-- game dev is fun...but taking up too much time --
Nickydude
Retired Moderator
17
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 8th Mar 2007 21:08
Quote: " "Would it be ok to include it in my guide?""

Quote: "Please do,Nickydude"


Added for next revision, thanks rolfy


HellHouse
rolfy
17
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 9th Mar 2007 00:25 Edited at: 9th Mar 2007 00:29
Thanks,nickydude.

Filya,have you tried importing one of the slices from the terrain I created into milkshape and re-exporting again.May help to know if it's maybe to do with milkshapes exporter messing things up,or if it is that your slices aren't accurate.
Remember to try with one of the slices from the meshbank and not the whole terrain.
I believe milkshape has two different .x options for export,is that correct?
filya
17
Years of Service
User Offline
Joined: 23rd Aug 2006
Location: USA
Posted: 9th Mar 2007 02:21
Quote: "have you tried importing one of the slices from the terrain I created into milkshape and re-exporting again"


shall have to remember trying that once I get home.

I have tried making a terrain and then breaking it off into little squares. Then I scale the little squares just so that they fit in a 3*3 grid in the editor. It works a bit, but all of sudden I come up against an invisible wall or my fps just drops to 0 or something.

Quote: " believe milkshape has two different .x options for export,is that correct?"


yes, but I guess they are just different plugins for doing the same thing. I have been using the directX plugin (over the XSI one) for all this while. Wouldn't hurt to check the other one too I guess.

*mental note to try these things*


Thanks again rolfy.

-- game dev is fun...but taking up too much time --
rolfy
17
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 9th Mar 2007 04:02
Quote: "Then I scale the little squares just so that they fit in a 3*3 grid in the editor"

Could be your problem right there filya,make your terrain and slice it,dont scale up or down after this.Try making a 3x3 terrain segment and export that, see if it works,then try the slicing method on a larger terrain,stay away from scaling after creating.
filya
17
Years of Service
User Offline
Joined: 23rd Aug 2006
Location: USA
Posted: 9th Mar 2007 04:51
yes rolfy, if I make a small (3*3) terrain, it works without problems. Ofcourse, I make only small crest and troughs in the terrain, visible but not too much.

The problems start if :
1. I scale that same terrain in Milkshape and use it in FPSC to cover a bigger ground.
2. I use the same small terrain and tile them in FPSC. (I do make sure the terrain mesh is seamless too)

In both these cases, the getting-stuck problem starts...

-- game dev is fun...but taking up too much time --
rolfy
17
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 9th Mar 2007 05:06 Edited at: 9th Mar 2007 05:06
O.k. filya,suggest you try making your terrain as I suggested in the tutorial above,does milkshape have a slice function?
filya
17
Years of Service
User Offline
Joined: 23rd Aug 2006
Location: USA
Posted: 9th Mar 2007 19:12
no rofly. Milkshape does not have a slice function.

Anyways, I just imported 1 of your segments (terrain2/3.x) in milkshape and exported back as a 3.x

This time it gave a 'mesh does not exist at line' error and milkshape crashed. Reverting the old .x file works. I tried the same thing with 5.x as well. Same results.

-- game dev is fun...but taking up too much time --
TuPP3
17
Years of Service
User Offline
Joined: 26th Jan 2007
Location: [+--]FINLAND
Posted: 17th Mar 2007 19:33
I got Max 7.0! Those plugins wont work in 7.0! What I do now? Do you have any other tutorials for FPSC terrains?

Strelok
17
Years of Service
User Offline
Joined: 16th Oct 2006
Location: In your cupboard.
Posted: 17th Mar 2007 19:36
Woah !! very useful tutorial !
This is one of the best ways to creat terrain for fpsc ,
good job rolfy !

rolfy
17
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 17th Mar 2007 19:42 Edited at: 17th Mar 2007 21:18
TuPP3
There is only one plugin required for this,the fractal mountain generator.
The website I directed you to has the plugs for all versions of Max versions 1-9.
Go to http://www.maxplugins.de/click on 3dsMax7 and search for mountain,you will find it.
You could create the terrain in any program then bring into max for slicing.
Best rolfy.
TuPP3
17
Years of Service
User Offline
Joined: 26th Jan 2007
Location: [+--]FINLAND
Posted: 18th Mar 2007 14:06
I tried that before but if you search mountain and click the link it takes to effectware site where are only max 6 plugins. Try and see.

rolfy
17
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 18th Mar 2007 14:29 Edited at: 18th Mar 2007 14:54
Odd,it just gives me the download,doesn't take me to effectware,you could just download and use any it anyway,its just a bit of maxscript which will run on just about any version of Max.
I have e-mailed the ver7 which I got when clicking the link,the text info says it's for max4.
As the effectware fractal mountain generator is just a version itself I have been using the same one since Max3.
A lot of Max plugs will cross over to other versions,I know some dont,but pretty sure this one does.Its always worth trying a plug that is close to version it has been written for.
I use max8 and this works fine.

best rolfy
Zilla
18
Years of Service
User Offline
Joined: 28th Nov 2005
Location: Swiss KGB
Posted: 5th May 2007 17:03
what is the reason that you have to slice the terrain before you import it into the segment editor? is it not possible to import the whole (unsliced) mesh?
tyrano man
17
Years of Service
User Offline
Joined: 26th Oct 2006
Location: Battle City - Kalspher :)
Posted: 5th May 2007 19:29
3X3 segments get better colision and visablity. If it's one segment, polys behind you still in the level, as it's one object still get rendered. cutting it up means it doesn't have to render segments not in your view.

Login to post a reply

Server time is: 2024-05-04 06:29:40
Your offset time is: 2024-05-04 06:29:40