In F.E.A.R An unidentified paramilitary force infiltrates a multi-billion dollar aerospace compound, taking hostages but issuing no demands. The government responds by sending in special forces, but loses contact as an eerie signal interrupts radio communications. When the interference subsides moments later, the team has been obliterated.

Post tutorial Report RSS Importing level geometry from Blender

To celebrate Blender's 2.8 release I wrote a tutorial on how to import meshes from Blender to F.E.A.R.

Posted by on - Basic Mapping/Technical

If you wanna talk about F.E.A.R modding head over to the F.E.A.R Speedrunner discord. There's a modding room there where everyone hangs out Discord.gg

Note that this tutorial involves using two programs. Blender and Maya version 6. Thankfully you don't have to do any actual modelling in Maya 6 for this purpose, you just use it as an importer.

Four things are required

  1. Blender (https://www.blender.org/) This tutorial was written with Blender 2.8. However this will work with any version of Blender that supports .obj. And virtually any program that exports obj such as 3dsmax or modern versions of Maya.
  2. Maya version 6. (this can be located on Vestusware)
  3. Maya 6's world export plugins (these can be located here)
  4. The F.E.A.R SDK (this can be located on moddb here)

Once Maya v6 is installed all that's needed is to install the plugin. This can be done by copying the "bin" folder from the "Maya 6" folder into your Maya installation folder. After this copy the scripts folder into your documents\6.0 folder where there's also a scripts folder. After this, within Maya go to Window->Settings/Preferences->Plug-in Manager

Untitled2


The things you wanna check are "objexport" and "MayaWorldExport".

Making the model

For the purposes of this tutorial I won't go over how to make a model within Blender as I'd assume you already know how to do this. In this instance I'll use a shampoo bottle model I already made as a test.

Untitled3

It's highly recommended to decimate your model before exporting it. As both Maya and F.E.A.R will frown upon loading a very high poly model. Alternatively you can separate your model into parts and export them individually. This is most useful if you want to model your entire level within blender and would prefer to stitch it together later in Worldedit. It's also recommended to make your brushwork solid and avoid having stray planes as I discovered it also makes Maya frown.

Importing into Maya

Now export your model as a .obj. Within Maya go to File->Import and locate your .obj.

unknown2

Now all we have to do is export it as a Lithtech world file. Go to File->Export All and select "LithTech World Export"

What Maya will produce is a .lta file. This will work in versions of Lithtech made prior to F.E.A.R such as No One Lives Forever 2 and Tron 2.0. To get it to work in F.E.A.R there's one extra step

Rename the file

In Windows Explorer right click the file, select rename, and rename the extension ".lta" to ".world00a".

Importing into F.E.A.R

To put your model into the game, navigate to your sdk directory->Dev->Runtime->game->Worlds and place it somewhere in there. Now open your file and it should now appear

Untitled4

The funky rainbow colors are just what Lithtech loads by default. In this instance I'll texture it with F.E.A.R's developer texture. You can also use your own textures but you will have to make your own material within WorldEdit. Which is described in the sdk's documentation.

unknown3

Now it should just work, either as an object or as a piece of level geometry.

unknown4

(resized for comedic effect)

That should be it. The brushes will also have collision and display bullet marks just like regular geometry. This method can be used for both prefabs (IE: Pop cans, computers etc) and buildings or other areas for the game.

Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

Follow Report Profile
Icon
F.E.A.R.
Platforms
Windows
Publisher
Vivendi
Engine
LithTech
Contact
Send Message
Homepage
Whatisfear.com
Release date
Game watch
Follow
Tutorial
Browse
Tutorials
Report
Report
Share
Related Games
F.E.A.R.
F.E.A.R. First Person Shooter
Related Engines
LithTech
LithTech Commercial
Related Groups
Monolith Productions
Monolith Productions Developer & Publisher
Vivendi
Vivendi Developer & Publisher