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

BS Lighting Shader Object Type information gets lost at export #622

Open
Xyotic opened this issue Dec 10, 2023 · 1 comment
Open

BS Lighting Shader Object Type information gets lost at export #622

Xyotic opened this issue Dec 10, 2023 · 1 comment
Assignees
Labels
Bug Issue with specific functionality not working as intended but overall plugin is working.

Comments

@Xyotic
Copy link

Xyotic commented Dec 10, 2023

@niftools/blender-niftools-addon-reviewer -

Issue Overview

Exporting an object for Skyrim SE as nif with material settings
Shader Type: BS Lighting Shader Property
BS Lighting Shader Object Type: ENVIRONMENT_MAP
does not work.
Settings

When checking the exported .nif inside Nifskope the shader type is set to "Default"
Nifskope

This will cause the CreationKit to crash with a fatal error when using the related shader flag "Environment_Mapping"

Version Information

Blender Niftools Addon Version Info

0.1.1

Blender Version Info

3.6.1

Platform information

Windows 10
i9-9900k
RTX-2080

Steps to Reproduce

  • Open the attached TestCube.blend in Blender
  • Export as .nif
  • Check the shader type in Nifskope

Blend File

TestCube.zip

Nif File

untitled.zip

@Xyotic Xyotic added the Bug Issue with specific functionality not working as intended but overall plugin is working. label Dec 10, 2023
@arcusmaximus
Copy link

arcusmaximus commented Jan 8, 2024

For me it crashes Skyrim itself (LE). The problematic line is here: https://github.com/niftools/blender_niftools_addon/blob/master/io_scene_niftools/modules/nif_export/property/shader/__init__.py#L97

bsshader.skyrim_shader_type should be changed to just bsshader.shader_type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issue with specific functionality not working as intended but overall plugin is working.
Projects
None yet
Development

No branches or pull requests

3 participants