Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Material : Import causes duplicate shader with unset shader, failure on export #291

Open
7 tasks
ensikon opened this issue May 9, 2019 · 15 comments
Open
7 tasks
Labels
Beginner Good issues for someone now familiar with the code or an easy fix Usability Improvement/impact to make the plugin easier to use User Interface Improve/impact how the user interacts with the plugin via Blender UI
Milestone

Comments

@ensikon
Copy link

ensikon commented May 9, 2019

@niftools/blender-niftools-addon-reviewer -

Before creating a new issue, ensure that

  • Read the user documentation.
  • Check that the issue hasn't already been reported.
  • Read through the list of Helpful resources links on the right-hand side.
  • Talk with the developers to ensure its a valid issue

The issue will get closed off immediately as invalid if

  • Looking for support where the forums, chat or documentation is more appropriate.
  • Goes off topic, loses focus or turns into a discussion.
  • Removing parts of the template the issue.

Fill out the template below to the best of your ability, including .blend files, nifs, logs; help us to help you.

Issue Overview

[Provide a general introduction to the issue and why it is relevant to this repository]
I tried to export body model to nif :с

Version Information

Blender Niftools Addon Version Info

[Provide version information for the Blender Niftools Addon the issue occurs with, available in Blender in the Add-On section]

Blender Version Info

[Provide information on which version of Blender the issue is seen]

Platform information

[Provide a brief overview of what OS your running on]

Context

[Provide more detailed information to the issue itself and why it is relevant]

Steps to Reproduce

[Ordered list of the steps required for recreating the issue, including settings]
#.

Expected Result

[Describe what you expected to have resulted from this process]

Actual Result

[Describe what you currently experience from this process, and thereby explain the bug]

Possible Fix

[Optional, suggest fixes, improvement or reasons for the bug might have occurred]

Screenshot

[If relevant, include a screenshot]
Screenshot_286

Logs and Files

[Provide logs file generated during the error as well as the blend and nif files are related to the issue]

Info Bar Output

[Output from the Info View, available at top of Blender viewport, drag to expand]

Console Output

[Set the logging level to 'Debug' and attach the output of the console. Enable via Window -> Toggle Console]

Blend File

[Attach the blend file if the issue is reproducible]

Nif File

[Attach input or output files, samples of what the expected output should be and reproducing the issue]

Similar Known Issues

[Reference any known issues - https://github.com/niftools/blender_niftools_addon/issues]

Additional Information

[Anything else you feel is relevant]

@ensikon
Copy link
Author

ensikon commented May 9, 2019

i just don't know how to put shaders... i tried to use the guide, but it does not work >.<

@neomonkeus neomonkeus added Beginner Good issues for someone now familiar with the code or an easy fix Usability Improvement/impact to make the plugin easier to use User Interface Improve/impact how the user interacts with the plugin via Blender UI labels May 10, 2019
@neomonkeus neomonkeus added this to TODO in Usability - Logging via automation May 10, 2019
@neomonkeus neomonkeus added this to TODO in Usability - User Interface via automation May 10, 2019
@neomonkeus neomonkeus added this to To do in Material System via automation May 10, 2019
@neomonkeus neomonkeus added this to To do in Texture System via automation May 10, 2019
@neomonkeus
Copy link
Member

neomonkeus commented May 13, 2019

The shader type is not set in the property panel.

Dev

        if b_obj.niftools_shader.bs_shadertype == 'None':
            raise nif_utils.NifError("Export version expected shader. "
                                     "No shader applied to mesh '%s', these cannot be exported to NIF."
                                     " Set shader before exporting." % b_obj)

@TagnumElite
Copy link
Member

In the objects you are trying to export, you must set your shader type.
Select BS Shader

@neomonkeus neomonkeus added this to To do in Shader System via automation Jan 11, 2020
@neomonkeus
Copy link
Member

I think there is an issue where importing skyrim shaders is also producing duplicate materials.

@neomonkeus neomonkeus added this to the v2.6.0a0.dev4 milestone Apr 22, 2020
@neomonkeus neomonkeus changed the title Help me understand what needs to be done to fix it >.< Material : Set Shader before exporting May 3, 2020
@neomonkeus neomonkeus changed the title Material : Set Shader before exporting Material : Import causes duplicate shader with unset shader, failure on export Dec 14, 2020
@Wolfstorm321
Copy link

In the objects you are trying to export, you must set your shader type.
Select BS Shader

This "Niftools Shader" is nowhere to be found. None of the properties tab have it.

@neomonkeus
Copy link
Member

neomonkeus commented Apr 23, 2021

In the objects you are trying to export, you must set your shader type.
Select BS Shader

This "Niftools Shader" is nowhere to be found. None of the properties tab have it.

Thanks for nudging this issue.
I suspect you are using a more recent version (in fact I hope to release a new version this weekend), which has the newer texture nodes support.
What version of the plugin are you using?

@Candoran2 Is this still an issue based on the way things work now.

@Candoran2
Copy link
Member

In the objects you are trying to export, you must set your shader type.
Select BS Shader

This "Niftools Shader" is nowhere to be found. None of the properties tab have it.

Thanks for nudging this issue.
I suspect you are using a more recent version (in fact I hope to release a new version this weekend), which has the newer texture nodes support.
What version of the plugin are you using?

@Candoran2 Is this still an issue based on the way things work now.

Currently, that Niftools Shader panel should be found under the material (if you have applied one to your mesh, if you don't have a material it will simply export without a shader property):

image

Same thing if you're using 2.7x:

image

(BTW, that must be an old gif, since there haven't been many changes to the 2.7 branch for a while).

It's still an 'issue' in the sense that you have to set it, and it fails if you don't (at least for Skyrim meshes).

As far as "I think there is an issue where importing skyrim shaders is also producing duplicate materials." (Neomonkeus), goes, I haven't been able to replicate it, though I didn't look into it too hard. If you can give me the steps to replicate and what goes wrong, I'd be happy to look into it and try to fix it, if possible.

@neomonkeus
Copy link
Member

neomonkeus commented Apr 23, 2021

It was just import a nif and it would cause a second material to be added to the object.

I would complete forget about the 2.7x version as that branch has been removed at this point.

@Wolfstorm321
Copy link

In the objects you are trying to export, you must set your shader type.
Select BS Shader

This "Niftools Shader" is nowhere to be found. None of the properties tab have it.

Thanks for nudging this issue.
I suspect you are using a more recent version (in fact I hope to release a new version this weekend), which has the newer texture nodes support.
What version of the plugin are you using?

@Candoran2 Is this still an issue based on the way things work now.

I'm using 0.0.5. I tried to install 0.0.1 but it gave me errors. Blender version is 2.92.
Here is how the object panel looks like:

Clipboard36

I cant find the nif shader tab, and always get this error when I try to export:
Export version expected shader. No shader applied to mesh '<bpy_struct, Material("Material_30") at 0x0000000007769188, evaluated>', these cannot be exported to NIF.Set shader before exporting.

@neomonkeus
Copy link
Member

I am not sure if 2.92 will be compatible with the addon.
Can you attach the files and steps you used to reproduce.

@Wolfstorm321
Copy link

Wolfstorm321 commented Apr 24, 2021

I am not sure if 2.92 will be compatible with the addon.
Can you attach the files and steps you used to reproduce.

I found it, it is in another tab, the "material properties" tab:

Clipboard37

Tutorials are pointing to the object tab, though. I was using a tutorial for 2.7x.

@neomonkeus
Copy link
Member

Yes, a 2.7 tutorial will not be useful for 2.8 series of blender.

Do you have 2 materials or not?

@Wolfstorm321
Copy link

Only one tab for materials, and some nif tabs have moved there in 2.9.

@neomonkeus
Copy link
Member

Can you share the file.

@Wolfstorm321
Copy link

Wolfstorm321 commented Apr 24, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Beginner Good issues for someone now familiar with the code or an easy fix Usability Improvement/impact to make the plugin easier to use User Interface Improve/impact how the user interacts with the plugin via Blender UI
Development

No branches or pull requests

5 participants