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

Handle NiCollisionSwitch node #2704

Merged
merged 1 commit into from
Feb 19, 2020
Merged

Conversation

akortunov
Copy link
Collaborator

@akortunov akortunov commented Feb 19, 2020

Allows to load optional meshes from the "Glow in the Dahrk" mod with sun rays effect.

NiCollisionSwitch in Morrowind is just a common NiNode with an ability to toggle node collision on the fly via 0x20 flag.
Since we splitted collisions from scene graph, we can not fully implement this feature, but at least we can to check an initial node state in mesh to ignore nodes in auto-generated collisions. Also we can ignore NiCollisionSwitch'es with disabled collisions in the LineSegmentIntersectors, so user can activate objects behind such nodes.

It should be enough to implement non-selectable effects in meshes via such nodes.

Note: In theory, such nodes should cast shadows (but they do not since I use the Mask_Effect), but we need to introduce a separate node mask for it.

@psi29a psi29a merged commit c907cd9 into OpenMW:master Feb 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants