PDA

View Full Version : New model tool


cchargin
07-03-2004, 12:49 AM
Hello everyone,

Well, it has been a while since I have released anything.

Introducing mdlops v0.1, this script incorporates the functions of my extract and import scripts into 1 script.

New stuff:
-Import and export functions in 1 place!
-Limited skin mesh capability (yes, this means new armors) READ THE README FILE!
-Dangly mesh capability (could mean flowing capes?)
-Shadows (no, not the ones from Za'HaDum)
-Auto detects if source file is binary or ascii
-Data viewer, lets you view the raw data of a binary model. For everyone but me this will be boring. ;)

Stuff that still does not work:
-Animations
-Emitters
-Placeables
-Lightsabers

I highly recommend that you get the newest NWMax 0.7, it has MUCH faster skin mesh importing.

There is MUCH important information in the readme and the tutorial that comes with mdlops. Please read BOTH completely before trying it out. Then you can tell me what I forgot to put in the readme and tutorial. :)

oh yeah, the link:
http://home.comcast.net/~cchargin/kotor/index.html

TemporaryTomato
07-03-2004, 01:17 AM
Yay! Now, if I just could learn to model...

:emodanc:

mgnails
07-03-2004, 01:18 AM
Good job!

RedHawke
07-03-2004, 01:36 AM
Originally posted by cchargin
-Dangly mesh capability (could mean flowing capes?)

Could the day be upon us? Revans Cape unstarched! :eek:

Originally posted by cchargin
-Shadows (no, not the ones from Za'HaDum)

Damn! :D

And Cchargin all I have to say is :drop2:

I mean... WOW!!! :D

Impressive... Most Impressive!

svösh
07-03-2004, 01:47 AM
Cchargin You freek’n rock man :guitar2

3 cheers for cchargin :band1 :guitar1 cant wait to try it out

I’m just knocking the dust off my modeling skills, time to try my hand at some Dangly mesh :thmbup1:

svösh

T7nowhere
07-03-2004, 01:59 AM
Originally posted by svösh
Cchargin You freek’n rock man :guitar2

3 cheers for cchargin :band1 :guitar1 cant wait to try it out

I’m just knocking the dust off my modeling skills, time to try my hand at some Dangly mesh :thmbup1:

svösh

I second that. great work cchargin, Now I'll have to double My modeling efforts.

Jackel
07-03-2004, 02:49 AM
-Shadows (no, not the ones from Za'HaDum)

You never know , someone might just make an armour that makes you look like a Shadow :D

messkell
07-03-2004, 03:42 AM
Exceptional progress as usual, thanks cchargin!! :) :)

Mav
07-03-2004, 05:17 AM
ALL HAIL cchargin

all I can say is that thanks to you pretty soon we will see many great new mods.

I’m just knocking the dust off my modeling skills, time to try my hand at some Dangly mesh

I can't wait to see what you come up with svösh

Darth333
07-03-2004, 10:56 AM
Originally posted by svösh
Cchargin You freek’n rock man :guitar2

3 cheers for cchargin :band1 :guitar1 cant wait to try it out

I’m just knocking the dust off my modeling skills, time to try my hand at some Dangly mesh :thmbup1:

svösh

Originally posted by T7Nowhere
I second that. great work cchargin, Now I'll have to double My modeling efforts.
Motion carried :D Wish I had more time to learn and try all this new stuff!

Lorden Darkblade
07-03-2004, 01:58 PM
Cant wait to see a Revan cape not being disgraced by dry-wash :p
I'm waiting svösh :D
Does that mean that his hood could be animated too?

Mono_Giganto
07-03-2004, 06:52 PM
Hope so that's the biggest bug in the mod I released! :D

StormTrooper789
07-04-2004, 12:17 PM
I can't download GMax, that free modelling program, for the link to download does not work. When I download it says "400KB out of ????". Anybody know a mirror location?

cchargin
07-06-2004, 12:11 AM
Hello all,

I have added a "hosting and copying" section to the mdlops readme. Basically, it allows anyone who downloads mdlops to host it from their website or submit it to public download sites. There are some restrictions, so read the readme.

There is no version change since no code was changed. Download mdlops from the link at the top of this thread to get the version with the new readme.

I did this 'cuz I have seen some threads about mod creators dissappearing and no one can ask them about redistributing their mods.

Prime
07-06-2004, 01:28 PM
Fantastic work, cchargin. The commmunity owes you big time. :)

Seprithro
07-08-2004, 12:56 AM
quick question.... using this, could i extract a model like bastila, edit it's apperance in 3ds max, and get the edited version back in the game working?

cchargin
07-08-2004, 01:26 AM
hello all,

quick question.... using this, could i extract a model like bastila, edit it's apperance in 3ds max, and get the edited version back in the game working?
Quick answer, yes.

But of course this really requires a longer answer which is:

Yes, BUT you can only edit bodies right now. Since bodies have no animations (they inherit animations from some parent models) they should work. Heads have animations (darn it!), so they can't be imported yet.

You should be able to modify underwear models, armor models, robe models, etc.. for the party characters.

The quick way to check if a model has animations is to convert it to ascii with mdlops then open the ascii model file with notepad and search for:

newanim

If you find it then importing back into kotor won't work.

I just wanted to say again that I was not able to really test the skin mesh stuff since I don't have any 3D modelling skills. But I was able to take a body convert it to ascii then back into binary and load it into kotor.

Weiser_Cain
07-08-2004, 03:05 AM
I've got a question. Can I just send my model to someone that has gotten a new body into the game? This is still a little to convoluted for my feeble artist brain.

cchargin
07-18-2004, 03:56 AM
Hello all,

mdlops version 0.2 is available at:
http://home.comcast.net/~cchargin/kotor/index.html

New feature: now calculates vertex normals.

This was not as hard as I was expecting! Most of the work was done when I calculated the face normals. For the vertex normals you pretty much just add the face normals together then normalize. Man, this should have been in the first release!

So, jrc24 let me know how it works! ;)

Doom_Dealer
07-18-2004, 08:46 AM
OK im going to show my complete lack of knowledge towards modelling and ask:
what exatly are vertex normals and what do they do?

cchargin
07-18-2004, 03:39 PM
Hello,

what exatly are vertex normals and what do they do?

Think of a field of grass. As the wind blows you see patterns and waves as the blades of grass move. But you know that the ground beneath the grass is not moving.

Vertex normals are the blades of grass at the vertices (i.e. corners) of a triangle in a 3D model. Even though the triangle and the vertices don't move, you can adjust the vertex normals to make it look like they are moving.

Vertex normals are important for making smooth looking curves in a 3D model. They are also important for vertex shaders like shiny metal or reflective glass.

With clever use of vertex normals you can make a completely flat surface look bumpy without actually modelling the bumps!

Each triangle in a mesh has a "face normal" this is calculated from the 3 points of the triangle. It tells you which way the triangle is facing. Take a pencil and stand it on end in the exact middle of a flat surface, that is your face normal.

A vertex normal is calculated from the face normals of the triangles it is a part of. Take some pencils stand them on end on the corners of a flat surface. Now bend that surface. The pencils represent the vertex normals.

For some pictures, and too much math:
http://www.prism.gatech.edu/~gte133q/cs4451/xc/TutorialExamples.html

Seprithro
07-18-2004, 03:47 PM
hey cchargin, another question, will this fix the little problem svösh and I had? (you know, the bastilla looks all F@cked up thing)


edit: never mind, i dl it and checked for myself, and to answer my question.....................no it doesnt, the model still deforms in-game, which is odd because i didnt edit anything.

cchargin
07-20-2004, 01:38 AM
Hello all,

the model still deforms in-game, which is odd because i didnt edit anything.
Hey, I did not know about this! Bastilla is not one of my test models, but she will be from now on.

Ya, I am having a heck of a time trying to figure out what is going on here. It looks like the "bones" are getting swapped around, but I can't figure out how. To check it out load the ascii mdl of bastilla into gmax and select the torso mesh. Then go through the envelopes and you will see that the left foot affects the right leg! And of course the right foot affects the left leg!

This, is really weird.

jrc24
08-05-2004, 08:17 PM
THANK YOU VERY MUCH FOR MDLOPS 0.2 !!!!!

:D :D :D :D :D :D :D :D :D :D

StormTrooper789
08-05-2004, 08:35 PM
Can you do this Cchargin, like somebody requested in another thread about MDLOPS?
Originally posted by x8c4
Hello everyone

I have discovered a .wok editor at this address
http://nwvault.ign.com/Files/other/data/1048757900354.shtml

But, when I open a kotor .wok file, the program says that it is not an ascii file.
Would it be possible to make a converter like the mdlops for transforming the wok files into wok-ascii files and conversely.

It would really help, because if we can modify the .wok files, we will be able to compose a new level by assembling existing 3D models, and we will be able to walk on them.

New areas are not so far !!!
Maybe you could implement that in version 0.3

cchargin
08-06-2004, 08:36 PM
Hello all,

t would really help, because if we can modify the .wok files, we will be able to compose a new level by assembling existing 3D models, and we will be able to walk on them.

I have looked into walk meshes a little. From what I can see nwmax tools will export walk meshes then they have to be compiled. Of course mdlops does not understand walk meshes right now. There are other things that I want to fix first.

svösh
08-06-2004, 11:03 PM
Hey people some good info on nwnmax tool set

The site is undergoing some remodeling I believe so not all things are there but it’s very helpful for those taking the plunge in to modeling kotOr

http://ccg.dladventures.com/index.php/Main_Page

http://ccg.dladventures.com/index.php/TileSets look at the walk mesh section ;)

http://nwmax.dladventures.com/documentation/index.html documentation on the tools

I hope this helps

svösh

x8c4
08-07-2004, 09:32 AM
Hello to you, cchargin

Thank you for your mdlops

I have discovered a gmax mdl importer exporter (in neverwinternights vault), it manages to import the model-ascii.mdl that can be done with the mdlops. I tried to export but it shows me an error.

You can find it here
http://nwvault.ign.com/Files/other/...721132840.shtml

Tell me if I am dreaming, but with this tool, if someone manages to make the export working, would we be able to :
- take the mdl and mdx files from kotor archives (already possible with the kotor tool)
- transform it into a mdl-ascii file importable for gmax (possible with the mdlops)
- work on the file into gmax
- export it into a mdl-ascii file (not yet possible)
- transform the mdl-ascii file into a mdl and a mdx files understandable by kotor (is it just the contrary of the first transformation ?)
- finally have a custom model in the game

Thanks

svösh
08-07-2004, 06:11 PM
hey x8c4 the links dead what's the name of this app anyways ?

I beleve it 's "This is a GMax-compatible Maxscript which will import and export (via the listener) ASCII mdl files." made by Wayland

If so it's older then nwnmax and nwnmax's functunality works for all aspects of nwn models and most kotor models as well it's just biowares changed mesh types on us so it's not as cut and dry

I have imported area models, characters, sabers with some animations all with nwnmax version .6 and .7 and all of cchargins Awesome tools

BTW take a look at this look at this , Custom models in game :D

I'm not the first..... this done was with cchargin's import 00 and nwnwmax in gmax. http://svoshsphotos.fotopic.net/p5084287.html

this was done with mdlops nwnwmax in gmax

http://svoshsphotos.fotopic.net/p5817320.html ..texture is beta

here is poor Bastila my first skin mesh test

and this was done with mdlops 2 nwnwmax in gmax

http://svoshsphotos.fotopic.net/p5817321.html

and this was done with mdlops2 nwnwmax in gmax

http://svoshsphotos.fotopic.net/p6511745.html ..texture has got some glitches

svösh

x8c4
08-08-2004, 06:06 AM
Hello Svöch,

You're right, it is the Gmax script made by Wayland, and here is its location

http://nwvault.ign.com/Files/other/data/1029721132840.shtml

If the link is dead
Go to http://nwvault.ign.com and type in search the words gmax and mdl, you will find in the category other at the third position the Wayland's script.

Thanks

Joco
09-28-2004, 12:00 AM
Wayland's script is getting pretty obsolete in NWN terms and for that matter I would suggest KotoR terms.

Cheers,
Joco.

-----------------------
NWmax author.