-
Notifications
You must be signed in to change notification settings - Fork 103
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
Comments
i just don't know how to put shaders... i tried to use the guide, but it does not work >.< |
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) |
I think there is an issue where importing skyrim shaders is also producing duplicate materials. |
Thanks for nudging this issue. @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): Same thing if you're using 2.7x: (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. |
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. |
I'm using 0.0.5. I tried to install 0.0.1 but it gave me errors. Blender version is 2.92. I cant find the nif shader tab, and always get this error when I try to export: |
I am not sure if 2.92 will be compatible with the addon. |
Yes, a 2.7 tutorial will not be useful for 2.8 series of blender. Do you have 2 materials or not? |
Only one tab for materials, and some nif tabs have moved there in 2.9. |
Can you share the file. |
https://mega.nz/file/BAkUXQbK#DucHO-54FumRYwdFzICRaD9DlKKh1gt97WyZF4jO7sU The original model can be found here (glTF version): https://sketchfab.com/3d-models/ballista-e5750f261fc4460f89e237e7c0c69659 |
@niftools/blender-niftools-addon-reviewer -
Before creating a new issue, ensure that
Helpful resources
links on the right-hand side.The issue will get closed off immediately as invalid if
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](https://user-images.githubusercontent.com/50462223/57486850-aab3c300-72b7-11e9-8b14-4d5aa55e16b1.png)
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]
The text was updated successfully, but these errors were encountered: