Q: How are the NPCs built?

General discussion regarding the OpenMW project.
For technical support, please use the Support subforum.
Post Reply
User avatar
Pithorn
Posts: 14
Joined: 28 Nov 2012, 06:08
Location: Beijing, China
Contact:

Q: How are the NPCs built?

Post by Pithorn » 02 Jan 2013, 11:27

How did you built the NPCs and the world with the pictures?
have you decrypt this part of data in the bsa files?
Please tell me if I have made errors on my expressions. Thanks a lot!

User avatar
hircine
Posts: 157
Joined: 06 Aug 2011, 07:18

Re: Q: How are the NPCs built?

Post by hircine » 02 Jan 2013, 12:48

Pithorn wrote:How did you built the NPCs and the world with the pictures?
have you decrypt this part of data in the bsa files?
We have a library that allows us to decompress and use the files within each BSA.
We then use the information in the Morrowind.ESM file to 'build' each NPC. There is information in the ESM that contains the models and textures we need to use for each NPC, where they are located and what their name is and other personal info.

Sorry, If I misunderstand what you are trying to ask. It's a little bit cryptic.

User avatar
Pithorn
Posts: 14
Joined: 28 Nov 2012, 06:08
Location: Beijing, China
Contact:

Re: Q: How are the NPCs built?

Post by Pithorn » 02 Jan 2013, 14:43

We have a library that allows us to decompress and use the files within each BSA.
Amazing.
Where's it in the source code?
Please tell me if I have made errors on my expressions. Thanks a lot!

jhooks1
Posts: 780
Joined: 06 Aug 2011, 21:34

Re: Q: How are the NPCs built?

Post by jhooks1 » 05 Jan 2013, 04:46

components/bsa/bsa_archive.cpp and hpp

That part only really allows openmw to grab files from the bsa though (like a zip file sort of).

To actually build NPCs there is quite a bit going on. NPCs are built with body parts connected to a skeleton. Body parts can be classified as skin, armor, or clothing. This is purely to display an NPC. You have a physics collision shape, stats, and a lot of other stuff related to them.

The world is kind of a broad term though and could include a lot of stuff.

Post Reply