How to use Blender to make SWBF series models (FAQ)

How to create models in XSI and other 3D applications and make them work in Battlefront 1 & 2. Post models, tips for application usage and share anything XSI, 3DMax, SketchUp, etc.

Moderator: Moderators

Post Reply
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: How to use Blender to make SWBF series models (FAQ)

Post by DarthD.U.C.K. »

put -donotmergecollision into the msh.option
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: How to use Blender to make SWBF series models (FAQ)

Post by lucasfart »

Thanks for the quick response DarthD.U.C.K.!
Philou231
Recruit Womprat Killer
Posts: 14
Joined: Tue Jun 16, 2009 8:23 pm

Re: How to use Blender to make SWBF series models (FAQ)

Post by Philou231 »

It doesn't work for me and I try to save it with blender and with gimp but nothing work thanks for the help.

Thanks You
Jaspo
Command Sergeant Major
Command Sergeant Major
Posts: 282
Joined: Sun Mar 01, 2009 4:34 am
Projects :: AotC DoW+++Boonta Eve Classic
Games I'm Playing :: WoT MBWBVC Robocraft
xbox live or psn: No gamertag set
Contact:

Re: How to use Blender to make SWBF series models (FAQ)

Post by Jaspo »

If you open up a wrl file in notepad that has successfully had the texture info included, it should look something like this (this is the one I created in the tutorial video):
Hidden/Spoiler:
[code]#VRML V2.0 utf8

# This file was authored with Blender (http://www.blender.org/)
# Blender version 248
# Blender file
# Exported using VRML97 exporter v1.55 (2006/01/17)


NavigationInfo {
headlight FALSE
visibilityLimit 100.0
type ["EXAMINE", "ANY"]
avatarSize [0.25, 1.75, 0.75]
}

Background {
groundColor 0.0565629 0.2208154 0.4
skyColor 0.0565629 0.2208154 0.4
}

DEF OB_Cube Transform {
translation 0.000000 0.000000 0.000000
rotation 1.000000 0.000000 0.000000 0.000000
scale 1.000000 1.000000 1.000000
children [
DEF ME_Cube Group {
children [
Shape {
appearance Appearance {
material DEF MA_Material Material {
diffuseColor 0.8 0.8 0.8
ambientIntensity 0.1666667
specularColor 0.4012008 0.4012008 0.4012008
emissiveColor 0.0 0.0 0.0
shininess 0.0976563
transparency 0.0
}
texture DEF fungal_ground_png ImageTexture {
url "crate1.tga"
}
}
geometry IndexedFaceSet {
solid TRUE
coord DEF coord_Cube Coordinate {
point [
1.0 -1.0 -0.999999940395
1.0 -1.0 1.0
-1.00000011921 -1.0 0.999999821186
-0.999999642372 -1.0 -1.00000035763
1.00000047684 1.0 -0.999999463558
0.999999344349 1.0 1.00000059605
-1.00000035763 1.0 0.999999642372
-0.999999940395 1.0 -1.0
0.600000083447 -1.0 -1.0
0.200000137091 -1.0 -1.00000011921
-0.199999839067 -1.0 -1.00000023842
-0.599999725819 -1.0 -1.00000023842
0.599999964237 -1.0 0.999999940395
0.199999943376 -1.0 0.999999940395
-0.20000012219 -1.0 0.999999880791
-0.600000143051 -1.0 0.999999880791
0.60000038147 1.0 -0.999999582767
0.200000301003 1.0 -1.827491045
-0.199999824166 1.0 -0.999999761581
-0.599999904633 1.0 -1.82749128342
0.599999427795 1.0 1.00000035763
0.199999451637 1.0 2.02403068542
-0.200000524521 1.0 1.0
-0.600000441074 1.0 2.13264584541
]
}

coordIndex [
0 1 5 4 -1,
2 3 7 6 -1,
1 0 8 12 -1,
12 8 9 13 -1,
13 9 10 14 -1,
14 10 11 15 -1,
15 11 3 2 -1,
4 5 20 16 -1,
16 20 21 17 -1,
17 21 22 18 -1,
18 22 23 19 -1,
19 23 6 7 -1,
5 1 12 20 -1,
20 12 13 21 -1,
21 13 14 22 -1,
22 14 15 23 -1,
23 15 2 6 -1,
0 4 16 8 -1,
8 16 17 9 -1,
9 17 18 10 -1,
10 18 19 11 -1,
11 19 7 3 -1,
]
texCoord TextureCoordinate {
point [
0.0 0.0, -1.0 0.0, -1.0000002 1.0, -2e-007 1.0,
1e-007 0.0, 1.0000002 0.0, 1.0 1.0, 2e-007 1.0,
0.0 0.0, 0.0 1.0, -0.1999999 1.0, -0.2 0.0,
0.8 0.0, 0.8000001 1.0, 0.6000001 1.0, 0.6 0.0,
0.6 0.0, 0.6000001 1.0, 0.4000001 1.0000001, 0.3999999 1e-007,
0.3999999 1e-007, 0.4000001 1.0000001, 0.2000001 1.0000001, 0.1999999 1e-007,
0.1999999 1e-007, 0.2000001 1.0000001, 2e-007 1.0000002, -1e-007 1e-007,
2e-007 0.9999998, -4e-007 -3e-007, -0.2000003 -2e-007, -0.1999998 0.9999998,
0.8000002 0.9999998, 0.7999997 -2e-007, 0.5999997 -0.5120153, 0.6000001 1.4137455,
0.6000001 0.4137455, 0.5999997 -1.5120153, 0.3999997 -1.0, 0.4000001 -1e-007,
0.4000001 0.9999999, 0.3999997 0.0, 0.1999998 -0.5663229, 0.2 1.4137456,
0.2 0.4137456, 0.1999998 -1.5663229, -2e-007 -0.9999998, 0.0 0.0,
0.9999996 0.0, 1.0 -1.0, 0.8 -1.0, 0.7999997 0.0,
0.7999997 0.0, 0.8 -1.0, 0.6 -1.0, 0.5999997 0.0,
0.5999997 0.0, 0.6 -1.0, 0.3999999 -1.0, 0.3999997 0.0,
0.3999997 0.0, 0.3999999 -1.0, 0.1999999 -1.0, 0.1999998 0.0,
0.1999998 0.0, 0.1999999 -1.0, -1e-007 -1.0, -2e-007 0.0,
0.0 0.0, 2e-007 1.0, -0.1999998 1.0, -0.1999999 0.0,
0.7324217 0.0, 0.7141109 1.0976563, 0.9935794 1.0061035, 0.9948728 -0.012207,
0.0 0.0, 0.4137455 1.0, -1e-007 1.0, 1e-007 0.0,
1e-007 0.0, -1e-007 1.0, 0.4137456 1.0, 1e-007 0.0,
1e-007 0.0, 0.4137456 1.0, 0.0 1.0, 2e-007 0.0,
]
}
texCoordIndex [
0 1 2 3 -1
4 5 6 7 -1
8 9 10 11 -1
12 13 14 15 -1
16 17 18 19 -1
20 21 22 23 -1
24 25 26 27 -1
28 29 30 31 -1
32 33 34 35 -1
36 37 38 39 -1
40 41 42 43 -1
44 45 46 47 -1
48 49 50 51 -1
52 53 54 55 -1
56 57 58 59 -1
60 61 62 63 -1
64 65 66 67 -1
68 69 70 71 -1
72 73 74 75 -1
76 77 78 79 -1
80 81 82 83 -1
84 85 86 87 -1
]
}
}
]
}
]
}[/code]
And I think that if it doesn't attach the texture info correctly there will be no coordinate data after the part that says "texCoord TextureCoordinate"
Philou231
Recruit Womprat Killer
Posts: 14
Joined: Tue Jun 16, 2009 8:23 pm

Re: How to use Blender to make SWBF series models (FAQ)

Post by Philou231 »

Lol it is really awesome I copy your file(that was pretty much the same as me :( ) and I paste it in my notepad I change the texture name of one of the texture and nothing appear in the swbf Viewer. So if I look at all my key to answer the clue...there is something wrong in the SWBF Viewer and the compatibility of my texture maybe even if they are 256x256 tga and not compressed.BUT I once try to make a cube with a BF texture that was in my adddon folder and it doesn't work anyway :shock: ! I can't see where the problem came from because if I open the SWBF Viewer I am able to see the models of SW on the right with textures so what? :?

Thanks You
Philou231

P.S.this is our 2 files the right one is yours the left one is mine.
Hidden/Spoiler:
Image
EDIT: YAHOUUUUUUU it work:I created a new folder in my asset folder and I put my .wrl file in it and they all work!(SOLVED!)
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: How to use Blender to make SWBF series models (FAQ)

Post by lucasfart »

Just wondering if normal/bump/specular maps are possible in Blender, or even after exporting to msh is there any way to hex it in?
mswf
Master Bounty Hunter
Master Bounty Hunter
Posts: 1674
Joined: Tue Mar 31, 2009 3:40 pm
Location: Twello, The Netherlands
Contact:

Re: How to use Blender to make SWBF series models (FAQ)

Post by mswf »

You can apply those maps through the meshtool that repsharpshooter build. (hex-editing is also a possibility of course)
User avatar
Zango
Private Recruit
Posts: 29
Joined: Fri Apr 02, 2010 11:02 am

Re: How to use Blender to make SWBF series models (FAQ)

Post by Zango »

Hey, I'm having a problem getting the textures to show up in the Zeroeditor. The .odf is in the same folder as the .msh and .tga, but for one reason or another, it still shows up in the generic-missing-tga-file white. Also, when I view the .msh in the SWBFViewer, it shows up with the textures. Is the Zeroeditor just being stupid, (as in, if I were to munge it, it'll show up properly in-game?) or am I doing something wrong?
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: How to use Blender to make SWBF series models (FAQ)

Post by FragMe! »

Odfs go in the odf folder, msh and tga files go in the msh folder. Have a look at one of the shipped worlds for directory structure.
User avatar
Zango
Private Recruit
Posts: 29
Joined: Fri Apr 02, 2010 11:02 am

Re: How to use Blender to make SWBF series models (FAQ)

Post by Zango »

FragMe! wrote:Odfs go in the odf folder, msh and tga files go in the msh folder. Have a look at one of the shipped worlds for directory structure.
Yeah I know, that's what I did originally but the tga didn't show then either, so then I moved them all to the same section.
Ace_Azzameen_5
Jedi
Jedi
Posts: 1119
Joined: Sat Apr 23, 2005 8:52 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: How to use Blender to make SWBF series models (FAQ)

Post by Ace_Azzameen_5 »

Thanks for the tutorial, with this and another I successfully
textured and exported a new model to SWBF2.
However with my next two projects I'm having trouble.
I can't seem to load images. I go to the uv/texture editor, browse for an image, and hit open, and it does not show up, images that loaded 5 minutes prior in the same window it would seem.
Got any clues?
User avatar
Wonderboy
Chief Warrant Officer
Chief Warrant Officer
Posts: 353
Joined: Sun Jul 12, 2009 12:54 pm
Projects :: Making apples into applesauce
Games I'm Playing :: Age Of Empires II
Location: Eastern South Dakota

Re: How to use Blender to make SWBF series models (FAQ)

Post by Wonderboy »

@Ace- Did you unwrap it first? If the UV/Image Editor is blank then you can't load a picture. There needs to be something like this:
Image
Ace_Azzameen_5
Jedi
Jedi
Posts: 1119
Joined: Sat Apr 23, 2005 8:52 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: How to use Blender to make SWBF series models (FAQ)

Post by Ace_Azzameen_5 »

It seems very fickle, I just loaded a texture, unwrapped an object to cube projection and move a mapping vertice first...
Got it, I was using the right mouse button highlight in the browse window instead of left clicking. Thanks for the help.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: How to use Blender to make SWBF series models (FAQ)

Post by lucasfart »

What does right-mouse button selecting even do?
User avatar
Wonderboy
Chief Warrant Officer
Chief Warrant Officer
Posts: 353
Joined: Sun Jul 12, 2009 12:54 pm
Projects :: Making apples into applesauce
Games I'm Playing :: Age Of Empires II
Location: Eastern South Dakota

Re: How to use Blender to make SWBF series models (FAQ)

Post by Wonderboy »

Maybe I should have asked this here, but I wanted to know how to edit a player model in Blender. When I do it, I can only select the mesh in object mode. When I go to edit mode I can't.
Ace_Azzameen_5
Jedi
Jedi
Posts: 1119
Joined: Sat Apr 23, 2005 8:52 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: How to use Blender to make SWBF series models (FAQ)

Post by Ace_Azzameen_5 »

Make sure the object is selected, and choose wireframe and vertices you should see many vertices and be able to select hem, if you can't seem to get the vertices try switching to face select mode... (the triangle far right on the toolbar below the 3d area in edit mode)
Your more advanced than me at this but I wanted to cover the basics just in case and NOT ignore the previous post while I sneak in this:

On another topic, has anyone worked out transparency or hardpoints for SWBF2? I could export to XSI I guess.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3284
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: How to use Blender to make SWBF series models (FAQ)

Post by AceMastermind »

Wonderboy wrote:...I wanted to know how to edit a player model ... When I do it, I can only select the mesh in object mode. When I go to edit mode I can't.
I just downloaded Blender to check this out and that is how it seems to work, in object mode you select objects, in Edit mode you select components of the object such as points, edges and polygons, maybe you should play around with it more and watch some tutorial videos or something. See if THIS helps. Also, if you plan to edit player models then at some point they will need to go through XSI and exported using the Pandemic Tools.
User avatar
Wonderboy
Chief Warrant Officer
Chief Warrant Officer
Posts: 353
Joined: Sun Jul 12, 2009 12:54 pm
Projects :: Making apples into applesauce
Games I'm Playing :: Age Of Empires II
Location: Eastern South Dakota

Re: How to use Blender to make SWBF series models (FAQ)

Post by Wonderboy »

I do know the difference between object and edit mode, I can only select the object in object mode, but in edit mode I can't select edges, vertices, or faces. I import it, and I can select it. I may be a bit redundant but, I hit tab to go to edit mode and select vertice selection. But nothing happens. In Blender, "A" is select all, regardless of if you are in edit or object mode. I can select and unselect all all I want in object mode, but in edit mode I can't at all.
mswf
Master Bounty Hunter
Master Bounty Hunter
Posts: 1674
Joined: Tue Mar 31, 2009 3:40 pm
Location: Twello, The Netherlands
Contact:

Re: How to use Blender to make SWBF series models (FAQ)

Post by mswf »

Wonderboy wrote:I do know the difference between object and edit mode, I can only select the object in object mode, but in edit mode I can't select edges, vertices, or faces. I import it, and I can select it. I may be a bit redundant but, I hit tab to go to edit mode and select vertice selection. But nothing happens. In Blender, "A" is select all, regardless of if you are in edit or object mode. I can select and unselect all all I want in object mode, but in edit mode I can't at all.
Select the imported objects in the outliner view and press ctrl + j to join the objects. I don't know where in the process this happens, but sometimes an object gets split up while importing.
What is the model that you're trying to import and are having troubles with?
User avatar
Wonderboy
Chief Warrant Officer
Chief Warrant Officer
Posts: 353
Joined: Sun Jul 12, 2009 12:54 pm
Projects :: Making apples into applesauce
Games I'm Playing :: Age Of Empires II
Location: Eastern South Dakota

Re: How to use Blender to make SWBF series models (FAQ)

Post by Wonderboy »

By outliner view do you mean bounding box? Because I went to object mode, view port shading select to bounding box then joined the meshes and it worked. Thanks a lot. Oh, and it is the Rebel Vanguard model.
@Ace_Azzameen_5- I don't think you can add hardpoints in Blender, I think it was mswf? who said that. And all I can think of for transparency is adding an alpha channel to your texture and making the part you want transparent, but I don't think it works in BF2. Theres some hex-editing or something I've heard you need to do if you want transparency in your model, but like I said, I'm not entirely sure.
Post Reply