PDA

View Full Version : Retexturing/Remapping objects after editing


Briko
10-04-08, 02:49
Hi,
I was just wondering, Is there a way to export a mesh from Strpix, modify it, and then import it back into Strpix without losing the textures? I am currently using ReStrText to achieve this function, but I'm not getting very good results. Even when I only edit one or two points, I need to rotate every existing texture on the object at least once. Dose anyone know an easier way? I am currently using Meta. Are there any editing programs that that won't cause the mesh to loose its textures? I was also wondering if there was a quicker way to remap the vertices of Lara meshes after importing them into Strpix. If anyone knows any helpful short cuts, please reply.
Thanks so much,
Briko

ReeceMix
10-04-08, 12:02
Rhino keeps all of the texture infos intact

I was also wondering if there was a quicker way to remap the vertices of Lara meshes after importing them into Strpix.
Pixstr has the same function but it works the same way, a 1 click function tool would be nice :)

Briko
10-04-08, 17:51
Thank you!
I have been searching the internet for rhino, but the only programs that I can find cost up to $1000. Do you know where I can find a free version of this program? Nothing illegal of course, but maybe a demo or something.
Thanks,
Briko

ReeceMix
10-04-08, 18:32
just google 'download rhino 3d'

sapper
11-04-08, 00:02
Demo version only lets you save 25 times.
http://www.rhino3d.com/eval.htm
Download Rhino 4 evaluation here(112MB) or see link further down the page to download rhino 3 evaluation (30MB).

Even when I only edit one or two points, I need to rotate every existing texture on the object at least once.

Try this to preserve texture rotation.
When importing/exporting with Meta don't do Swap YZ (or any other swap). Also don't change the mesh's orientation in Meta.

Briko
15-04-08, 01:22
Thanks! You guys are awesome!

matrix54
15-04-08, 12:10
good luck!!

sapper
16-04-08, 09:03
Created a program that converts a StrPix dxf file to a Meta mqo file.
Each face of the dxf file is an object in meta with the texture info as the name.
Sort of how Rhino treats the dxf file. You can then save as dxf with "object name as layer" checked so on import back into StrPix the mesh will be textured.

Since each face is an object, editing is problematic so I don't think this will replace current methods.

Must use rect or lasso selection tool to grab all the duplicated vertices at the same co-ords.
EDIT: Download link to updated version in next post. If get float error with version 1.0 see notes in post for version 1.3.
Download version 1.0 here. (http://www.4shared.com/file/44272501/5d2ef71/DXF2MQO.html?dirPwdVerified=45997554)

sapper
21-04-08, 03:35
Updated DXF2MQO.

Version 1.1 includes UV co-ordinate information and materials for each face so you can view your model textured in Meta.

Usage:

-Open the DXF file exported from StrPix in DXF2MQO.

-Convert the DXF file.

-From StrPix, export the textures listed at the bottom of
DXF2MQO's output memo box to a folder. If you save the textures in the same folder as the mqo file you can skip the next step.

-In Meta, go to File>Configuration and in the System tab
set the Tex folder Ref to the folder you saved the textures in.

-Open the *_.mqo file.
Make sure show textures is checked in the view menu.
Also in the view section of the Command Panel I had to
choose either D3D or GL for the textures to display
on my system.

Download version 1.1 here. (http://www.4shared.com/file/44801579/4546a11c/DXF2MQO1_1.html) Note: updated. version 1.3 download link 2 posts below. If get float error with version 1.1 see notes in the post for version 1.3.

http://i214.photobucket.com/albums/cc94/nnn59/dxf2mqo11.jpg

http://i214.photobucket.com/albums/cc94/nnn59/dxf2mqometa.jpg
Note that the head has been rotated in Meta in this screenshot.

igor32
21-04-08, 16:16
:yik:

I love you

:yah:

:hug:

:gki:

sapper
25-04-08, 09:13
Updated DXF2MQO. (Note may have to set regional settings to English Australia to work.)

Download version 1.2 here. (http://www.4shared.com/file/45338086/a2b2ac84/DXF2MQO1_2.html)
UPDATE
Download version 1.3 here (http://www.4shared.com/file/55373270/21e6e04f/DXF2MQO1_3.html)
UPDATE
Download version 1.4 here (http://www.4shared.com/file/57239706/47f1957e/DXF2MQO1_4.html)
UPDATE
Download version 1.5 here (http://www.4shared.com/file/58229558/1592c10b/DXF2MQO1_5.html)
UPDATE
Download version 1.5a here (http://www.4shared.com/file/58356331/1f86bd78/DXF2MQO1_5a.html)
UPDATE
Download version 1.6 here (http://www.4shared.com/file/185197219/7a9b54a7/DXF2MQO1_6.html)
UPDATE
Download version 1.6a here (http://www.4shared.com/file/213508185/2b593f79/DXF2MQO1_6a.html)

Version 1.6a changes:
When writing an MQO importer for editwad I found
that DXF2MQO wasn't writing the MQO the same as
Metasequoia so I made the following changes.
- Writes 'Eof' in MQO instead of 'EoF'
- Writes 'V(...)' in MQO instead of 'v(...)'

Version 1.6 changes:
- Compensate for shine bug in StrPix.
StrPix does export the shine value
to the DXF which sometimes results
in a value in the opacity field with
more than one digit.
On import StrPix only reads the first
digit which can cause the texture to
have an opacity value different to
the value exported. DXF2MQO now only
stores the opacity value in the MQO.
- Multiply x 100 checked by default

Version 1.5a changes:
- added some diagrams to the Offset Lara Meshes tab. No other difference with V 1.5.

Version 1.5 changes:
- added feature to offset Lara's meshes
- Swap YZ checked by default

Version 1.4 changes:
- Fixed DXF file error check.
Program would not convert DXF file if all layer names were prefixed with "TEXTUR_".

Version 1.3 changes:
- Users in countries that use "," for decimal should no longer have to change regional settings in Windows.

Version 1.2 changes:
- support for textures exported from TextureAdd
in *.BMP format. TextureAdd allows batch
export of textures (see note 1.).
- added some checking of the input file.
- added Multiply x 10, Swap YZ options.
- slight change to x 100 saved number format
- output filename adjusted to show scale and
texture exporter, i.e. "s" for StrPix and
"t" for TextureAdd and if Swap YZ, "yz".
- option to leave out Material and UV info.
- tooltips added.
- Zoom2 in Scene section varies with scale.

note 1. TextureAdd's textures start at #1 whilst StrPix' start at #0.

I've noticed that some meshes when you import them back into StrPix have a slightly changed dimension. Off by 0.01. Don't know why. Watch this with Lara & joint meshes. (Edit: this happens when the mesh is saved as DXF initially. Nothing to do with DXF2MQO or Meta)

You can use Meta's "merge all" option from the Misc button in the Object panel to create one mesh but then you lose texture info unless an option to export "Material's name as layer" is added to Meta's DXF export.
Maybe a Japanese speaking forum member could email O. Mizno and ask for such a feature to be added to MetaLE!

http://i214.photobucket.com/albums/cc94/nnn59/DXF2MQO_1_2.jpg

sapper
02-05-08, 06:13
You can use Meta's "merge all" option from the Misc button in the Object panel to create one mesh but then you lose texture info unless an option to export "Material's name as layer" is added to Meta's DXF export.



OK. Here's a program that converts an MQO to a StrPix DXF using the material name as the layer name so now you can merge all the faces into one object and still save the texture info. Also use the "join closed vertices" in the Object menu once you have merged the faces to get rid of duplicate vertices.
MQO2DXF 1.1a (http://www.4shared.com/file/46235208/8689ce00/MQO2DXF1_1a.html)

UPDATE
Download version 1.2 here (http://www.4shared.com/file/55373268/3626593c/MQO2DXF1_2.html)

- Version 1.2 changes
Users in countries that use "," for decimal should no longer need to change regional settings in Windows to run the program.

UPDATE
Download version 1.3 here (http://www.4shared.com/file/58356493/e28225b/MQO2DXF1_3.html)

- Version 1.3 changes
Swap YZ checked by default.
Multiply x 0.01 checked by default.
Can choose to only convert objects marked as visible in the MQO file.

darkfrei
03-09-10, 08:23
Updated DXF2MQO. (Note may have to set regional settings to English Australia to work.)


UPDATE
Download version 1.6a here (http://www.4shared.com/file/213508185/2b593f79/DXF2MQO1_6a.html)


But if i try convert dfx2mqo, i have error: No line beginning with "TEXTUR_" or "PLIPPED_". Not a StrPix 3.9.5 REV10 DFX file

Created in AutoCAD 2007, convert for Pepakura Designer 3 (create paper craft models from 3D data).

Are dfx2mqo not universal convert dfx into mqo?

sapper
03-09-10, 11:55
Sorry, DXF2MQO is not universal.

I only designed it for the DXF file created by StrPix.

If Meta's DXF importer does not work with your file maybe import the DXF into Blender 2.49 and save as OBJ.

There are also MQO exporters for Blender on the internet.

EDIT:

If your DXF file is 3DFace format DXF2MQO may work if in autocad you make a layer named like StrPix format.
That is, TEXTUR_1234_0_0.