Insimenator.org

Simmers' Paradise => Tutorials => Topic started by: themysticalone on July 07, 2007, 02:05:00 pm



Title: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: themysticalone on July 07, 2007, 02:05:00 pm
This tutorial will show you how to use Poser Magnets to quickly convert existing meshes into different bodyshapes (such as Warlokk's) using Poser Magnets.

What you will need.
Sets of Poser Magnets: Either magnets you've created yourself, or magnets provide to you by bodyshape creators.
SimPE: Needed for extracting the base mesh pieces, exporting the mesh obj file, assembling the new mesh, and assigning it to a piece of custom clothing.  Get that here (http://sims.ambertation.de/).
Poser:  I believe Poser 4 and later can use the magnets. I use Poser 7, and that's what will be seen in the screenshots.  Some functions may have moved from version to version, so keep aware of this.  Poser is created by e-frontier (http://www.e-frontier.com/), and has a high price, so this tutorial won't be for everyone.

Experience Needed
I am assuming that you already have followed a tutorial on how to make new meshes using meshtool, and thus already know how to search for and find the parts of the mesh that you will need to extract: the gmdc, gmnd, cres, and shape.  If you have already created a mesh and assigned it to a piece of clothing, you are ready for this tutorial.  I will leave certain steps (such as actually replacing the gmdc data at the end) out because you should already know them.

Getting Started
First, we will need to extract the body obj from the gmdc component of the mesh.  Open up the mesh file you created (or just add the gmdc file to a new package) and select the gmdc, as shown below in Figure 1.  Pay attention to the model name.  I am converting afBodySweats, which is a full body outfit, and uses 'body' as the model name.  If there is more than one model name, Mesh Tool cannot be used and you should move on to a different mesh (you need milkshape/unimesh to convert those.. I'll do that tutorial later).

In Figure 1, I highlight the model name, as well as the Order.  Make sure the Order is XYZ, or this will not work properly.  Once the Order is XYZ, click the export button.  You want to save the .obj as the same name as the model name.  If the model name is body, save it as body.obj, if it is top, save it as top.obj, etc.  Poser uses the filename as the internal name of the object and you cannot change this in Poser.  If the internal name is wrong, MeshTool won't correctly build the gmdc at the end.

(http://www.insimenator.net/attachment.php?attachmentid=82247&stc=1&d=1183831399)
Figure 1

Importing to Poser and Applying the Magnets
Now that you have you body.obj saved, we can move on to Poser.  If you are new to Poser, you will need to delete the figure that is loaded by default.  After doing so, you should go to Edit..General Preferences and set this empty view as your preferred state (see Figure 2).  This will allow Poser to load with a blank view every time.  Later, once you've adjusted the camera to fit a Sims 2 obj, you may want to set that camera angle as your preferred state.

(http://www.insimenator.net/attachment.php?attachmentid=82248&stc=1&d=1183831825)
Figure 2

Now that we have a blank view, go to File...Import...Wavefront Object and uncheck all options that appear, as shown in Figure 3, then click OK.

(http://www.insimenator.net/attachment.php?attachmentid=82249&stc=1&d=1183831943)
Figure 3

Select the body.obj file you exported from SimPE (or top.obj, or bottom.obj) and you should end up with a viewport that looks something like Figure 4 (you may have to zoom out and adjust the camera to see it.

(http://www.insimenator.net/attachment.php?attachmentid=82250&stc=1&d=1183832117)
Figure 4

We definitely don't want our figure lying down, since our magnet sets will be based on models that are standing up.  Open up the joint editor window by going to Window..Joint Editor.  In the joint editor window make the center point values all equal zero.  Then, in the body parameters window (which should already be open), set the Y-Rotate to 180degrees (manually type this in--do not use the slider) and the X-Rotate to 90degrees (again, manually type this in).  See Figure 5.

(http://www.insimenator.net/attachment.php?attachmentid=82252&stc=1&d=1183832537)
Figure 5

Now that you've done this, your viewport should have your Sims 2 body object standing up:

(http://www.insimenator.net/attachment.php?attachmentid=82253&stc=1&d=1183832608)
Figure 6

We are ready to apply magnets!  On the right side of the screen should be the libraries sidebar. If it's not there, click the fancy thing in the middle right edge, or go to Windows..Libraries to make it appear.  Click where it says Figures, then go down and click props.  You can navigate from there to where you stored your magnets.  Poser 7 stores its magnets here: C:\Program Files\e frontier\Poser 7\Runtime\Libraries\Props (you can use subdirectories in Props... I made a Sims 2 Magnets directory in there to store mine.

Once you have the sims 2 magnets showing up in the library, scroll down to the one(s) you want and double click on it to add it to the view port.  I'm going to be converting afBodySweats into the 5 C-natural sizes from Warlokk's Hi-Red Female Bodyshape Project, so I scroll down to 34C Nat Body and double click on it.  Then I scroll down to Body 32 Hips. I have now added all the magnets needed for the 34Cn-32 bodyshape.  By default, Poser won't show all the magnets in the viewport.  Simply go to Display..Deformers..Show All and all the magnets will be visible. (Figure 7)

(http://www.insimenator.net/attachment.php?attachmentid=82256&stc=1&d=1183832983)
Figure 7

At this point, we want to spawn a morph for the body.  Select the body by clicking on the viewport's current object name, and then selecting body (or top, or bottom). See Figure 8

(http://www.insimenator.net/attachment.php?attachmentid=82257&stc=1&d=1183833238)
Figure 8

Click on Object..Spawn Morph Target, then type in a descriptive (and short) name for this morph.  I typed in Cn-32 for this one.  If you are only converting to one body shape, you can use the default name, but I like to type in things so as to maintain sanity.

Now select each magnet and delete them.  You should have all the magnets deleted before you export the body.  At this point, I'll only delete the hip magnets so that I can spawn a Cn-34, then add the 36 Hip magnets and spawn a Cn-36, etc.  This way I can convert to several body types at once.

Once you've spawned all the morphs you need, and once you've deleted all the magnets, select the body object again.  In the parameters window, you should see all the morphs, under the category of Morph (you may have to scroll the parameter window down), as shown in Figure 9 (I've highlighted the important bits).

(http://www.insimenator.net/attachment.php?attachmentid=82259&stc=1&d=1183833673)
Figure 9

If we were exporting this object for use in Milkshape, we would export it standing up like this.  However, since we are exporting for use with MeshTool, we need to get it to lay down again.  Go to the body parameters window and make the Y-Rotate and X-Rotate both equal zero again.  Type the numbers in to ensure they are zeroed.

At this point, I like to rotate the camera, so I can see the body from above.  Once you do so, go down to the morph you want to export, and set it to 1 to activate the morph. (Figure 10)

(http://www.insimenator.net/attachment.php?attachmentid=82260&stc=1&d=1183833902)
Figure 10

Once you've activated the morph, go to File...Export..Wavefront Object. Single Frame should be selected, so click okay.  Uncheck the ground on the next screen. Only body should be checked, or you'll export the ground as part of the object. (See Figure 11)

(http://www.insimenator.net/attachment.php?attachmentid=82261&stc=1&d=1183834009)
Figure 11

You want to check only the four boxes shown in Figure 12. (The last one, Include existing groups in polygon groups can possibly be left unchecked, but I always check it).

(http://www.insimenator.net/attachment.php?attachmentid=82262&stc=1&d=1183834127)
Figure 12

Save this object as whatever you'd like, since Poser will keep body (or top, or bottom) as the internal name.  I saved mine as Cn-32 (and Cn-34, Cn-36, etc).

Repeat this process for any other morphs, first deactivating the previous, by setting it to 0 (always type in the numbers), and setting the next to 1 until you have them all saved.

Building the New Meshes
Open up MeshTool, and load the object file you exported.  Then load the base mesh you extracted with SimPE earlied (should be a .5gd file).  Then click on settings and use the settings shown in Figure 13.  Unchecking Import UVs and Import Normals will use the UVs and Normals of the base mesh, and will get rid of the seams that Poser causes.

(http://www.insimenator.net/attachment.php?attachmentid=82264&stc=1&d=1183834487)
Figure 13

In the top left box, you should see the model name. It it's something other than what it originally was, you made a mistake somewhere along the process, and Mesh Tool will not properly generate the mesh (it won't tell you this, however).  Save the new mesh file as something descriptive, like Cn-32_newmesh1.simpe and then you can put this into your new mesh package like you've been doing all along.

Hope this helps!

Enjoy!


Title: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: Warlokk on July 07, 2007, 04:22:20 pm
Excellent, just excellent... thanks so much for putting this together, it will be an invaluable resource.


Title: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: franciele on July 16, 2007, 10:55:34 am
Thank you very much! It sure is a lot simpler now to figure out what I was doing wrong. :lol: *Hugs freshly printed copy of tutorial and head to Poser* Thank you!


Title: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: BlooM on July 17, 2007, 05:49:19 am
Nice TUT!!!
As i never worked with meshtool i find it easier working with the obj file from Milkshape.
I dont have the issue then with the body laying down on the floor.
However the info bout the morph's was very helpfull, thnx


Title: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: themysticalone on July 31, 2007, 07:26:01 am
The tutorial assumes that you have and know how to use meshtool.  That section is there only to show which settings I use when I build the mesh.

I'm not really sure how else to explain.  While extracting the pieces of the base mesh using simpe, you should end up with a .5gd file that is the geometry data container.  In mesh tool, the first buttons loads the object you exported from Poser, and the second button loads that .5gd file.  The settings button brings up the settings that I show up there, where you have to uncheck the import uvs and import normals.  Then you just save the resulting file with the last button (it'll save as a .simpe).


Title: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: Alasdair on August 01, 2007, 04:53:03 pm
This looks very easy to follow and I would really like to try my hand at it. I was just wondering if you could suggest a good tutorial for using meshtool? I've used Poser for several years, I need to update it but I was reluctant to do that since I wasn't using it any longer, but then I started seeing references to modifying the meshes for Sims2 with Poser and suddenly I was dusting it off. to see what was up.

I would really appreciate it if you could point me in the direction of a good Tutorial for meshtool, the ones I have seen deal more with objects.

Thanks in advance,

Alasdair


Title: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: themysticalone on August 02, 2007, 07:06:09 am
This (http://www.modthesims2.com/showthread.php?t=141997) is the tutorial I used.  I compress a few of the steps now that I've gotten used to it and do things in a slightly different order because it's more convenient for me, but that's a matter of personal preference.  If you follow that tute you should be fine.


Title: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: Alasdair on August 02, 2007, 07:09:01 am
Thank you so much. Now I'll have to finish getting everything set up and read it , and then give it a try.

Thanks again,

Alasdair


Title: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: Bakajin on August 06, 2007, 06:21:27 pm
Well, I gave this a shot. I tried modifying a skin to fit the RIO mesh and most of the window with the model in it went black! As I started deleting magnets per the tutorial, the black parts started to disappear. I spawned a morph that was "clean" however after importing it into bodyshape the mesh was lying on the ground . . . I probably skipped a step, so that's my bad. However, I'm curious about the area around all the magnets turning black. Has anyone ever seen this?


Title: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: themysticalone on August 07, 2007, 07:10:25 am
I've seen things like that in various programs that have just turned out to be a rendering/video card issue with the specific program I was working on.

Sounds like you forgot to rotate the model so that it was lying on its back in poser before you exported it and ran it through meshtool.


Title: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: Alasdair on August 07, 2007, 07:13:23 am
I've had poser do that when the magnet was in front of the camera.


Title: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: Bakajin on August 07, 2007, 09:56:35 am
Thanks for the tips guys. I'll get back to it.


Title: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: Bakajin on August 07, 2007, 02:27:31 pm
I think it might have been the magnet set. I tried a couple of other sets and didn't have the distortion. I'll reproduce the error and get up a screenshot. Maybe this is something for Warlokk to look at.


Title: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: Warlokk on August 07, 2007, 05:28:48 pm
If it's an explosion when applying the magnets, I get it too, all the time... believe me I wish I knew how to fix it, I think it's a program glitch, 'cause if you delete and re-apply the magnets a few times, eventually it will work fine.


Title: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: Bakajin on August 07, 2007, 07:02:19 pm
Another question while I'm getting used to this (the process is easy once you get going, getting the results are another matter :): When working on a dress with added high heels, the end product is a dress with default Maxis heels. Is there a step you have to add while working with Simpe to get the heels that came with the mesh? Do you have to add heels with another program?

Sorry to be an annoyance.


Title: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: Bakajin on August 07, 2007, 07:04:11 pm
Thanks Warlokk, you must have been posting as I was. :) I'll keep trying with the Rio set. The other sets are working great! Thanks for your hard work. And thanks TMO for the tutorial.


Title: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: themysticalone on August 08, 2007, 09:36:20 am
Quote from: Warlokk;867697
If it's an explosion when applying the magnets, I get it too, all the time... believe me I wish I knew how to fix it, I think it's a program glitch, 'cause if you delete and re-apply the magnets a few times, eventually it will work fine.


Oh man, I hate magnetsplosion.  It happens to me most often when I've edited the spline curve of the magnet.  If I delete the inflection points ( or whatever they're called), it usually universally does it to me, so I just move them to a striaght line as a basis.  But sometimes it occurs for other modifications.  I haven't really found rhyme or reason for it, but it doesn't ever happen if I leave the curve alone.


Title: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: Warlokk on August 08, 2007, 12:32:40 pm
Yup, same here, when I alter the Magnet Zone... which I do a lot, so I deal with this all the time.  Definitely the most annoying bug in the program.  I'll have to try the Not Deleting the Point thing though, maybe it'll reduce it some.


Title: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: jtp10181 on November 27, 2007, 12:13:17 am
Wow! Glad I found this. I was doing it all wrong. Is there a secret trick to deleting all the magnets at once? Thats the only annoying part.


Title: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: Warlokk on November 27, 2007, 06:34:22 am
Nope, once you create the morph target, you have to delete them one by one... don't go too fast though, you might accidentally select your body mesh and delete that by mistake, then you have to start over... dunno how many times I've done that... :P


Title: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: MixdCrysy on November 27, 2007, 08:22:51 am
'we were exporting this object for use in Milkshape, we would export it standing up like this'

I am curious about exporting to milkshape. Would I export the morph made to an .obj ?
And if so, would it be a single frame or multi frame?


Title: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: BlooM on November 27, 2007, 08:40:19 am
I have no clue wat you guy's talking about.
I apply the magnets and export as obj, thats all i do....
Never delete any magnets, why? Its not that you export them with the obj file or anything...


Title: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: MixdCrysy on November 27, 2007, 04:25:27 pm
So, Bloom, you export as an .obj and them import into milkshape, and it works fine? Would that remove all the bone assignments (I heard that somewhere)? For some reason, I cannot correctly use meshtool :dontknow:, it just doesnt work for me (BTW, completely my own fault, I dont really know what I do wrong...).


Title: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: jtp10181 on November 27, 2007, 08:34:01 pm
Bloom - if you make a morph you can delete the magnets and apply new ones and make another morph. This can save some time. Then when you are done you rotate the body to its back and export one by one.

OK Poser is really annoying me now. The first set of magnets I loaded just hitting "DEL" would delete them. After that I had to use the menu for them all. This is going to get old really fast!


Title: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: Warlokk on November 27, 2007, 09:01:08 pm
jtp's right as far as just creating Morphs to save time... I usually load up a bunch of magnet sets and make the top and bottom morphs, that I can then mix and match for the various sizes, and for my fat and preg morphs.  However as long as you just export the body.obj, and not the magnets, you could possibly skip this step, but I've honestly never tried it... makes sense though.

Mixd-- The .obj will not have any bone assignments or anything in it, it's just one step towards making the in-game mesh... it then needs to be combined with the morphs and bone assignments, either manually with the .objx tool for MilkShape, or with the Mesh Tool.  BlooM was just referring to the fact that you can skip the deleting of all the magnets and export directly to the finished .obj, which could be easier when working with a single shape... I never really thought about it, I always made morph targets.

jtp-- That's pretty bizarre, never had that happen... Delete key works fine for me every time.  Maybe you could try reinstalling Poser, it may be all jacked up... :dontknow:


Title: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: MixdCrysy on November 27, 2007, 09:09:08 pm
Thanks War, I have been trying to learn how to use poser, scince I paid for it and staring at the icon on my desktop was making me infuriated. I will keep at it, sooner or later I will have to get it right. I was just hoping for an easier conversion method, as far as the shapes... moveing each verticle to an .obj of the shape I want is getting tireing...Thanks agian. :)


Title: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: jtp10181 on November 27, 2007, 09:31:18 pm
Speaking of preg morphs... is there anything special that needs to be done to not screw up the preg setting? I have not really tested it out in game yet.


Title: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: MixdCrysy on November 27, 2007, 09:39:19 pm
Question: Does anyone else get mesh explosions with meshtool? Or is it only me? Every time, it never fails. I succeded in finally succeded in poser to make it the desired shape, but it still explodes on import with meshtool.


Title: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: jtp10181 on November 27, 2007, 10:18:59 pm
I've never had it happen. I read it will happen if there is more than one mesh together, like on an alpha dress. When you import the obj into meshtool it tells you a number, if its more than 1 you are in trouble.


Title: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: MixdCrysy on November 27, 2007, 11:27:18 pm
Quote from: jtp10181;1047344
I've never had it happen. I read it will happen if there is more than one mesh together, like on an alpha dress. When you import the obj into meshtool it tells you a number, if its more than 1 you are in trouble.


Thanks :), I figured out a way around that, for this particular mesh. Since I am doing the afbodyslip, I exported only the top half of the gmdc (this mesh is split with the upperbody as the first body and a second for the legs and feet). Then I 'shaped' it in poser, exported as .obj, made mesh with meshtool, imported the gmdc/simpe file made by meshtool into milkshape, and its ok know. Just need some minor editing, but alot less time than how I used to do it :D


Title: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: Núkumnëhtar on December 31, 2007, 06:10:44 pm
If any wishes to use this tutorial but cannot buy Poser because they are poor (like myself), they can use DAZ Studio1.8.1.5 to do the same thing in quite a similar way. Just look at the post I made on Xenos' Tutorial: Using Poser to Modify Body Shapes at modthesims 2 site to find out how to apply magnets using that program.


Title: Re: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: oph3lia on November 26, 2009, 02:33:29 pm
Nevermind, was typing 90 on the z axis rather than x  :rolleyes:

Damn, done everything said in the tut and my mesh is exploding  :(


Title: Re: Converting Bodyshapes Using Meshtool and Poser Magnets
Post by: BlooM on November 27, 2009, 09:22:48 am
Nevermind, was typing 90 on the z axis rather than x  :rolleyes:

Damn, done everything said in the tut and my mesh is exploding  :(

I use a difrent methode wich i think is easier.
You open your mesh in milkshape, delete the morphs and export it as a objx file with unimesh export.
Then export it again as obj file, call both body when exporting.

Import the obj file in poser, do not tick any boxes
Apply the magnets and export as obj file, do not tick any boxes
Boot up milkshape again and import the obj file, then import the objx file.
If you did this correct your obj file will have its boneassignements back and have the correct comments in the comment box.


The morphs do not need a objx file, you can export them as obj file and import them in poser, apply the magnets and export.
When you have the normal mesh in milkshape you can import the morph obj file.
You then must fix both the comment boxes with the morph addon lines(copy them from a original maxis mesh)
Last thing you have to do is fix the neck and the rest of the normals then export with Unimesh, done
I do this with Wes H his normal data tool


p.s. empty your pm box ;)  its full...


SimplePortal 2.1.1