Jump to content

[Tool] Extract Mesh from *_nxg.ghg and *_nxg.gsc


Sluicer
 Share

Recommended Posts

I think it is time to create a topic for my ExtractNxgMESH tool. There were a few request for an update the last days and here it is. I was not able to assign it to one of the older posts directly.

http://www.rockraidersunited.com/files/dl-r112/

Just extract the archive and drag the file you want to extract on the exe file. You can also use a console. You will get a lot of obj and mtl files.

 

 

Hope it works.

 

I know there is an issue with the normals in some files.

  • Like 3
Link to comment
Share on other sites

ProfessorBrickkeeper

Nice to see you continuing to update your ever-useful tools. One quick question- I know some .GSC files also house the .NUT (DDS)  textures the models use, so does your tool support the extraction of those and UV-maps?

Link to comment
Share on other sites

11 minutes ago, ProfessorBrickkeeper said:

Nice to see you continuing to update your ever-useful tools. One quick question- I know some .GSC files also house the .NUT (DDS)  textures the models use, so does your tool support the extraction of those and UV-maps?

There are a lot of different versions of these files. Some might work, some might not. I never tried to extrall 'all' files. In the newest files there are no textures included and I currently focus on the newer files. But uv-maps should be contained in the obj files. Some of the files have two uv-sets (normal map), but since obj is not capable of that I can not extract both. If you have a file that is not working just name it and I could give it a closer look when I have it.

  • Like 1
Link to comment
Share on other sites

ProfessorBrickkeeper
10 hours ago, Sluicer said:

There are a lot of different versions of these files. Some might work, some might not. I never tried to extrall 'all' files. In the newest files there are no textures included and I currently focus on the newer files. But uv-maps should be contained in the obj files. Some of the files have two uv-sets (normal map), but since obj is not capable of that I can not extract both. If you have a file that is not working just name it and I could give it a closer look when I have it.

Nice to hear UV mapping is now working, I always felt it was something missing from earlier versions of the tool. The files I mention with the embedded textures actually are rather relevant, as I believe they'll be making a comeback next month in the LEGO City: Undercover rerelease. The files contain an ordered directory of *.nut names, with the actual data for them beginning from each instance of the "DDS" header. If you want an example file, I'd check out the one in here, which is one of the games more "interesting" files. https://www.dropbox.com/s/r30dg1lalzpm4g9/LEGO_CITY_BOXART.zip?dl=0

Link to comment
Share on other sites

Here is a version that can handle your example: http://oresome.rockraidersunited.com/download/474

If you want to extract also the textures you will have to use the console and add '-DDS' as argument:

ExtractNxgMESH.exe LEGO_CITY_BOXART_NXG.GSC -DDS

You will get all images. But they will be in the same location as the source file (filenamewithoutextention + runningnumber + '.dds') - no ordered directory. And there is no connection to the obj files currently.

  • Like 1
Link to comment
Share on other sites

ProfessorBrickkeeper

Thanks for the updated version, works like a charm!

 

EDIT: Tt has once again thrown us a loop and updated the format in the latest LEGO Worlds update so that it is no longer compatible with your tool. Here's a demo file if you're ever in the mood to touch them again. :) https://www.dropbox.com/s/53dntytalgo0ttp/ROCKETSHIP_CUTSCENE_DX11.GHG.zip?dl=0

Link to comment
Share on other sites

I do not think that there is a new format or an unknown MESH chunk in your example.  You have to look at the file name a little bit closer:

ROCKETSHIP_CUTSCENE_DX11.GHG

 

There is another tool to handle the _dx11.ghg files. I think the latest version can be found here: http://oresome.rockraidersunited.com/download/261

 

I was able (after changing GHG to ghg) to extract the meshes:

 

Fkdjwb5.png

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...
On 31.1.2018 at 2:12 PM, MilkPls said:

Hi just wondering if this tool would be able to help with model from the force awakens game?

I tested it with a few files and all of them were working:

 

EXkx6JN.png

Link to comment
Share on other sites

  • 3 months later...

Would this tools work for the lego jurassic world game? 

 

EDIT: I just ended up going to ninjaripper with it 

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

Hi Sluicer, just using your extractdx11mesh tool on LEGO Marvel Super Heroes 2. Thank you so much for this, works perfectly, except I get an error with one model in particular:

 

"Destination array is not long enough to copy all the items in the collection. Check array index and length."

 

Here is the model in question: https://www.dropbox.com/s/zualgikk8wghd7v/OUTOFTIME_HULK_2099_DX11.ghg?dl=0

 

Am using Version 700246 of the tool if that helps. Thank you!

Link to comment
Share on other sites

On 7/3/2018 at 11:27 AM, vipmedy2 said:

hello

there are 2 files from“lego the incredibles”,the dx11 tool cannot extract them

please help.

https://files.fm/u/egj8jjee

 

I was not able to download the files. Sorry

 

On 7/5/2018 at 11:54 AM, oliacym said:

Hi Sluicer, just using your extractdx11mesh tool on LEGO Marvel Super Heroes 2. Thank you so much for this, works perfectly, except I get an error with one model in particular:

 

"Destination array is not long enough to copy all the items in the collection. Check array index and length."

 

Here is the model in question: https://www.dropbox.com/s/zualgikk8wghd7v/OUTOFTIME_HULK_2099_DX11.ghg?dl=0

 

Am using Version 700246 of the tool if that helps. Thank you!

I was able to extraxt the mesh with this version of the tool. I was not able to test if also other files are still working.

 

In the file there were (I call them) relative vertex lists. For the MESH chung in version 0xAF I analyzed them the first time. They use them to create animations (movements of the vertices) of the model. With this version you can not extract the different frames.

Link to comment
Share on other sites

12 hours ago, Sluicer said:

I was able to extraxt the mesh with this version of the tool. I was not able to test if also other files are still working.

 

Ahh it worked yes! You genius, thank you ?

Link to comment
Share on other sites

32 minutes ago, Sluicer said:

I was able to download the file. It contains a new MESH chunk verison: 0xC8.

With this version of the tool I was able to extract the meshes. Please respect that this was the only file I had to test.

I tested multiple files and it was valid           

Thank you !

Link to comment
Share on other sites

  • 5 weeks later...

Hello, I need your help

I'll try to extract modells from Harry Potter year 1-4. I've got obj and mesh-files but there  are no textures included

is there a version  of the extraction tool, that could help me?

 

Link to comment
Share on other sites

Did you try the following:

On 3/8/2017 at 12:49 AM, Sluicer said:

Here is a version that can handle your example: http://oresome.rockraidersunited.com/download/474

If you want to extract also the textures you will have to use the console and add '-DDS' as argument:


ExtractNxgMESH.exe LEGO_CITY_BOXART_NXG.GSC -DDS

You will get all images. But they will be in the same location as the source file (filenamewithoutextention + runningnumber + '.dds') - no ordered directory. And there is no connection to the obj files currently. 

Link to comment
Share on other sites

Thank you for your response but the solution doesn't work.

 

I use the console command:

ExtractNxgMESH.exe HAGRID_NXG.GHG -DDS

 

but there are no dds-files only mesh- and obj-files.

 

Please, can anybody help me?

Link to comment
Share on other sites

  • 4 weeks later...
  • 4 weeks later...
  • 2 weeks later...
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.