Package org.jdesktop.wonderland.modules.defaultenvironment.common

Examples of org.jdesktop.wonderland.modules.defaultenvironment.common.SharedDirectionLight


            if(map.getName().equals("state")) {
                //handle change in state here.
//                logger.warning("ACTIVE SKYBOX CHANGED TO: "+event.getNewValue().toString());
            } else if(map.getName().equals("lights")) {
                String key = event.getPropertyName();
                SharedDirectionLight light = (SharedDirectionLight)event.getNewValue();
               
               
               
                //CASE 1: edited light already exists in global lights
                if(globalLights.containsKey(key)) {
View Full Code Here


        }
       
        private SharedDirectionLight buildStateFromLight(LightNode light) {
           
           
            return new SharedDirectionLight(light.getLight().getAmbient(),
                                            light.getLight().getDiffuse(),
                                            light.getLight().getSpecular(),
                                            light.getLocalTranslation(),
                    ((DirectionalLight)light.getLight()).getDirection(),
                                            false);
View Full Code Here

        return node;
    }
   
    public SharedDirectionLight reconstructState() {
       
        return new SharedDirectionLight(ambient,
                                        diffuse,
                                        specular,
                                        position,
                                        direction,
                                        castShadows);
View Full Code Here

                SharedMapCli smc = cell.getSharedLightMap();
                for(Map.Entry<String, SharedData> data:smc.entrySet()) {
                    LOGGER.fine("POPULATING LIGHT: "+data.getKey());
                    if (initialLights.containsKey(data.getKey())) {
                        LightNode node = initialLights.get(data.getKey());
                        SharedDirectionLight light = (SharedDirectionLight) data.getValue();

                        updateLight(node, buildLightFromState(light));
                    } else {
                        //there's a light in the shared map that isn't in the
                        //tmp lights map.
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.modules.defaultenvironment.common.SharedDirectionLight

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.