Some more feedback ! I've got two things to report.
First one is about detector regions using a Coordinate Interface. In my case it's a region parented to an animated object (using the parenting fix available on the GitHub repo), but it might also occur on regions animated directly.
The region's physics end up being warped at the world's origin, instead of where they are supposed to be. This is because Korman computes the region's physics from the object's origin instead of the world origin (which is the correct way to do it), but doesn't tell Plasma to also compute physics from the object's origin.
It doesn't seem to affect other physical objects, but it might be a good idea to have Korman automatically set a weight different from zero and the kPinned flag to any physical objects having a coordinate system, just in case. Myst V Ages converted to Uru suffer from this issue, and from what I've seen this trick always fixes everything with no side effect.
Well, except for sprites having collisions, in which case it breaks the sprite. But nobody is likely to do so...Second one is about stencils. Korman always forces stencils to be clipped. While this is correct behavior for "blend" texture types (since that's also how Blender handles them), it makes using tileable stencils using images impossible to use. I'm not sure there are many people using tileable stencils in their Ages, but still
![Mr. Green :D](./images/smilies/icon_mrgreen.gif)
I think forcing the clamp flags should only be done for "blend" textures.
The code modification is quite simple:
File korman/exporter/material.py, line 176, replace:
- Code: Select all
state.clampFlags |= hsGMatState.kClampTexture
with:
- Code: Select all
if slot.texture and slot.texture.type == "BLEND":
state.clampFlags |= hsGMatState.kClampTexture
(yeah, I guess I could simply put that in a pull request, but I've been too lazy to have Korman cloned on my PC yet
![Rolling Eyes :roll:](./images/smilies/icon_rolleyes.gif)
)