Digital Art Zone

 
     
Exporting an .obj but with Morphs applied.
Posted: 31 October 2012 10:28 PM   [ Ignore ]
Active Member
Avatar
RankRank
Total Posts:  266
Joined  2006-05-09

I tried all the 4 main boxes in multiple combinations and cannot get an obj to export with the morphs applied to the Geometry.  It started as a poser object.  In the main screen it has Area list and shows the morph list.

Clicking on that brings up the various slide bars/entry boxes.  I adjust 2 of them and when it imports into Hex (just testing to make sure it worked).  Comes in as the original Mesh.  I export as .DAE and I bring that into DazStudio 4 with morph intact, I can export from there as a .obj of the applied morph and it exports with the mesh following the morph into Hex. 

Is there a way of exporting from Carrara with the Morph applied without running it through DS?

 Signature 

Carrara Cafe

Profile
 
 
Posted: 01 November 2012 03:09 PM   [ Ignore ]   [ # 1 ]
Power Member
Avatar
RankRankRank
Total Posts:  1828
Joined  2004-08-24

Hi Milo smile

The OBJ model format doesn’t support multiple morph targets within a single object (OBJ file.

The normal way to do it is to export the Base Obj, and each Morph target as obj from your modelling program,. then load those as Morph targets for the base model in Poser or DS, then save that as a figure, prop, hair, ..etc.

Collada and some other 3D formats will support morph targets in the file as well as animation and textures,.
these are newer 3D file formats and are built to transfer 3d data from different applications.

The OBJ format is simply a Model format, it supports shading domains and the basic material list, (MTL) but it doesn’t support morph targets and the base geometry in a single file.

Using the Bridge to Hex from DS is different and will transfer morphs from the model into hex from DS.

but if you export a model as an OBJ from DS and open that in Hex, you’ll have no morphs.

Hope that makes sense smile

Profile
 
 
Posted: 01 November 2012 09:30 PM   [ Ignore ]   [ # 2 ]
Active Member
Avatar
RankRank
Total Posts:  266
Joined  2006-05-09

First Thank you for the reply 3DAGE.

I don’t think I got across what was going on.  I wasn’t trying to export any morph that could be morphed in any other apps, but the shape that was showing on the screen in Carrara with the morphs applied as a .obj .  I tried as an experiment exporting the model with the morph applied and it came across into DS with the morph applied (I didn’t see if the morphs were there to modify more in DS as that wasn’t my focus.)  It came into DS in the shape adjusted by the morphs I applied in Carrara and the .obj I exported from DS, imported into hex (no Bridge) with the shape being what I saw on the screen in Carrara originally.  However I cannot find how to simply export the model with the morph applied to the shape so that when I import the .obj into Hex I get the unmorphed shape. 

Say the original model is a Circle, and there is a morph that flattens two of the sides to make it more an oval shape.  If I export out of Carrara and import into Hex (or other applications) as a .obj it comes in as a circle.  If I export to DS, it shows up in DS as a Circle with the sides flattened being the same shape that was in Carrara.  I then export that from DS as a .obj and it will load into Hex with that morph applied to the Mesh showing me the Oval.  What I am trying to do is export the Oval morphed circle into a .obj with that morph applied so that anything loading the .obj will bring in the Oval (yes no morph etc is there just a flat mesh object) instead of the circle which is all I can get Carrara to do now.

If I export a head that had a pointy ear morph applied I want the resulting object to simply be a head with pointy ears (no morph being exported just applied and the resulting shape being exported to the .obj).  I hope that makes more sense.  I didn’t use bridge as I ultimately won’t be taking it into Hex just trying to get the .obj right.

I appreciate and apologize that my writing isn’t as clear.

 Signature 

Carrara Cafe

Profile
 
 
Posted: 02 November 2012 06:35 AM   [ Ignore ]   [ # 3 ]
Power Member
Avatar
RankRankRank
Total Posts:  1828
Joined  2004-08-24

Hi Milo smile

No problem it’s a confusing thing to describe,.. I understand now,.. want you want is the deformed object, exported. not the original shape.

The option to “Export mesh with morphs and skinning” is actually a good example of how hard it can be to describe the process.

this option works on “figure"s, and allows you to export the Posed figure, in that current pose,. so , effectively the deformed mesh instead of the original.

The problem is,... that it only works for Figures,.. or objects with a modifier applied to them.

If you Add a bone or two,. to your Model, (which shouldn’t effect any morphs) you should be able to adjust the Morphs to get the shape you want,. then export as OBJ,. using that (export with morphs and skinning) option.

The other option,.. you can export an object which has a Modifier applied to it, like a “Bend and Twist”,. and that “deformed” object will be exported in that current shape,. plus, you don’t need to add bones, and you don’t need to have adjusted any settings on the modifier, as long as it’s applied to the object. you should be good to go.
You can dial in the morph you want,. and export as OBJ, using the option to export with morphs and skinning,

Quick pix :
Here’s a morphing candle, ...the original model,  and the re-imported obj;‘s of the exported morph states.
hopefully you can see the modifier tab, which is set at 0.

Hope it helps wink

Image Attachments
export_modified.jpg
Profile
 
 
Posted: 05 November 2012 06:04 PM   [ Ignore ]   [ # 4 ]
Active Member
Avatar
RankRank
Total Posts:  266
Joined  2006-05-09

Thank you for the reply.  I am sorry about the delay real life reared and would not be denied.

That is what I thought it would be, I just tried it with that option selected and it didn’t export it morphed.  I checked the original file and it turns out it is a .pp2 .  When you select the item from the instances It gives the name under the general tab, right under the general drop down (with the triangle, it is the next item down) and in that drop down it has the Area List. When I select the area list it brings up all the morphs.  I adjust the morphs that come up from there.  It shows on the screen as deformed into what I did with the sliders.  As a side note if I go into the model room, it is available under the Morphs Tab (Area list again).

When I export that object even with “Export mesh with morphs and skinning” selected when I re-import the object it only comes in as the original object without the morphs to change its shape.  Could it be because it is a .pp2? I deleted everything in the scene except the object and tried again to the same result.  It is a free object I can PM you info about it.

 Signature 

Carrara Cafe

Profile
 
 
Posted: 05 November 2012 08:08 PM   [ Ignore ]   [ # 5 ]
Power Member
Avatar
RankRankRank
Total Posts:  1315
Joined  2008-01-01

Try exporting as .3DS - import to Hex and export as .obj - that will retain the morphed state, but of course there will no longer be any morphs for future use.

Profile
 
 
Posted: 06 November 2012 04:24 AM   [ Ignore ]   [ # 6 ]
Power Member
Avatar
RankRankRank
Total Posts:  1828
Joined  2004-08-24

Hi Milo,.

It’s because it’s a poser file, and,.. I’m assuming it’s a prop, and therefore has no bones, ....but in Carrara ....it’s still inherently protected.
All poser files are protected.

have you tried applying a “modifier” to it in carrara, and exporting ?

RIGHTS :

Even if the original creator of the model doesn’t know anything about the legal rights he has,.. He still owns the copyright.
Even if the object is given to you (FREE) “without payment”, you do not own the copyrights.

Formats:

I wouldn’t go to 3DS,. It’s not a good model format ( It triangulates all meshes ) and in many situations even Max users will use another option, simply to preserve the geometry.

As it’s a prop, you should be able to open the original OBJ in Hexagon,. or Cararra,. then adjust that shape to create a morph target, then export as OBJ or Bridge to DS, and set that up as a new morph target in Poser or DS.

You could also use the EDIT / Smooth option in Carrara to break into the protection for that poser model,. this will make the object editable but can also break things.

Fenric has a more elegant solution which allows you to “Unlock” and “Lock” the objects protected status.

if you can post a link to the object you’re using, then I can take a look at it later.

Hope it helps smile

Profile
 
 
Posted: 08 November 2012 06:51 PM   [ Ignore ]   [ # 7 ]
Active Member
Avatar
RankRank
Total Posts:  266
Joined  2006-05-09

3dAge
I really appreciate the information.  I have all of Fenrics tools, I will have to investigate as that may be all that needs to be done (You don’t happen to remember which plugin it was in?).  **I tested it and just applying it allowed the .obj to be exported with the morph of the mesh applies to the obj intact**

I was actually just originally taking the .obj into meshmixer and removing some verticies and then merging it with something I made for a render for a friend that wanted a joke image for his wife.  You know how that simple little thing becomes.. well not the simple little thing.  I wasn’t trying to incorporate their mesh into any type of mesh for sale etc (Why I think you put the RIGHTS in your posting or just explaining why its locked?)

I did get it to work my exporting in .dae to DazStudio then exporting the object from there.  I ended up using Carrara to put it all back together and did the silly render but I learned some things.

Thanks again for your information!

 Signature 

Carrara Cafe

Profile
 
 
Posted: 09 November 2012 09:24 AM   [ Ignore ]   [ # 8 ]
Power Member
Avatar
RankRankRank
Total Posts:  1828
Joined  2004-08-24

HI Milo smile

Posing pack 3,. which has the Figure unlock, and restore options.

http://www.daz3d.com/shop/posing-pack-3

If you open a Poser file, it’ll be protected when you bring it into Carrara, just because it’s a processed model,. and not a bare OBJ model which wouldn’t have any protection, and should be completely editable in carrara.

Adding a deformer like bend and twist (even with no effect values) should allow Carrara to export the OBJ in it’s morphed shape. (if it has no bones)

Anyway,.. I’m glad you got it exported, and the job done smile I know exactly how those “Simple” favours, can turn into a mountain of work.

smile

Profile
 
 
Posted: 09 November 2012 11:52 AM   [ Ignore ]   [ # 9 ]
Active Member
RankRank
Total Posts:  270
Joined  0

couldnt you just convert it to a primitive and it would retain its shape. i do this for displacement. not sure myself just asking

Profile
 
 
Posted: 09 November 2012 09:59 PM   [ Ignore ]   [ # 10 ]
Active Member
Avatar
RankRank
Total Posts:  266
Joined  2006-05-09
3DAGE - 09 November 2012 09:24 AM

HI Milo smile

Posing pack 3,. which has the Figure unlock, and restore options.

http://www.daz3d.com/shop/posing-pack-3

If you open a Poser file, it’ll be protected when you bring it into Carrara, just because it’s a processed model,. and not a bare OBJ model which wouldn’t have any protection, and should be completely editable in carrara.

Adding a deformer like bend and twist (even with no effect values) should allow Carrara to export the OBJ in it’s morphed shape. (if it has no bones)

Anyway,.. I’m glad you got it exported, and the job done smile I know exactly how those “Simple” favours, can turn into a mountain of work.

smile

Yay I actually have that and the adding the deformer worked as stated.

Thank you for all your assistance.

 Signature 

Carrara Cafe

Profile