Skip to content

setLineWidth calls ignored in 3.6.0-beta1 #1946

Closed
@richardTingle

Description

@richardTingle

Calls to material.getAdditionalRenderState().setLineWidth seem to be being ignored in 3.6.0-beta1

With the following sample program

public class LineWidthTest extends SimpleApplication{

    public static void main(String[] args){
        LineWidthTest app = new LineWidthTest();
        AppSettings settings = new AppSettings(true);
        app.setShowSettings(false);
        app.setSettings(settings);
        app.start();
    }

    @Override
    public void simpleInitApp() {
        Line line = new Line(new Vector3f(0,0,0), new Vector3f(0,3,0));
        Geometry lineGeometry = new Geometry("line", line);
        Material lineMat = new Material(getAssetManager(),"Common/MatDefs/Misc/Unshaded.j3md");
        lineMat.setColor("Color", ColorRGBA.White);
        lineMat.getAdditionalRenderState().setLineWidth(10);
        lineGeometry.setMaterial(lineMat);
        rootNode.attachChild(lineGeometry);
    }
}

On jme 3.6.0-beta1 it appears as follows (thin line):

image

But on 3.5.0-stable it appeas like this (with the requested thicker line):

image

Metadata

Metadata

Assignees

Labels

DocumentationIssues that affect the Wiki, Javadoc or any other form of documentationquestion

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions