Package org.gephi.visualization.opengl

Examples of org.gephi.visualization.opengl.Lighting


        antiAliasing = NbPreferences.forModule(VizConfig.class).getInt(VizConfig.ANTIALIASING, VizConfig.DEFAULT_ANTIALIASING);
        antialisaingCombobox.setSelectedIndex(antiAliasing == 0 ? 0 : Math.round((float) (Math.log(antiAliasing) / Math.log(2))));
        fpsCheckbox.setSelected(NbPreferences.forModule(VizConfig.class).getBoolean(VizConfig.SHOW_FPS, VizConfig.DEFAULT_SHOW_FPS));

        //Lights
        Lighting lighting = new Lighting();
        Light ambiant = lighting.getLights().get(0);
        Light light1 = lighting.getLights().get(1);
        Light light2 = lighting.getLights().get(2);
        Light light3 = lighting.getLights().get(3);

        //Ambiant
        ((JColorButton) ambientAmbiantColorButton).setColor(ColorUtils.decode(ambiant.getAmbiant()));
        ((JColorButton) ambientDiffuseColorButton).setColor(ColorUtils.decode(ambiant.getDiffuse()));
        ((JColorButton) ambientSpecularColorButton).setColor(ColorUtils.decode(ambiant.getSpecular()));
View Full Code Here


        gl.glEnable(GL.GL_TEXTURE_2D);

    }

    protected void setLighting(GL gl) {
        lighting = new Lighting();
        lighting.glInit(gl);
    }
View Full Code Here

        antiAliasing = NbPreferences.forModule(VizConfig.class).getInt(VizConfig.ANTIALIASING, VizConfig.DEFAULT_ANTIALIASING);
        antialisaingCombobox.setSelectedIndex(antiAliasing == 0 ? 0 : Math.round((float) (Math.log(antiAliasing) / Math.log(2))));
        fpsCheckbox.setSelected(NbPreferences.forModule(VizConfig.class).getBoolean(VizConfig.SHOW_FPS, VizConfig.DEFAULT_SHOW_FPS));

        //Lights
        Lighting lighting = new Lighting();
        Light ambiant = lighting.getLights().get(0);
        Light light1 = lighting.getLights().get(1);
        Light light2 = lighting.getLights().get(2);
        Light light3 = lighting.getLights().get(3);

        //Ambiant
        ((JColorButton) ambientAmbiantColorButton).setColor(ColorUtils.decode(ambiant.getAmbiant()));
        ((JColorButton) ambientDiffuseColorButton).setColor(ColorUtils.decode(ambiant.getDiffuse()));
        ((JColorButton) ambientSpecularColorButton).setColor(ColorUtils.decode(ambiant.getSpecular()));
View Full Code Here

        gl.glEnable(GL2.GL_TEXTURE_2D);

    }

    protected void setLighting(GL2 gl) {
        lighting = new Lighting();
        lighting.glInit(gl);
    }
View Full Code Here

TOP

Related Classes of org.gephi.visualization.opengl.Lighting

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.