Wed, Nov 27, 7:08 AM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Nov 26 1:43 pm)



Subject: How can you get the .obj out of a .cr2 and remain with a clean character?


Black_Star ( ) posted Sun, 18 November 2007 at 2:17 PM · edited Wed, 27 November 2024 at 7:05 AM

Hi!

I have about two weeks since I am trying to finish a model, an it seems I will never do this.
After countless works and re-works of my model only to just "fit" in Poser, I have noticed one thing - Poser is modifying my .obj informations on export.
My workflow when making a character is this : 
 - I import the .obj into Poser
 - I use hierarchy and create a new character
 - the new character is exactly as it should be (no bad textures, no bad geometry)
 - I insert the character in a scene and resave it into the library (I do this in order to get the .obj out of the .cr2, and it's the only way I know how to do it)
 - and in this stage all the bad things happen
 - Poser is slightly modifying my character (the character had all the trims in the previous stage, but in this one has no trims, and this is just one example)
 - I thought Poser is making a bad .obj on resave, so I have replaced the new one with the original (the one used first time on import), still no difference, so it seems the problem is in the .cr2 and in the way it interprets it
In conclusion, do you know a "clean" way, that does not involve the use of Poser, to get the .obj information into one separate file and still remain with a clean .cr2 afterwards?
Thank you in advance!

Best regards!


PhilC ( ) posted Sun, 18 November 2007 at 2:54 PM

What are the group names (not material names), of the trim? Do the group names of your trim match the body part names exactly?

If you are not sure import your original OBJ file and inspect it with the Poser grouping tool.


SSAfam1 ( ) posted Sun, 18 November 2007 at 2:59 PM · edited Sun, 18 November 2007 at 3:01 PM

I have an object question too. How do you get the obj file for a package that's missing it? I have fabulous shoes (.pp2). They're missing the obj file.


kuroyume0161 ( ) posted Sun, 18 November 2007 at 3:01 PM

Many times, the geometry for props is embedded.  That is, the Wavefront obj text is inside the Poser pp2 file.  Otherwise, where did you get the package that it doesn't have the obj file included?

C makes it easy to shoot yourself in the foot. C++ makes it harder, but when you do, you blow your whole leg off.

 -- Bjarne Stroustrup

Contact Me | Kuroyume's DevelopmentZone


Black_Star ( ) posted Sun, 18 November 2007 at 3:12 PM

First of all, my character is not a clothing item, it's...an umbrella.
But I want it as a character in order to have more textures for it.I did this all the time for my characters (that otherwise would have been props).And so far, all was working as expected.
This is the first time this thing is hapening to me, or it's the first time I am noticing it.And this is the workflow I am using since the first character I have created.
In conclusion, there are no body parts to match.And the seam is part of the umbrella cover.Both of them are one object and have a single material.
Anyway, even if I wouldn't had this problem, the question still stands, how do I get the .obj information out in a clean fashion adn still remain with a clean .cr2?


SSAfam1 ( ) posted Sun, 18 November 2007 at 3:16 PM

Quote - Many times, the geometry for props is embedded.  That is, the Wavefront obj text is inside the Poser pp2 file.  Otherwise, where did you get the package that it doesn't have the obj file included?

 

In a thread over at Daz. I sent you an email.


DarkEdge ( ) posted Sun, 18 November 2007 at 3:18 PM

SSAfam1,
Try opening the pp2 in a file editor (notepad, etc). If you see tons of lines with v, vt and f then you obj was embedded in the file...no way to get it out. 
However, if there aren't lot's of v,vt, and f's then at the top it should tell you were the obj is located and by what name.obj

Hope this helps

Comitted to excellence through art.


PhilC ( ) posted Sun, 18 November 2007 at 3:21 PM

When you inspected the one object using the Poser grouping tool what were the group names shown? Did those names match those found in the CR2 file?


SSAfam1 ( ) posted Sun, 18 November 2007 at 3:25 PM · edited Sun, 18 November 2007 at 3:26 PM

Quote - SSAfam1,
Try opening the pp2 in a file editor (notepad, etc). If you see tons of lines with v, vt and f then you obj was embedded in the file...no way to get it out. 
However, if there aren't lot's of v,vt, and f's then at the top it should tell you were the obj is located and by what name.obj

Hope this helps

 

Okay will do. If this helps any here is a line from the readme files, "The models are two shoes (left and right), saved as parented props" 

I know it's something I'm not getting because others were able to take the same file and make textures for the shoes. I just don't see the obj in the package to put into my geometries folder. I will open it in text editor and paste what it says.


SSAfam1 ( ) posted Sun, 18 November 2007 at 3:36 PM

Yeppers a whole lot of "Vs" and "Vts" and "geomCustom."


kuroyume0161 ( ) posted Sun, 18 November 2007 at 3:46 PM

It is easy to extract the embedded Wavefront obj file.  Copy everything inbetween the { } after geomCustom into a new text file.  Remove the five lines at the top starting with 'numb'.  Save as .obj and now you have the obj file for loading into UV mapper (for instance to create a texture template image for use in Photoshop or PSP).

This won't change the reference in the prop file (pp2) from internal (embedded) to external.  That requires that you change the reference from geomCustom to objFileGeom followed by the reference to the obj file.  But for creating textures, you don't need to do this. :)

C makes it easy to shoot yourself in the foot. C++ makes it harder, but when you do, you blow your whole leg off.

 -- Bjarne Stroustrup

Contact Me | Kuroyume's DevelopmentZone


SSAfam1 ( ) posted Sun, 18 November 2007 at 4:05 PM · edited Sun, 18 November 2007 at 4:11 PM

Thank you. I got it to work. Here's what happened...

I thought every figure had to have a .Cr2 or pp2 along with an obj in the geometries folder. The zipped folder I received, didn't come with the runtime in tact. So I had to make one and place all the files manually. I did that then went to my libraries. Nothing showed in my Props folder. Checked the folders again and it seems I wrote, "Prop" instead of "PropS" so Poser automatically makes all the folders. I had to take the files out of the folder I created (Prop) and put them in the newly created, "PropS" Now they show. I wasn't trying to texture them LOL but glad I asked this question anyways as I found out objs can be embedded which I didn't know. I assumed the shoes didn't show because the obj was missing...


dogor ( ) posted Sun, 18 November 2007 at 5:47 PM

The cr2 just tells poser what to do with the obj's parts and materials. If the umbrella only has one group and there are some poly's assigned to an (unknown group within the obj.) that isn't in the cr2 at all, those polys might be invisible. Some figures have many groups or parts and a group can have more than one material. If you have a material that isn't part of one of these groups then poser doesn't display it if I'm correct. It can still be in the obj itself still. Just attach the trim poly's to a known group that already exists in the cr2 with the group editor in Poser's setup room. Then resave the model. You'll know there's a poly that isn't assigned to a group when you leave the setup room because Poser will warn you as you leave and ask if your sure that's what you want to do.


Black_Star ( ) posted Sun, 18 November 2007 at 6:11 PM

Thank you for your help!
@ PhilC - there are the same groups
@ dogor -
Just attach the trim poly's to a known group that already exists in the cr2 with the group editor in Poser's setup room. - I cant' do that, they are already attached to the same group.When I export my model, it is already grouped.So it comes in Poser already grouped.No input needed from me there.


dogor ( ) posted Sun, 18 November 2007 at 6:55 PM

Save the model and attach the origanal obj back too the cr2 you just saved. and take it in the setup room. Are the trim polys there and are they still grouped? They should be, but if not something is a miss in the origanal obj and heirarchy would be my guess. They are two groups and you just don't see one or Poser is missing one when you save it. Are you loading the obj in PHI build and looking at it and saving a PHI file of the same name before you put it in Poser? 


nomuse ( ) posted Tue, 20 November 2007 at 11:50 PM

Back up.

The single best way to get an .obj file out of a character or prop file is to open it in poser and export as .obj    In the case of a character, you would want to zero it first (set all joint rotations and scaling to zero).

In the case of a prop, you can then re-import it and create a new prop file (pp2).  Poser will re-save the geometry inside the pp2.  If you want to maintain that external geometry, simplest method is to edit the .pp2 to "point" at the .obj file you created earlier.

In the case of a character, if you, say, rigged using the hierarchy method, the cr2 will be pointing at somewhere else than the exported .obj file.  Once again, you need to go into the .cr2 with a text editor and change the geometry lines to point at your new .obj file. 

In addition, if your hierarchy-created character was done with various scaling and joint rotations, after you've pointed a copy of the .cr2 at the new.obj file you created by exporting, you will need to reset the scaling and possibly some joint centers et al in Poser, then save a new .cr2  Fortunately, this new .cr2 will continue to point at that first .obj file.

Clear as mud?


ellocolobo ( ) posted Wed, 21 November 2007 at 4:16 PM

Chang the .pp2 to .obj and open


Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.