Meshtool beta 4

Releasing the source files for your mod or map? Post em' here. (Applies to both SWBF1 & SWBF2)

Moderator: Moderators

Gametoast Staff
User avatar
Posts: 1353
Joined: Tue Jul 10, 2007 4:10 pm

Meshtool beta 4

Postby RepSharpshooter » Sun Jul 27, 2008 4:47 pm

Made some changes from the 2, most notabily the bump mapping.

Download:
MediaFire

Little different:

1. Copy your msh file to the same location as the Meshtool utility
2. Launch Meshtool and type the msh filename (ex. box.msh)
3. Type in a command:
  • import - converts to obj
  • glow - applies glowmap to a specific matd (material)
  • envmap - applies environment map to a specific matd (material)
  • bumpmap - applies bumpmap + specular (better than just bumping with a msh.option)
4. To use glow, bump or envmap, it will ask you for a MATD index number. (which material to env/glowmap).
It now displays the texture names:
    0. (texture name here)
    1. (texture name here)
    2. (texture name here)

etc just pick the MATD (material) number that you want to envmap.



If you convert a msh to obj all MODL chunks are combined into one object within the obj file, but it's not too hard to separate them from each other.
    In XSI, use the Polygon Island selection filter to separate the shadowvolume etc.
    In 3ds MAX, use Element Select.
The obj file produced by Meshtool will have no mtl(material definition file) associated with it therefore you will have to re-assign the textures in your 3d application.
Meshtool imports cloth geometry as well.

Also, glowing, bumping and enving will produce a meshfilename.m5h (I was too lazy to rename it, so I just changed msh to m5h).
Just rename your mshfile.m5h to mshfile.msh and this is the glowed or enved one.

If you glow it, add the "-vertexlighting" option parameter to the msh.option file, if you don't have a msh.option file then create or copy one and edit it.

If you envmap it, copy helmet_envmap.tga and helmet_envmap.tga.option from BF2_modtools\assets\sides\all\ into your msh folder.

Anyways, put it to good use and make things glowy, bumpy, and shiny. Works well with files exported with MshEx.

And it is of course what makes this possible:
Hidden/Spoiler:
Image
Image
Image

BEHOLD
Hidden/Spoiler:
Image

Sith Master
User avatar
Posts: 2768
Joined: Tue Oct 02, 2007 10:51 am
Location: Ghosting around GT
Projects :: Battlefront Zer0
Games I'm Playing :: SWTOR
xbox live or psn: No gamertag set

Re: Meshtool beta 2

Postby MandeRek » Sun Jul 27, 2008 4:53 pm

SOOO sweet!! Well done.. Thanks SO much! :D

Gametoast Staff
User avatar
Posts: 1353
Joined: Tue Jul 10, 2007 4:10 pm

Re: Meshtool beta 2

Postby RepSharpshooter » Sun Jul 27, 2008 4:55 pm

You're welcome! Added a pic of the envmap test:
Image

Also, don't mix glow with envmap.

Command Sergeant Major
User avatar
Posts: 258
Joined: Mon Mar 10, 2008 4:06 pm

Re: Meshtool beta 2

Postby YouJediJunkie » Sun Jul 27, 2008 5:48 pm

HOLY MACARONY CHEESE DOODLE HAMBURGER PIZZA IN A MIXER AND SALT!!!!!!

Man, I love you, I will be using this alot for a secret project... Many thanks! :music:

Jedi Admin
User avatar
Posts: 7421
Joined: Mon Aug 21, 2006 11:03 pm

Re: Meshtool beta 2

Postby Maveritchell » Sun Jul 27, 2008 11:35 pm

Works great, Rep:

Hidden/Spoiler:
Image

General
User avatar
Posts: 784
Joined: Thu Apr 13, 2006 8:46 pm
Location: happy fun island

Re: Meshtool beta 2

Postby Syth » Mon Jul 28, 2008 1:07 am

:thumbs:

High General
User avatar
Posts: 895
Joined: Sat Sep 02, 2006 6:47 pm
Location: London
Projects :: Thinking...
Games I'm Playing :: Black Ops

Re: Meshtool beta 2

Postby wazmol » Mon Jul 28, 2008 2:41 am

Ahh Mav', MandeReks model looks amazing with that env map! Great work.

@ Rep: Amazing work yet again.

Sith Master
User avatar
Posts: 2768
Joined: Tue Oct 02, 2007 10:51 am
Location: Ghosting around GT
Projects :: Battlefront Zer0
Games I'm Playing :: SWTOR
xbox live or psn: No gamertag set

Re: Meshtool beta 2

Postby MandeRek » Mon Jul 28, 2008 6:37 am

OMG you're so right!! Mav', could you send me!? Unbelievable what this can do to models.. I love you Rep! :D

Basicly this can mean for shiny metals etc a blank texture plus envmap :P

Gametoast Staff
User avatar
Posts: 1353
Joined: Tue Jul 10, 2007 4:10 pm

Re: Meshtool beta 2

Postby RepSharpshooter » Mon Jul 28, 2008 10:55 am

Felt inspired this morning to make it do bump + specular as well:

Image

Sure opens the door to many more rendering possibilities. In fact, one could create something of halo quality, I believe, with bump + specular. *applies it to battle arena guys, which I though fragme did, but I'll check*

EDIT: here is the improved program: http://files.filefront.com/meshtool3zip ... einfo.html

Gametoast Staff
User avatar
Posts: 2267
Joined: Sat May 13, 2006 12:34 am
Location: Origin name GT_FragMe
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set

Re: Meshtool beta 3

Postby FragMe! » Mon Jul 28, 2008 11:36 am

If I remember correctly added specular via the flags and bump via .option files.

BTW what render number are you putting in for bump-specular.

Looks good nice effects.

Gametoast Staff
User avatar
Posts: 1353
Joined: Tue Jul 10, 2007 4:10 pm

Re: Meshtool beta 3

Postby RepSharpshooter » Mon Jul 28, 2008 11:46 am

Bump specular is 27, but it has a flag sorta at the front. The first bit is turned on. so its like 128,27,0,0

edit also found a mistake in my programming, releasing a fixed one soon.

BEHOLD

Hidden/Spoiler:
Image


download meshtool4 if you haven't already.
http://files.filefront.com/meshtool4zip ... einfo.html

Gametoast Staff
User avatar
Posts: 2267
Joined: Sat May 13, 2006 12:34 am
Location: Origin name GT_FragMe
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set

Re: Meshtool beta 4

Postby FragMe! » Mon Jul 28, 2008 1:29 pm

Maybe that is degree of bumpyness cause he sure looks a lot bumpier than the other way we did it.

Gametoast Staff
User avatar
Posts: 1353
Joined: Tue Jul 10, 2007 4:10 pm

Re: Meshtool beta 4

Postby RepSharpshooter » Mon Jul 28, 2008 1:41 pm

Nah, that's determined by specular hardness etc.

For those of you people using this, look at uta1_bldg_lizardpen_floor01.tga and tga.option. This is how your bump maps should be. Note the bump map has an alpha channel. In gimp, you can decompose an rgb, and the compose an rgba.

Lieutenant General
User avatar
Posts: 688
Joined: Sun Apr 13, 2008 1:39 pm
Location: UK

Re: Meshtool beta 4

Postby theultimat » Mon Jul 28, 2008 2:12 pm

One word: wow! :bowdown:

Command Sergeant Major
User avatar
Posts: 280
Joined: Tue Jul 22, 2008 3:47 pm

Re: Meshtool beta 4

Postby (RAPTOR)BENSTWO{SGT} » Mon Jul 28, 2008 4:32 pm

It's amazing how you got those small detail textures on those characters. :eek:

Gametoast Staff
User avatar
Posts: 1353
Joined: Tue Jul 10, 2007 4:10 pm

Re: Meshtool beta 4

Postby RepSharpshooter » Mon Jul 28, 2008 5:01 pm

This also demonstrates it's abilities:
Hidden/Spoiler:
Image


It's quite fun to play with.

Gametoast Staff
User avatar
Posts: 2267
Joined: Sat May 13, 2006 12:34 am
Location: Origin name GT_FragMe
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set

Re: Meshtool beta 4

Postby FragMe! » Mon Jul 28, 2008 8:53 pm

Quick take it away from him before the whole world becomes bumpy :funny2:

Of course you know now I have to find the equivalent way of doing this with pandemics exporter (or just use yours and say bugger them)
So for the bump specular are you specifying two tgas or just one and using the alpha channel for the bump, I know I should read more but that is on the other page.

Captain
User avatar
Posts: 496
Joined: Fri Apr 04, 2008 11:02 pm

Re: Meshtool beta 4

Postby Blade » Mon Jul 28, 2008 10:46 pm

I don't quite understand the concept of bump mapping... I mean, I know what it does... but how do you control what the "bumps" look like, and such? I looked at the Utapau floors, and do you just make a completely different texture with an alpha, and then punch holes in it for the "bumps"?

Gametoast Staff
User avatar
Posts: 2267
Joined: Sat May 13, 2006 12:34 am
Location: Origin name GT_FragMe
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set

Re: Meshtool beta 4

Postby FragMe! » Tue Jul 29, 2008 12:03 am

Have a look at these 2 files uta1_bldg_lizardpen_floor01.tga uta1_bldg_lizardpen_floor01_bump.tga and that will give you a pretty good idea of what and how a bump map should look.
Different programs do the bumping different ways or call it different things, Gimp has a bump filter, paint.net calls it emboss but they are pretty much the same thing. The depth of the bump is determined by the black to white level of the tga.
That is a quick explanation the paint programs themselves may have more info on bump maps.

Master of the Force
User avatar
Posts: 6069
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Meshtool beta 4

Postby DarthD.U.C.K. » Sun Aug 03, 2008 3:14 pm

one word: oh my goodness!

Next

Return to Released Assets

Who is online

Users browsing this forum: No registered users and 2 guests