Sluicer

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

Recommended Posts

Sluicer

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

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites
Sluicer
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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
Sluicer

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
Sluicer

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

Share this post


Link to post
Share on other sites
MilkPls

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

Share this post


Link to post
Share on other sites
Sluicer
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

Share this post


Link to post
Share on other sites
Hayatory

Would this tools work for the lego jurassic world game? 

 

EDIT: I just ended up going to ninjaripper with it 

Share this post


Link to post
Share on other sites
Rorybabory

This comes up with an errror saying no argument handed over error.

Im using windows 10

Share this post


Link to post
Share on other sites
oliacym

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!

Share this post


Link to post
Share on other sites
Sluicer
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.

Share this post


Link to post
Share on other sites
oliacym
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 😀

Share this post


Link to post
Share on other sites
Sluicer
10 hours ago, vipmedy2 said:

I upload the file to another site

https://ufile.io/8ce5s

it is a ghg file of “lego the incredibles”

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.

  • Like 1

Share this post


Link to post
Share on other sites
vipmedy2
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 !

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now