The rules have been updated, read them now: Rules!

Cyberpunk 2077 Noesis script

Post questions about game models here, or help out others!
User avatar
Joschka
mega-veteran
mega-veteran
Posts: 177
Joined: Fri Aug 09, 2019 3:51 pm
Has thanked: 41 times
Been thanked: 272 times

Cyberpunk 2077 Noesis script

Post by Joschka » Sun Dec 13, 2020 10:16 pm

Akderebur and I worked together to make a Noesis script for that game. It works on the .mesh files extracted by rfuzzo's CP77 Tools https://github.com/rfuzzo/CP77Tools

Supported:
-positions (vertices scaled correctly), UVs, normals, bone indices, bone weights, bones and bone names.

06/02/2021 EDIT : Big thanks to alphaZ, who added a lot of features to our original quick and dirty script. You can download his much more complete and actively maintained version of the script here : viewtopic.php?f=16&t=23162&start=30#p171144

Credits:
-akderebur and I for researching the format and writing the original script
-alphaZ for doing additional research and improving our original release
-rfuzzo for the CP77Tools
-SurprisedMango, Divined, Yoratoni, ZeRoY, Banishingshift for some help for the tests
Last edited by Joschka on Sat Feb 06, 2021 10:31 am, edited 6 times in total.

ubern00bkye
ultra-n00b
Posts: 1
Joined: Mon Nov 23, 2020 10:51 pm
Been thanked: 1 time

Re: Cyberpunk 2077 Noesis script

Post by ubern00bkye » Mon Dec 14, 2020 9:19 pm

THANK YOU SO MUCH!! you're amazing!

JimmyJ
beginner
Posts: 23
Joined: Wed Dec 21, 2011 1:54 am
Has thanked: 11 times
Been thanked: 3 times

Re: Cyberpunk 2077 Noesis script

Post by JimmyJ » Tue Dec 15, 2020 8:35 am

Awesome job and big reaspect!!!

User avatar
Joschka
mega-veteran
mega-veteran
Posts: 177
Joined: Fri Aug 09, 2019 3:51 pm
Has thanked: 41 times
Been thanked: 272 times

Re: Cyberpunk 2077 Noesis script

Post by Joschka » Tue Dec 15, 2020 2:17 pm

Script updated to version 1.1

-Normal support added. Apparently we had them correct in the first place, so people curious enough to uncomment lines 327 to 330 had them already, the Noesis aspect seemed weird but the square norm is always 1 and they make sense on simple meshes so I guess they're right... Thanks to HitmanHimself for the help to confirm the format. If you prefer the old normals, put the "bComputeNormals" option to False at the top.
-LOD filtering added, the script will ignore the low poly version of the submeshes now. If you want them, put the "bHighestLODOnly" option at the top to False
-Better error handling, instead of crashing the script will print something in the console. 95% of the errors come from the wrong buffer file being grabbed so if you have an issue try to rename both the .mesh and the .buffer file

If other people are interested in the game feel free to use the code and update the script/make better tools for that game as I won't update it anymore.

Hope that helps.

zeroy
ultra-n00b
Posts: 9
Joined: Wed Feb 03, 2010 11:08 am
Has thanked: 6 times
Been thanked: 1 time

Re: Cyberpunk 2077 Noesis script

Post by zeroy » Tue Dec 15, 2020 3:20 pm

Thanks for your work on this!

Yerba2033
ultra-n00b
Posts: 1
Joined: Tue Dec 15, 2020 5:10 pm

Re: Cyberpunk 2077 Noesis script

Post by Yerba2033 » Tue Dec 15, 2020 5:12 pm

Are you guys able to export the meshes from the game? I would love to get my hands on the guns and some of the modeled cybernetics and 3d print them.

User avatar
Kaem
beginner
Posts: 24
Joined: Tue May 22, 2012 10:28 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Cyberpunk 2077 Noesis script

Post by Kaem » Tue Dec 15, 2020 8:14 pm

Ok, I make the question no problem.

How much impossible will be export animations? No GTA 5 animations. No CP2077? :(

User avatar
Joschka
mega-veteran
mega-veteran
Posts: 177
Joined: Fri Aug 09, 2019 3:51 pm
Has thanked: 41 times
Been thanked: 272 times

Re: Cyberpunk 2077 Noesis script

Post by Joschka » Thu Dec 17, 2020 2:09 am

Yeah I know, I said it was the last update but oh well...

Script updated to version 1.2, full skeleton support
Image

Skeleton information is located in .rig files, if you put the option to load it at the top (put by default) you'll be asked to choose a .rig file. If the one you chose is not compatible, it'll ask for another. If you chose the right one it'll load the associated rig.

barnett2010
ultra-n00b
Posts: 1
Joined: Fri Oct 23, 2020 3:58 pm

Re: Cyberpunk 2077 Noesis script

Post by barnett2010 » Thu Dec 17, 2020 7:47 am

Image

Unable to open mesh

User avatar
Joschka
mega-veteran
mega-veteran
Posts: 177
Joined: Fri Aug 09, 2019 3:51 pm
Has thanked: 41 times
Been thanked: 272 times

Re: Cyberpunk 2077 Noesis script

Post by Joschka » Thu Dec 17, 2020 9:54 pm

So I've been told that some meshes used several .rig files, as a result the script was rejecting some valid rig files as they didn't have all the bone information.
This is not an issue I can solve elegantly as :
-I can't use a hardcoded bone-parent list, some bones have different parents depending on the model
-I can't check easily if the rig is indeed compatible with the mesh as only a subset of the mesh bones info may contained in the .rig, the rest being in another one.

The only way to have a clean full skeleton would be to reverse how the game knows which .rig files to use, considering parenting can easily be fixed I only introduced a new option to deal with this.

Script updated to version 1.2.1

New option : bLoadSeveralRigFiles. This is how it works, you'll be prompted to choose .rig files until:
-all the bones will have parenting info parsed
-you press cancel
After selecting a .rig file at each stage, it will be parsed and the console output will show you the names of the bones left without parents, this will give you an idea of a possible other .rig file to grab to feed the ones missing.
If the parent is not in the original mesh however the bones will result unparented so that option needs to be used only if the first one failed.

In addition to that, I included a .txt file with the bone names on the left and all its possible parents on the right (this file was generated from all the .rig files), this will be helpful if you want to finish the job by hand.
barnett2010 wrote:
Thu Dec 17, 2020 7:47 am
Unable to open mesh


That error means that the .buffer wasn't find, your extraction is not correct. If not I can't help you sorry, I'm done with that game for now.

issacsingtong
ultra-n00b
Posts: 1
Joined: Sat Dec 19, 2020 2:16 pm

Re: Cyberpunk 2077 Noesis script

Post by issacsingtong » Sat Dec 19, 2020 2:17 pm

THANK YOU SO MUCH!! you're amazing!

sydie
n00b
Posts: 10
Joined: Tue Nov 29, 2016 11:45 pm
Has thanked: 14 times
Been thanked: 6 times

Re: Cyberpunk 2077 Noesis script

Post by sydie » Tue Dec 22, 2020 10:36 am

First of all - thank you Joschka and akderebur !!!
I understand that you don't want to continue updating the script, but I'm just giving an idea here - maybe we can give the morph targets some love.
This is basically the character customization.
All of the facial features you get when you start the game.
As far as I understand they're stored here:
basegame_4_gamedata\base\characters\head\player_base_heads\player_female_average\
in these .morphtarget files.
Usually morph targets are just vertex positions, there should be no faces, uvs or other bullcrap.
Maybe it's possible to load them the same way the .rig files are loaded in fmt_mesh 1.2.1 with that additional file loader.

Sample:
https://www.dropbox.com/s/5md26ojsvnjmp ... e.zip?dl=0

Anyway, we can also wait for the mod tools :)

mrfaceman
ultra-n00b
Posts: 1
Joined: Wed Dec 23, 2020 9:22 am

Re: Cyberpunk 2077 Noesis script

Post by mrfaceman » Wed Dec 23, 2020 9:23 am

Awesome, thank you!!!

CharlieV
n00b
Posts: 11
Joined: Mon Dec 30, 2019 10:29 am
Been thanked: 1 time

Re: Cyberpunk 2077 Noesis script

Post by CharlieV » Fri Dec 25, 2020 12:53 pm

Really hoping someone can pick up the torch and continue work on this so that we can get intact UV's on exported models, or that something else comes along. Tried multiple weapons in multiple formats, the UV's are either dead (blank) or messed up depending on which format, don't match the textures at all (I'm not talking about being flipped).

JBolt97
ultra-n00b
Posts: 2
Joined: Wed Dec 30, 2020 3:08 am

Re: Cyberpunk 2077 Noesis script

Post by JBolt97 » Wed Dec 30, 2020 11:46 pm

Hi guys, I'm new here and new to this modeling stuff. I don't know where I would go with this question, but when I load up Noesis, and click a character, it shows a grey character (much like a PS2 character looks without texture) and like the title says, there's no texture on the character. Like no clothing, hair, just straight up grey character. Anyone know how to do get them?

Post Reply