[Tutorial] Court Colors & Shading - Custom RGB Colors!

Patchmaking tutorials for NBA 2K16.

[Tutorial] Court Colors & Shading - Custom RGB Colors!

Postby maumau78 on Tue Nov 24, 2015 12:03 am

1. INTRODUCTION

DISCLAIMER: I'm not a court maker or an artist....I just look inside floor files to check if it would be possible to edit them....so my research is focused to allow great NLSC court maker to create beautiful floor/court

This tutorial will allow you to recreate Madison Square Garden Floor with correct colors & logo (like Chase logo on the side)..this method is really really similar to what we had in 2k11-2k14, AFIK we can't still use a single texture...we need 3D Editor by Greg for this.....

***** I'm not taken any floor mod request that's not my JOB! Don't PM me on this or ask for requests *****

2. PREPARATION
I think Bulls floor is good as a base.....It has all the logos.....but parquet & outside color is wrong (red) while I like dark blue like current Knicks.....so what we can do?

Image

Well 06 mavs paint & outside color is near perfect.....so I did also extract that file:

- f003.iff (bulls default)
- f623.iff (06 mavs floor)
- f014.iff (knicks logos)

I will also need knicks floor file for Knicks logos.....so we need to extract this file too.....

3. IFF FLOOR FILES
Uncompress the fxxx.iff file using 7-zip so you'll get 3 folders:

- f003
- f623
- f014

Image


Now f003 will be our "base" floor....we'll mostly edit only files inside this folder. Every floor is composed by many files but we can find 3 main file types:

- Textures
- Shaders
- Scene Descriptor
- 3d model of the floor


4. SCNE FILES

First file you want to look at is floor.SCNE inside f003 folder....this is the floor scene descriptor...go down at the end of the file "Model" section:

Image

"apron_withlogo": {
"Mesh": "_Floor_floor_geoShape",
"Type": "TRIANGLE_LIST",
"Count": 438
}
"color": {
"Count": 393
},

""apron"" is actually the out parquet outside the floor...while "color" is the parquet paint area color.....and so on here you have all the objects that must have also a 3d object in the model file...but don't worry about this by now ^__^

Now every Model has a material and every material is rendered with a shader...remember:

Model->Material->Pixel Shader

In few words 2K stores color in the pixel shaders...but If we can change the Pixel Shader a Model is using we'll get a different color. So the Mavs 06 floor has somewhat the same "apron" model but with different Pixel Shader....why not just use Mavs pixel shader? In that way we'll get "Blue" color instead of "Red" color of the bulls floor.

Now let's see how we can achieve this....search for "apron_withlogo" inside Bulls .SCNE

Image

Then look for "floor.fx#28" .....you'll get to Shader Header section.....you'll have many section here:

- Default ("Main Game Shading")
- ProjectTexture ("Presentation Shading")
- ProjectMovie ("Presentation Shading")
- StoryScene ("Presentation Shading")
- StorySceneHard ("Presentation Shading")
- OnlyDepth ("Don't Know")
- Simple ("Don't Know")

Image

Each section is related to a game moment......just focus on "Main game Shading"...."Default"....and remeber we only care about ps=pixel shader...we won't care about vs=vertex shader..............Pixel shader control colour...vertex shader control geometry (basically):

"PS": {
"Binary": "ps.6f0bbff8063922d5.shader"

This pixel shader control the color which is "Red" for Bulls....but If you go inside Mavs 06 floor files a different Pixel Shader is used to get "Dark Blue" color....I'm sure you already got the solution:

- You go inside Mavs 06 folder
- You look at the same "Apron" model in the mavs floor .SCNE file
- You look at the material and floor.fx used
- You look at what pixel shader it uses....then it copy the file into f003 folder and you change the reference to this new Pixel Shader into bulls SCNE File

Here you can find some pictures of the Mavs .SCNE file structure...again this should be not so difficult to understand:

Image

Image

Image

"PS": {
"Binary": "ps.c7caca75e97b3326.shader",


Now you save the new file to create the file to be usable ingame....you just select all the files inside the f003 folder and create a LZMA .zip file using 7-zip with Ultra compression....then you rename it as f014.iff
Put this file into modded folder of your NBA2k16 and start the game....outside floor color will be now "Dark Blue" and not "Red"

5. OTHER FLOOR "MODELS"
There are many other "Models" that you can just edit like paint colors and line colors.....models I've found are:

"apron" = color outside of the floor
"color" = paint color #1
"color1" = paint color #2 (for Floors with 2 colors paint)
"lines" = variuos floor lines like 2pt 3pt etc etc
"Floorwood" = main parquet
"Floorwood1" = second parquet color (like Minnesota i suppose)


The process is the same as described above....I was able to change paint color without any problem....

6. TEXTURES
Self explanatory......bascially bulls logo and textures must be replaced with Knicks textures and logos...more on this later
For "hide" some textures like 4 bulls logo near the paint just play a bit with alpha channel....you can hide them ^_^



7. CHANGE COLORS TO RGB INSTEAD OF REPLACING FROM ANOTHER FLOOR
Unfortunately .shader are checksummed so it's not possible to edit and put custom colors in :-(


FINAL RESULT
Image
Last edited by maumau78 on Thu Nov 26, 2015 8:41 am, edited 22 times in total.
This topic was moved from NBA 2K16 Modding by Andrew on Thu Nov 26, 2015 8:21 am.
"I open at the close"

Dumbledore

You like my works? Support me! Donations Link Below:
https://paypal.me/maumau78mods
https://twitter.com/MauroAnceschi
https://www.youtube.com/user/anceschmau78/videos
User avatar
maumau78
Contributor
Contributor
 
Posts: 3211
Joined: Mon Nov 01, 2010 6:26 pm
Location: Italy

Re: [Tutorial]Court Colors & shading In progress...

Postby maumau78 on Tue Nov 24, 2015 12:03 am

I'm updating the first post tutorial...be patient....

EDIT: Basic Tutorial created... example files later today....
"I open at the close"

Dumbledore

You like my works? Support me! Donations Link Below:
https://paypal.me/maumau78mods
https://twitter.com/MauroAnceschi
https://www.youtube.com/user/anceschmau78/videos
User avatar
maumau78
Contributor
Contributor
 
Posts: 3211
Joined: Mon Nov 01, 2010 6:26 pm
Location: Italy

Re: [Tutorial] Court Colors & Shading

Postby TBM on Tue Nov 24, 2015 1:05 am

To add to this, me and Mauro found out that by replacing the empty 0kb files inside of the iffs (like parquets) with actual DXT1 DDS files, that it uses that instead of the /shared file that it references.

Happy modding. (Y)
Image
User avatar
TBM
Contributor
Contributor
 
Posts: 3654
Joined: Mon Dec 16, 2013 7:33 am

Re: [Tutorial] Court Colors & Shading

Postby seanbarkley on Tue Nov 24, 2015 1:35 am

Impressive work Mauro!!! :crazyeyes: :applaud: :bowdown:
If you like my work I appreciate any help: https://www.paypal.me/s3anbarkl3y
User avatar
seanbarkley
 
Posts: 727
Joined: Tue Sep 23, 2008 8:10 pm
Location: SCQ. Spain

Re: [Tutorial] Court Colors & Shading - Sample File Released!

Postby maumau78 on Tue Nov 24, 2015 6:57 am

Image

Image

Image


Sample MSG file released!

http://www.mediafire.com/download/mt589 ... 7/f014.iff

Please feel free to use that as base and create a wonderful MSG ^_^
I didn't edit the floor...just floor structure file
"I open at the close"

Dumbledore

You like my works? Support me! Donations Link Below:
https://paypal.me/maumau78mods
https://twitter.com/MauroAnceschi
https://www.youtube.com/user/anceschmau78/videos
User avatar
maumau78
Contributor
Contributor
 
Posts: 3211
Joined: Mon Nov 01, 2010 6:26 pm
Location: Italy

Re: [Tutorial] Court Colors & Shading - Sample File Available

Postby maumau78 on Wed Nov 25, 2015 8:19 am

7. CHANGE COLORS TO RGB INSTEAD OF REPLACING FROM ANOTHER FLOOR
Unfortunately .shader are checksummed so it's not possible to edit and put custom colors in :-(


UPDATED FIRST POST...SEEMS NOT POSSIBLE TO HAVE CUSTOM COLORS :-(
"I open at the close"

Dumbledore

You like my works? Support me! Donations Link Below:
https://paypal.me/maumau78mods
https://twitter.com/MauroAnceschi
https://www.youtube.com/user/anceschmau78/videos
User avatar
maumau78
Contributor
Contributor
 
Posts: 3211
Joined: Mon Nov 01, 2010 6:26 pm
Location: Italy

Re: [Tutorial] Court Colors & Shading - Sample File Available

Postby maumau78 on Thu Nov 26, 2015 8:38 am

Image

IMPORTANT UPDATE

Custom Colors Are Possible ^_^

I've managed to compute the correct .shader checksum using some Unity3D Engineer's code....

Using TBM floor we've managed to put custom paint and apron colors.....

I will release a tool that will help you adjust RGB into shaders..stay tuned
"I open at the close"

Dumbledore

You like my works? Support me! Donations Link Below:
https://paypal.me/maumau78mods
https://twitter.com/MauroAnceschi
https://www.youtube.com/user/anceschmau78/videos
User avatar
maumau78
Contributor
Contributor
 
Posts: 3211
Joined: Mon Nov 01, 2010 6:26 pm
Location: Italy

Re: [Tutorial] Court Colors & Shading - Custom RGB Colors!

Postby Kevin on Fri Nov 27, 2015 10:59 pm

YAAAAAS!
Rest In Peace Kobe
User avatar
Kevin
Fuck the Celtics
 
Posts: 8041
Joined: Sat Nov 16, 2013 9:47 pm
Location: Staples

Re: [Tutorial] Court Colors & Shading - Custom RGB Colors!

Postby ZeusRR on Wed Dec 02, 2015 12:01 pm

PLEASE HOT TO FIX THIS ERROR ? :(

Image
User avatar
ZeusRR
 
Posts: 171
Joined: Wed Oct 07, 2015 7:55 am

Re: [Tutorial] Court Colors & Shading - Custom RGB Colors!

Postby rayki0924 on Thu Dec 03, 2015 2:42 pm

is it a way that can mod the color of other teams' floor? i want to change the color of lakers' paint area to blue and how can i do it? :|
my english is poor. :bowdown2:
rayki0924
 
Posts: 7
Joined: Thu Dec 03, 2015 2:31 pm

Re: [Tutorial] Court Colors & Shading - Custom RGB Colors!

Postby maumau78 on Fri Dec 04, 2015 11:27 pm

ZeusRR wrote:PLEASE HOT TO FIX THIS ERROR ? :(

[ Image ]

You need to edit all the logo and stadium shader...look for them into .SCNE file

BTW I like your blue!
Can you post what RGB are you using?
Last edited by maumau78 on Sat Dec 05, 2015 12:13 am, edited 1 time in total.
"I open at the close"

Dumbledore

You like my works? Support me! Donations Link Below:
https://paypal.me/maumau78mods
https://twitter.com/MauroAnceschi
https://www.youtube.com/user/anceschmau78/videos
User avatar
maumau78
Contributor
Contributor
 
Posts: 3211
Joined: Mon Nov 01, 2010 6:26 pm
Location: Italy

Re: [Tutorial] Court Colors & Shading - Custom RGB Colors!

Postby maumau78 on Fri Dec 04, 2015 11:27 pm

rayki0924 wrote:is it a way that can mod the color of other teams' floor? i want to change the color of lakers' paint area to blue and how can i do it? :|
my english is poor. :bowdown2:


just look for the tutorial...you need to edit "color" material shader
"I open at the close"

Dumbledore

You like my works? Support me! Donations Link Below:
https://paypal.me/maumau78mods
https://twitter.com/MauroAnceschi
https://www.youtube.com/user/anceschmau78/videos
User avatar
maumau78
Contributor
Contributor
 
Posts: 3211
Joined: Mon Nov 01, 2010 6:26 pm
Location: Italy

Re: [Tutorial] Court Colors & Shading - Custom RGB Colors!

Postby rayki0924 on Sat Dec 05, 2015 1:18 am

maumau78 wrote:
rayki0924 wrote:is it a way that can mod the color of other teams' floor? i want to change the color of lakers' paint area to blue and how can i do it? :|
my english is poor. :bowdown2:


just look for the tutorial...you need to edit "color" material shader

thank u very much.i use 01lakers blue and it looks good, (Y) (Y) but i think if i can use custom's color it could be much better,but i can't use the tools you provide,it can't be enabled.
rayki0924
 
Posts: 7
Joined: Thu Dec 03, 2015 2:31 pm

Re: [Tutorial] Court Colors & Shading - Custom RGB Colors!

Postby TBM on Sat Dec 05, 2015 2:34 am

rayki0924 wrote:
maumau78 wrote:
rayki0924 wrote:is it a way that can mod the color of other teams' floor? i want to change the color of lakers' paint area to blue and how can i do it? :|
my english is poor. :bowdown2:


just look for the tutorial...you need to edit "color" material shader

thank u very much.i use 01lakers blue and it looks good, (Y) (Y) but i think if i can use custom's color it could be much better,but i can't use the tools you provide,it can't be enabled.


What?
Image
User avatar
TBM
Contributor
Contributor
 
Posts: 3654
Joined: Mon Dec 16, 2013 7:33 am

Re: [Tutorial] Court Colors & Shading - Custom RGB Colors!

Postby rayki0924 on Sat Dec 05, 2015 3:30 am

TBM wrote:
rayki0924 wrote:
maumau78 wrote:
rayki0924 wrote:is it a way that can mod the color of other teams' floor? i want to change the color of lakers' paint area to blue and how can i do it? :|
my english is poor. :bowdown2:


just look for the tutorial...you need to edit "color" material shader

thank u very much.i use 01lakers blue and it looks good, (Y) (Y) but i think if i can use custom's color it could be much better,but i can't use the tools you provide,it can't be enabled.


What?

sorry,my english is so poor... i means that i want to learn how to put custom's color in ,and i can't use the tool "SHADER EDITOR "because it can not be runned on my computer. i use win10
rayki0924
 
Posts: 7
Joined: Thu Dec 03, 2015 2:31 pm

Re: [Tutorial] Court Colors & Shading - Custom RGB Colors!

Postby TBM on Sat Dec 05, 2015 6:20 am

Why can't you run it?
Image
User avatar
TBM
Contributor
Contributor
 
Posts: 3654
Joined: Mon Dec 16, 2013 7:33 am

Re: [Tutorial] Court Colors & Shading - Custom RGB Colors!

Postby rayki0924 on Sun Dec 06, 2015 1:10 am

TBM wrote:Why can't you run it?
QQ截图20151205230739.png

just like this.
You do not have the required permissions to view the files attached to this post.
rayki0924
 
Posts: 7
Joined: Thu Dec 03, 2015 2:31 pm

Re: [Tutorial] Court Colors & Shading - Custom RGB Colors!

Postby TBM on Sun Dec 06, 2015 3:34 am

You're doing it wrong...
Image
User avatar
TBM
Contributor
Contributor
 
Posts: 3654
Joined: Mon Dec 16, 2013 7:33 am

Re: [Tutorial] Court Colors & Shading - Custom RGB Colors!

Postby rayki0924 on Sun Dec 06, 2015 3:35 am

TBM wrote:You're doing it wrong...

why?
rayki0924
 
Posts: 7
Joined: Thu Dec 03, 2015 2:31 pm

Re: [Tutorial] Court Colors & Shading - Custom RGB Colors!

Postby maumau78 on Sun Dec 06, 2015 3:37 am

rayki0924 wrote:
TBM wrote:You're doing it wrong...

why?


you're not providing a command line parameter or you're not "dragging" a shader file into .exe
"I open at the close"

Dumbledore

You like my works? Support me! Donations Link Below:
https://paypal.me/maumau78mods
https://twitter.com/MauroAnceschi
https://www.youtube.com/user/anceschmau78/videos
User avatar
maumau78
Contributor
Contributor
 
Posts: 3211
Joined: Mon Nov 01, 2010 6:26 pm
Location: Italy

Re: [Tutorial] Court Colors & Shading - Custom RGB Colors!

Postby rayki0924 on Sun Dec 06, 2015 3:43 am

maumau78 wrote:
rayki0924 wrote:
TBM wrote:You're doing it wrong...

why?


you're not providing a command line parameter or you're not "dragging" a shader file into .exe

omg,thank you very much.. (Y)
rayki0924
 
Posts: 7
Joined: Thu Dec 03, 2015 2:31 pm

Re: [Tutorial] Court Colors & Shading - Custom RGB Colors!

Postby maumau78 on Sun Dec 06, 2015 3:46 am

rayki0924 wrote:
maumau78 wrote:
rayki0924 wrote:
TBM wrote:You're doing it wrong...

why?


you're not providing a command line parameter or you're not "dragging" a shader file into .exe

omg,thank you very much.. (Y)


You can simply "drag" .shader with the mouse over .exe file
"I open at the close"

Dumbledore

You like my works? Support me! Donations Link Below:
https://paypal.me/maumau78mods
https://twitter.com/MauroAnceschi
https://www.youtube.com/user/anceschmau78/videos
User avatar
maumau78
Contributor
Contributor
 
Posts: 3211
Joined: Mon Nov 01, 2010 6:26 pm
Location: Italy

Re: [Tutorial] Court Colors & Shading - Custom RGB Colors!

Postby Lagoa on Thu Dec 17, 2015 8:21 am

My problem here Maumau:

Image
FOLLOW ME ON INSTAGRAM and TWITTER @lagoanba

Please consider making a donation of any value if you like my work! :D

https://www.paypal.com/cgi-bin/webscr?c ... source=url
User avatar
Lagoa
 
Posts: 2820
Joined: Tue Dec 17, 2002 11:05 pm
Location: São Paulo, Brasil

Re: [Tutorial] Court Colors & Shading - Custom RGB Colors!

Postby maumau78 on Thu Dec 17, 2015 8:34 am

#1 you should copy the .sahder into SHXEDITOR folder

#2 param should 1.0 not 255

Cheers
"I open at the close"

Dumbledore

You like my works? Support me! Donations Link Below:
https://paypal.me/maumau78mods
https://twitter.com/MauroAnceschi
https://www.youtube.com/user/anceschmau78/videos
User avatar
maumau78
Contributor
Contributor
 
Posts: 3211
Joined: Mon Nov 01, 2010 6:26 pm
Location: Italy

Re: [Tutorial] Court Colors & Shading - Custom RGB Colors!

Postby Dee4Three on Tue May 24, 2016 11:47 pm

I saw Lagoa post that it was easy to convert NBA 2k14 courts to NBA 2k16 (he showed a late 90's cavs court as an example). Does anybody know how to do this? I don't mind putting a little work into it, I asked Lagoa awhile back and he never got back to me.

Thanks..
"I don't know if I practiced more than anybody, but I sure practiced enough. I still wonder if somebody - somewhere - was practicing more than me." - Larry Bird

Check out my YouTube channel

https://www.youtube.com/channel/UCvHJXrqit8Dc6HBY5P6EmAA


Follow me on Twitter

https://twitter.com/Dee4Three84
User avatar
Dee4Three
NLSC Team Member
NLSC Team Member
 
Posts: 9673
Joined: Sun Mar 30, 2014 12:34 pm
Location: New Hampshire, USA

Next

Return to NBA 2K16 Tutorials & FAQs

Who is online

Users browsing this forum: No registered users and 0 guests