Page 2 of 2

Re: Red Ninja PS2 Models .QMX

Posted: Tue Apr 11, 2023 10:52 am
by shakotay2
000163.QMX_188-uvs.zip
Load 000163.qmx into hex2obj then
use "Fake FIs" and File/SaveAs Mmesh

(for FVFsize=48 the uv address is vAddr-32, as mentioned already.
For FVFsize=64 I chose 64 16, not sure whether that's correct.)

Use this py script for importing multiple obj files into blender (adjust drive letter and the path to the obj files):

Code: Select all

import os
import bpy

# http://blender.stackexchange.com/questions/5064/batch-import-wavefront-obj
# put the location to the folder where the objs are located here in this fashion
# this line will only work on windows ie C:\objects
path_to_obj_dir = os.path.join('D:\\', 'path to\\obj files')

# get list of all files in directory
file_list = sorted(os.listdir(path_to_obj_dir))

# get a list of files ending in 'obj'
obj_list = [item for item in file_list if item[-3:] == 'obj']

# loop through the strings in obj_list and add the files to the scene
for item in obj_list:
    path_to_file = os.path.join(path_to_obj_dir, item)
    bpy.ops.import_scene.obj(filepath = path_to_file)

Re: Red Ninja PS2 Models .QMX

Posted: Wed Apr 12, 2023 1:00 am
by roocker666
shakotay2 wrote: Tue Apr 11, 2023 10:52 am
(for FVFsize=48 the uv address is vAddr-32, as mentioned already.
For FVFsize=64 I chose 64 16, not sure whether that's correct.)
ok!, Thanks for H2O files and Blender script. I guess we got it, I deleted those extra polygons and applied the texture, it looks good but in some submeshes UVs are wrong. Maybe are those FVFsize=64, I think UVs should be same formula as FVFsize=48(vAddr-32)

Here is my result:

Re: Red Ninja PS2 Models .QMX

Posted: Wed Apr 12, 2023 1:01 am
by roocker666
UVs:
RED NINJA2.jpg

Re: Red Ninja PS2 Models .QMX

Posted: Wed Apr 12, 2023 8:47 am
by roocker666
shakotay2 wrote: Tue Apr 11, 2023 10:52 am
For FVFsize=64 I chose 64 16, not sure whether that's correct.)
Oh, now I understand. UVs for FVFsize=64 looks better with 64 32. Maybe that is the correct value..