niftools and blender plugin

OpenMW's very own demo, template and game to show off everything that OpenMW is capable of.

Moderator: Example suite forum moderator

User avatar
psi29a
Posts: 5355
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: niftools and blender plugin

Post by psi29a »

i said to remove the '.zip'. extension, not extract them. ;)
A limitation of forum post attachments.
User avatar
Frik
Posts: 124
Joined: 20 Dec 2016, 05:22

Re: niftools and blender plugin

Post by Frik »

Oh, sorry. I must have skimmed that part. :oops:
User avatar
psi29a
Posts: 5355
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: niftools and blender plugin

Post by psi29a »

blender output is piped to console, so run it from cli to get a clean stack trace.
User avatar
Frik
Posts: 124
Joined: 20 Dec 2016, 05:22

Re: niftools and blender plugin

Post by Frik »

Ok, will do on the trace. Was able to export the house you posted after removing the texture. Is that what I should have done, remove it? How does importing and exporting of textures work with the Blender .nif plugins?

Thanks!
User avatar
psi29a
Posts: 5355
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: niftools and blender plugin

Post by psi29a »

Not sure yet, haven't gotten that far yet. ;)

I usually create/export the NIF then use nifskope to have the vert(s) point to textures, at least that is how I did it for 2.49b.

I don't think OpenMW supports textures embedded in NIF (yet?).
User avatar
Frik
Posts: 124
Joined: 20 Dec 2016, 05:22

Re: niftools and blender plugin

Post by Frik »

psi29a wrote:I usually create/export the NIF then use nifskope to have the vert(s) point to textures, at least that is how I did it for 2.49b.
Works for me.
psi29a wrote:I don't think OpenMW supports textures embedded in NIF (yet?).
Some of the vanilla nifs like in_c_door_wood_square.nif uses Tx_common_door.tga (and several others) in NiSourceTexture. I just assumed that texture was embedded, being I couldn't find the tga anywhere.

I extracted all the data from the bsa files. Maybe I'm looking in the wrong place. :?:
User avatar
psi29a
Posts: 5355
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: niftools and blender plugin

Post by psi29a »

I could be wrong, but I remember reading something along that line somewhere. Maybe someone can verify this? Scrawl? Zini?
User avatar
sjek
Posts: 442
Joined: 22 Nov 2014, 10:51

Re: niftools and blender plugin

Post by sjek »

https://bugs.openmw.org/issues/2295

nipixeldata is supported. if the method is same as in 2.49 it's set inside blender baking the uv textures with absolute filepath.
User avatar
Frik
Posts: 124
Joined: 20 Dec 2016, 05:22

Re: niftools and blender plugin

Post by Frik »

Looking at some other vanilla models in nifskope, It appears that all the texture file extensions in those .nif files were .tga. Can I assume the game engine falls back or simply loads up a .dds whenever it encounters the .tga extension?
User avatar
psi29a
Posts: 5355
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: niftools and blender plugin

Post by psi29a »

I can't really answer that, I don't know. Thanks sjek for the link, so there is a way to get texture data into a nif. I would rather just link (path name) to a texture external of a nif since it would be easier to test and adjust.
Post Reply