Page 2 of 3

Re: niftools and blender plugin

Posted: 12 Jan 2017, 21:09
by psi29a
i said to remove the '.zip'. extension, not extract them. ;)
A limitation of forum post attachments.

Re: niftools and blender plugin

Posted: 12 Jan 2017, 21:11
by Frik
Oh, sorry. I must have skimmed that part. :oops:

Re: niftools and blender plugin

Posted: 12 Jan 2017, 21:28
by psi29a
blender output is piped to console, so run it from cli to get a clean stack trace.

Re: niftools and blender plugin

Posted: 12 Jan 2017, 21:34
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!

Re: niftools and blender plugin

Posted: 12 Jan 2017, 21:40
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?).

Re: niftools and blender plugin

Posted: 12 Jan 2017, 22:06
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. :?:

Re: niftools and blender plugin

Posted: 12 Jan 2017, 22:48
by psi29a
I could be wrong, but I remember reading something along that line somewhere. Maybe someone can verify this? Scrawl? Zini?

Re: niftools and blender plugin

Posted: 12 Jan 2017, 22:54
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.

Re: niftools and blender plugin

Posted: 13 Jan 2017, 06:09
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?

Re: niftools and blender plugin

Posted: 13 Jan 2017, 10:16
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.