niftools and blender plugin


Moderator: Example suite forum moderator


  • Author
  • Message
Offline
User avatar

Frik

  • Posts: 66
  • Joined: 20 Dec 2016, 05:22

Re: niftools and blender plugin

Post13 Jan 2017, 17:38

psi29a wrote:I would rather just link (path name) to a texture external of a nif since it would be easier to test and adjust.

I agree. I'd rather use an external texture, as well.

Being that nifskope was showing the texture as having a .tga extension and I couldn't find any textures with .tga extensions, I assumed the texture was embedded. That was an incorrect assumption. For example, Nifskope was showing a texture as Tx_wood_interior_plain.tga, but the external file that's actually being loaded was Tx_wood_interior_plain.dds. That was a little confusing for me. :mrgreen:
Offline
User avatar

psi29a

  • Posts: 3050
  • Joined: 29 Sep 2011, 10:13

Re: niftools and blender plugin

Post13 Jan 2017, 18:54

OK, I managed to assign a texture via material on my mesh in blender 2.77 and have it exported as a NIF. It does so by path however, it does not embed the texture into the NIF. It has to be UV mapped, if not it will complain about it. ;)

Nifscope says:
NiNode -> NiTriShape -> NiTexturingProperty -> NiSourceTexture = texture.dds

The only odd part is that it will replace your texture's extension with dds, so filename.png will become filename.dds

You can use Nifscope to change the filename to say texture.png

OpenMW supports more than just dds and tga btw, so feel free to use others, png for example. :)
Offline
User avatar

Capostrophic

  • Posts: 182
  • Joined: 22 Feb 2016, 20:32

Re: niftools and blender plugin

Post16 Jan 2017, 12:32

> png for example

But there's a "but": if a dds texture is present, textures with the same file name in other formats are ignored.
shitty lingua anglica grammar ftw
Offline
User avatar

psi29a

  • Posts: 3050
  • Joined: 29 Sep 2011, 10:13

Re: niftools and blender plugin

Post16 Jan 2017, 12:37

That's is OpenMW taking your dds over your other file. It does this because dds can be directly uploaded to the GPU instead of having OSG go through an extra step. A gotcha of the OpenMW engine.
Offline

silentthief

  • Posts: 232
  • Joined: 18 Apr 2013, 01:20

Re: niftools and blender plugin

Post17 Jan 2017, 21:42

psi29a wrote:That's is OpenMW taking your dds over your other file. It does this because dds can be directly uploaded to the GPU instead of having OSG go through an extra step. A gotcha of the OpenMW engine.


iirc, vanilla MW did this as well...???

ST
Offline
User avatar

Pherim

  • Posts: 112
  • Joined: 27 Aug 2014, 15:37

Re: niftools and blender plugin

Post19 Jan 2017, 10:11

Frik wrote: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?

The game can use both .tga and .dds files, but will use .dds over .tga, even if both are present.
Offline
User avatar

Frik

  • Posts: 66
  • Joined: 20 Dec 2016, 05:22

Re: niftools and blender plugin

Post20 Jan 2017, 01:20

Yeah. I finally figured that out. It does make sense to use .dds, when possible. It's just not everyday that I see an exact filename specified, yet a file with a different name gets loaded. 8-)
Offline
User avatar

sjek

  • Posts: 403
  • Joined: 22 Nov 2014, 10:51

Re: niftools and blender plugin

Post24 Jan 2017, 00:46

psi29a wrote:I find it curious that instead of wanting to improve niftools that they decided to go at it alone.
viewtopic.php?f=4&t=3526&start=200#p45283

wouldn't say alone xP vague memory is that it's easier to write it droundup than fight with niftools multigame support

edit: maybe i can put this here as examplesuite goes near modding morrowind https://www.youtube.com/watch?v=xzszrMoGJ18 althought videos were made just recently
"life is crazy"
"craziness has beauty which only crazies understand" some movie clip in the head.
https://wiki.openmw.org/index.php?title=Testing
Offline
User avatar

psi29a

  • Posts: 3050
  • Joined: 29 Sep 2011, 10:13

Re: niftools and blender plugin

Post24 Jan 2017, 10:29

I've been in contact with G7 last week. The reason he went at it alone is because he didn't want to be bother with having to tip-toe around other formats and versions that niftools also supports only to focus on Morrowind support.

His work so far is actually pretty good, he has been putting a lot of effort into animation support.

After talking with him further, he was pretty receptive to working with me on getting Niftool's Blender Plugin back on track. So, thanks to Destined for getting us together. ;)

I have a few fixes in the queue now, but we still have a ways to go. The 'fixes' are easy, it is the test-cases and documentation that takes a lot of time. ;)

Previous


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest