Skip to content

Xbuf should not apply the wireframe modifier but set the material state #15

@MeFisto94

Description

@MeFisto94

This issue is rather subjective probably, so we might have to discuss pros and cons, at least people having the same problem might find this issue to understand what's going on.

A little context: My hitboxes are simple spheres placed in Blender and having a wireframe modifier (to not occlude the whole model). I was expecting xbuf to set the "AdditionalMaterialState" to Wireframe, but it applied the modifier and hence my collisions went wrong.

Now the question is: What is the desired behavior for that. I think in theory jme supports the wire thickness as well:

m2.getAdditionalRenderState().setWireframe(true);
m2.getAdditionalRenderState().setLineWidth(2f);

This might not be true for other engines and the results might be slightly different than in blender. However using the wireframe shader might be more performant than rendering the baked geometry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions