How to use Blender (3D Editing)

Patchmaking tutorials for NBA 2K10.

How to use Blender (3D Editing)

Postby JaoSming on Sun Apr 25, 2010 10:02 am

This is a tutorial I have been meaning to write for quite a while now.....

First install Blender
http://www.blender.org

and install Python if needed
http://www.python.org/download/releases/2.6.2/
(that is the version I use)

Then download the 3D tool if you haven't already.
viewtopic.php?f=125&t=70100

Install the Blender scripts into the appropriate folder. Depending on settings you choose in the installer this folder may be in different places.

On Windows, The Blender's Scripts Folder, (.blender/scripts),
will be in either,
C:\Program Files\Blender Foundation\Blender/.blender/scripts (XP &Vista)
or it will be in,
for XP:
C:\Documents and Settings\Brendon\Application Data\\Blender Foundation\Blender\.blender\scripts
For Vista:
C:\Users\Brendon\AppData\Roaming\Blender Foundation\Blender\.blender\scripts
The key here is when you install Blender it asks you if you want to install to Application Data,
As it's the first choice & we're in a hurry & it sounds good, This button often gets pressed.
If you read the other options, you can choose to install Blender in;
C:\Program Files\Blender Foundation\Blender/.blender/scripts,
or a directory of your choice.


Run the 3D tool and pick your iff file that you want to edit. This could be a CF, a stadium, a court, or blacktop courts. Global files and gamedata files work as well (the ball, accessories, ref, cheerleaders etc etc)

Use the following topics to choose the appropriate file....remember to back up original files.
viewtopic.php?f=118&t=69266
viewtopic.php?f=118&t=69264
viewtopic.php?f=118&t=69537

I will be using a court as an example (f005.iff)

With the 3D tool open find the model you want to open

Image


then click Export Res


save the file somewhere and start up Blender

Image

you will see this block and a couple other of objects, we dont want those in there so press "A" to select all and press the "Delete" key to delete these objects.

Image

Click to confirm the delete.


Goto File Menu, Import, then Import N2KM.

Image

Find your exported "Res" file and import it

Image

your screen should look something like this

Image

notice the new thing on the left and right of the screen. The middle section is your viewport, you can zoom in and out with the scroll wheel, the middle button will orbit the view, and panning is done with Shift + Middle Click.

Image

You will notice that you cannot see the entire court, we need to edit the view properties to view it all.

Image

So edit the Clip End value to as high as it will go and you will see the maximum amount the program will allow you to see

Image

Now, similarly to Ebodit or the origina EBO Editor you can select certain parts to edit. This can be done by expanding the NBA2KM menu on the left, or by simply right clicking the part you want to edit in the viewport.

I'm going to remove the charge circle lines.

Image


Now that we have them selected notice that we are in object mode...we can move stuff around in object mode but when we export, it will not save those changes. We need to get into Edit mode. So either click that object mode drop down and switch to edit mode or press TAB.

Image

Now that we are in edit mode, notice that the 3D faces are pink and the vertices are yellow, that means everything is selected right now. Since we dont want to edit the 3pt line and other things selected in this "part" we want to press "A" to deselect all. Once everything is deselected press "B" to select vertices. Select the Charge half circle with the box you create with your left button.

Image

Now, to move/rotate/scale objects we can do different gestures by clicking with the left mouse button and drawing something.

We can draw a straight line to initiate the move command.

We can draw a half circle to initiate the rotate command.

And we can draw a V to initiate the scale command.

http://wiki.blender.org/index.php/Doc:M ... n/Gestures

There are also keyboard shortcuts but I dont know them. I dont want to get shortcuts for this program confused with my work using AutoCAD.

So initiate the move command by drawing a straight line with the left mouse button and letting go of the button.

Image

Now that we are in the move command you can see that you are moving the selected vertices around. Moving them around like this is very imprecise and not ideal for most work. To help with keeping things organized you can lock the axis you are moving on and specifically tell the program how far you want to move the part.

To lock the axis, start moving in the direction you want to move and click the middle button. If you got the wrong Axis try orbiting a bit and middle click again. To move the vertices a specific distance just type in some numbers. Selecting specific axis' and dimensions work for scale and rotate commands as well.

If you mess up, you can press backspace to delete your numbers and you can retype them. Remember that you may have to input a negative value to move in the opposite direction.

Image

When you are finished editing your lines, press TAB to go back into Object Mode. Either right click to select then edit other parts or if you are finished goto File, Export, Export N2KM file. Save it and then go back to the 3D tool.

In the 3D tool, select your model again and on the top click Import Res. Select your N2KM file and then look at it in game. And you're done.


Those are the basics. For those that was TL;DR, tough shit, if you want to learn how to use this program to do 3D editing in 2k10 you need to at least read that.


Shortcuts I know of:

Select All: A
Select Box: B
Select Part for Editing: Right Click Part
Toggle Edit mode: TAB
Move Command: Draw Straight Line with left mouse button
Rotate Command: Draw Semi Circle with left mouse button
Scale Command: Draw V with left mouse button

REMEMBER. Never Delete or Add objects, we have to maintain file sizes.

ALSO. Know that stadiums and blacktop courts may take a while to load in blender. Possibly 10-15 minutes. Blender did not crash, it is just taking it's dear sweet time.
Opinions are my own.

JaoSming
2KTV Producer
NBA 2K Developer
 
Posts: 29904
Joined: Tue Sep 13, 2005 12:45 am
Location: 2K

Re: How to use Blender (3D Editing)

Postby shadowgrin on Sun Apr 25, 2010 11:03 am

Whoa. Cool beans to Jao. (Y)
HE'S USING HYPNOSIS!
JaoSming2KTV wrote:its fun on a bun
shadowgrin
Doesn't negotiate with terrorists. NLSC's Jefferson Davis. The Questioneer
 
Posts: 23230
Joined: Thu Dec 12, 2002 6:21 am
Location: In your mind

Re: How to use Blender (3D Editing)

Postby wiltonborim on Sun Apr 25, 2010 6:01 pm

Nice tutorial!

I'm much more difficulty in editing! Please JaoSming, is how you upload the xxx.n2km the court with the line of FIBA?
wiltonborim
 
Posts: 84
Joined: Sat Aug 11, 2007 8:25 am
Location: Brazil

Re: How to use Blender (3D Editing)

Postby JaoSming on Sun Apr 25, 2010 11:31 pm

it was really simple to do yourself

when moving the lane lines, move the outer free throw line in by a value of 60 (may be positive, may be negative) and once you did all the line work you need to edit the lane wood and rotate the hash marks (rotate by 10 degrees )
Opinions are my own.

JaoSming
2KTV Producer
NBA 2K Developer
 
Posts: 29904
Joined: Tue Sep 13, 2005 12:45 am
Location: 2K

Re: How to use Blender (3D Editing)

Postby gonzoe23 on Sun Apr 25, 2010 11:50 pm

but i dont have N2KM on the list? what should i do or how i get that there? :(
''I don't have to figure out how I'm going to play or anything like that. I just go out and play basketball."
User avatar
gonzoe23
 
Posts: 14
Joined: Sat Mar 20, 2010 6:49 pm

Re: How to use Blender (3D Editing)

Postby JaoSming on Mon Apr 26, 2010 12:08 am

Install the Blender scripts into the appropriate folder. Depending on settings you choose in the installer this folder may be in different places.

On Windows, The Blender's Scripts Folder, (.blender/scripts),
will be in either,
C:\Program Files\Blender Foundation\Blender/.blender/scripts (XP &Vista)
or it will be in,
for XP:
C:\Documents and Settings\Brendon\Application Data\\Blender Foundation\Blender\.blender\scripts
For Vista:
C:\Users\Brendon\AppData\Roaming\Blender Foundation\Blender\.blender\scripts
The key here is when you install Blender it asks you if you want to install to Application Data,
As it's the first choice & we're in a hurry & it sounds good, This button often gets pressed.
If you read the other options, you can choose to install Blender in;
C:\Program Files\Blender Foundation\Blender/.blender/scripts,
or a directory of your choice.
Opinions are my own.

JaoSming
2KTV Producer
NBA 2K Developer
 
Posts: 29904
Joined: Tue Sep 13, 2005 12:45 am
Location: 2K

Re: How to use Blender (3D Editing)

Postby gonzoe23 on Mon Apr 26, 2010 12:24 am

i dont know whats wrong, but i have program files/Blender Foundation/Blender/.blender/scripts but i still dont have N2KV, but my blender black box says, that ,,Checking for installed Python... No installed Phyton found'' but i have downloaded Phyton 31 and its installed on local disc C, maybe blender dont find it or i dont know :D
''I don't have to figure out how I'm going to play or anything like that. I just go out and play basketball."
User avatar
gonzoe23
 
Posts: 14
Joined: Sat Mar 20, 2010 6:49 pm

Re: How to use Blender (3D Editing)

Postby JaoSming on Mon Apr 26, 2010 12:38 am

this is the version of python that I am using

try uninstalling what you have and install this version

http://www.python.org/download/releases/2.6.2/
Opinions are my own.

JaoSming
2KTV Producer
NBA 2K Developer
 
Posts: 29904
Joined: Tue Sep 13, 2005 12:45 am
Location: 2K

Re: How to use Blender (3D Editing)

Postby gonzoe23 on Mon Apr 26, 2010 12:49 am

wait wait, is there somewhere downloadable blenderscripts, like more than you get with installing the program
''I don't have to figure out how I'm going to play or anything like that. I just go out and play basketball."
User avatar
gonzoe23
 
Posts: 14
Joined: Sat Mar 20, 2010 6:49 pm

Re: How to use Blender (3D Editing)

Postby gonzoe23 on Mon Apr 26, 2010 12:52 am

now i got python done, but still i dont have N2KV :D am i stupid and do something wrong :D i really wanna edit cyberfaces :)
''I don't have to figure out how I'm going to play or anything like that. I just go out and play basketball."
User avatar
gonzoe23
 
Posts: 14
Joined: Sat Mar 20, 2010 6:49 pm

Re: How to use Blender (3D Editing)

Postby Angelo on Mon Apr 26, 2010 1:10 am

I hope the tool will work for 64bit systems cuz i also wanted to edit some files
Image
User avatar
Angelo
Holy Tits
NLSC Team Member
 
Posts: 5895
Joined: Fri Nov 03, 2006 1:40 am
Location: Philippines

Re: How to use Blender (3D Editing)

Postby JaoSming on Mon Apr 26, 2010 3:52 am

gonzoe23 wrote:now i got python done, but still i dont have N2KV :D am i stupid and do something wrong :D i really wanna edit cyberfaces :)


i dont know man, make sure the import/export files are in the scripts folder, that is all I can help you with

I'm not very proficient with Blender. I just know basics. There are great Blender communities that help people out if you are having issues with the program.



No idea if it works on 64-bit or not.
Opinions are my own.

JaoSming
2KTV Producer
NBA 2K Developer
 
Posts: 29904
Joined: Tue Sep 13, 2005 12:45 am
Location: 2K

Re: How to use Blender (3D Editing)

Postby gonzoe23 on Mon Apr 26, 2010 5:12 am

yes i finally got it :) thanks bro', now i start doin cf's:P least i trie :D
''I don't have to figure out how I'm going to play or anything like that. I just go out and play basketball."
User avatar
gonzoe23
 
Posts: 14
Joined: Sat Mar 20, 2010 6:49 pm

Re: How to use Blender (3D Editing)

Postby gonzoe23 on Mon Apr 26, 2010 5:34 pm

one question! :? i save what i made, but if i open again what i save, then its same like beginning(without edited)
''I don't have to figure out how I'm going to play or anything like that. I just go out and play basketball."
User avatar
gonzoe23
 
Posts: 14
Joined: Sat Mar 20, 2010 6:49 pm

Re: How to use Blender (3D Editing)

Postby JaoSming on Mon Apr 26, 2010 9:35 pm

you dont want to use the save feature in Blender, you want to export

when you export just rename it something else, and if you want to load it back up, open that file

make sure you click through all of the dialogs that occur when exporting or else it wont export
Opinions are my own.

JaoSming
2KTV Producer
NBA 2K Developer
 
Posts: 29904
Joined: Tue Sep 13, 2005 12:45 am
Location: 2K

Re: How to use Blender (3D Editing)

Postby hokupguy on Wed Apr 28, 2010 1:50 pm

jao good guide and thanks for pming me and leting me know about this. Every time i think i am out of patching i always get pulled back in. :lol: I sent you a new pm regarding this.
Image

youtube channel : https://www.youtube.com/channel/UC9GFV2 ... xyDGKHpF-g

If you enjoy my mod & would like to show your appreciation please donate here:
https://www.paypal.com/cgi-bin/webscr?c ... source=url
User avatar
hokupguy
Blue Print
 
Posts: 1514
Joined: Wed Dec 03, 2003 4:01 pm
Location: orlando,fl

Re: How to use Blender (3D Editing)

Postby 2kNBA on Thu Apr 29, 2010 3:38 pm

Thanks for the guide. Only question I have is how to add 3D goggles to a player.
2kNBA
 
Posts: 42
Joined: Wed Mar 31, 2010 3:29 pm

Re: How to use Blender (3D Editing)

Postby JaoSming on Thu Apr 29, 2010 8:57 pm

I guess you could create glasses with that player's headband.....but I dont know
Opinions are my own.

JaoSming
2KTV Producer
NBA 2K Developer
 
Posts: 29904
Joined: Tue Sep 13, 2005 12:45 am
Location: 2K

Re: How to use Blender (3D Editing)

Postby wiltonborim on Tue May 11, 2010 1:20 pm

For this program is also possible to edit the colors of the court? How?
wiltonborim
 
Posts: 84
Joined: Sat Aug 11, 2007 8:25 am
Location: Brazil

Re: How to use Blender (3D Editing)

Postby JaoSming on Tue May 11, 2010 8:25 pm

nope
Opinions are my own.

JaoSming
2KTV Producer
NBA 2K Developer
 
Posts: 29904
Joined: Tue Sep 13, 2005 12:45 am
Location: 2K

Re: How to use Blender (3D Editing)

Postby wiltonborim on Tue May 11, 2010 9:11 pm

ah.. Tranks, There would be no way to edit the colors in another program? for I've seen issues like this. For example RRP patch in 2002-03, there coults with several different colors of the original game.
wiltonborim
 
Posts: 84
Joined: Sat Aug 11, 2007 8:25 am
Location: Brazil

Re: How to use Blender (3D Editing)

Postby JaoSming on Tue May 11, 2010 9:47 pm

no proper way to edit these yet
Opinions are my own.

JaoSming
2KTV Producer
NBA 2K Developer
 
Posts: 29904
Joined: Tue Sep 13, 2005 12:45 am
Location: 2K

Re: How to use Blender (3D Editing)

Postby wiltonborim on Tue May 11, 2010 11:25 pm

Ok, tranks. i'm sorry !
wiltonborim
 
Posts: 84
Joined: Sat Aug 11, 2007 8:25 am
Location: Brazil

Re: How to use Blender (3D Editing)

Postby bayog123 on Tue May 18, 2010 2:36 am

Theres no n2km in the Import List pls help me (Y) (Y)
User avatar
bayog123
 
Posts: 72
Joined: Tue May 04, 2010 12:11 pm

Re: How to use Blender (3D Editing)

Postby JaoSming on Tue May 18, 2010 5:50 am

make sure you've installed the py files to the correct scripts directory, it depends on how you installed python/blender
JaoSming
2KTV Producer
NBA 2K Developer
 
Posts: 29904
Joined: Tue Sep 13, 2005 12:45 am
Location: 2K

Next

Return to NBA 2K10 Tutorials & FAQs

Who is online

Users browsing this forum: No registered users and 0 guests