Skip to content

Change segments at run time, uv mapping error bug? #21

@Neugls

Description

@Neugls

If you changes the segments of Plane or Cube which I have noticed, the result may have UV mapping error.
I have the following code

                    plane = new Plane();
        plane.width = 500;
        plane.height = 500;
        plane.bothsides = true;
        plane.segmentsH = 1;
        plane.segmentsW = 1;
        plane.material = new BitmapFileMaterial("");
        scene.addChild(plane);

        StartToRender();
        stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);
    }

    protected function onKeyDown(E:KeyboardEvent):void{
        if(E.keyCode == Keyboard.F3){
            plane.width += 3;
            plane.segmentsW ++
        }
        if(E.keyCode == Keyboard.F4){
            plane.height += 3;
            plane.segmentsH ++
        }
    }

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