Updated JMP Palette

- Added: Wireframe, ShowNormals Mat, 2x click-to-select, J3O save&load
- Added: Spotlight, Shadows, Post-processor effects. 
- Fixed outdated J3M snippet. 
- Updated light directions.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9130 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
roo..li 13 years ago
parent b53a825d35
commit f2e08c9642
  1. 2
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/AmbLight.xml
  2. 2
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/BleedCube.xml
  3. 17
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/ClickCrosshairs.xml
  4. 17
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/ClickPointer.xml
  5. 2
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/Explosion.xml
  6. 2
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/Fire.xml
  7. 17
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/Fog.xml
  8. 17
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/J3OLoad.xml
  9. 17
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/J3OSave.xml
  10. 64
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteClickCrosshairs.java
  11. 64
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteClickPointer.java
  12. 65
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteFog.java
  13. 64
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteJ3OLoad.java
  14. 64
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteJ3OSave.java
  15. 64
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteLightScatter.java
  16. 6
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteSetJ3M.java
  17. 64
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteShadowAO.java
  18. 64
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteShadowBasic.java
  19. 64
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteShadowPSSM.java
  20. 64
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteShowNormals.java
  21. 64
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteSpotLight.java
  22. 2
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteSunLight.java
  23. 64
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteWireframe.java
  24. 17
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/LightScatter.xml
  25. 4
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/Model.xml
  26. 4
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/Node.xml
  27. 4
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/SetJ3M.xml
  28. 17
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/SetShowNormals.xml
  29. 17
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/SetWireframe.xml
  30. 17
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/ShadowAO.xml
  31. 17
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/ShadowBasic.xml
  32. 17
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/ShadowPSSM.xml
  33. 17
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/SpotLight.xml

@ -11,7 +11,7 @@
<inline-description>
<display-name>AmbientLight</display-name>
<tooltip>light source (ambient)</tooltip>
<tooltip>Light source - ambient light only</tooltip>
</inline-description>
</editor_palette_item>

@ -11,7 +11,7 @@
<inline-description>
<display-name>BleedCube</display-name>
<tooltip>textured cube with color bleeding through</tooltip>
<tooltip>Textured with color bleeding through</tooltip>
</inline-description>
</editor_palette_item>

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE editor_palette_item PUBLIC "-//NetBeans//Editor Palette Item 1.1//EN"
"http://www.netbeans.org/dtds/editor-palette-item-1_1.dtd">
<editor_palette_item version="1.0">
<class name="com.jme3.gde.codepalette.scene.JmePaletteClickCrosshairs" />
<icon16 urlvalue="com/jme3/gde/core/sceneviewer/jme-logo.png" />
<icon32 urlvalue="com/jme3/gde/core/sceneviewer/jme-logo.png" />
<inline-description>
<display-name>Click Crosshairs</display-name>
<tooltip>Click-to-Select with crosshairs, mouse moves camera (crosshairs not included)</tooltip>
</inline-description>
</editor_palette_item>

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE editor_palette_item PUBLIC "-//NetBeans//Editor Palette Item 1.1//EN"
"http://www.netbeans.org/dtds/editor-palette-item-1_1.dtd">
<editor_palette_item version="1.0">
<class name="com.jme3.gde.codepalette.scene.JmePaletteClickPointer" />
<icon16 urlvalue="com/jme3/gde/core/sceneviewer/jme-logo.png" />
<icon32 urlvalue="com/jme3/gde/core/sceneviewer/jme-logo.png" />
<inline-description>
<display-name>Click Pointer</display-name>
<tooltip>Click to select with mouse pointer, camera remains static.</tooltip>
</inline-description>
</editor_palette_item>

@ -11,7 +11,7 @@
<inline-description>
<display-name>Explosion</display-name>
<tooltip>explosion effect</tooltip>
<tooltip>Particle effect - Explosion</tooltip>
</inline-description>
</editor_palette_item>

@ -11,7 +11,7 @@
<inline-description>
<display-name>Fire</display-name>
<tooltip>fire effect</tooltip>
<tooltip>Particle effect - fire flames</tooltip>
</inline-description>
</editor_palette_item>

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE editor_palette_item PUBLIC "-//NetBeans//Editor Palette Item 1.1//EN"
"http://www.netbeans.org/dtds/editor-palette-item-1_1.dtd">
<editor_palette_item version="1.0">
<class name="com.jme3.gde.codepalette.scene.JmePaletteFog" />
<icon16 urlvalue="com/jme3/gde/core/sceneviewer/jme-logo.png" />
<icon32 urlvalue="com/jme3/gde/core/sceneviewer/jme-logo.png" />
<inline-description>
<display-name>Fog</display-name>
<tooltip>A fog effect.</tooltip>
</inline-description>
</editor_palette_item>

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE editor_palette_item PUBLIC "-//NetBeans//Editor Palette Item 1.1//EN"
"http://www.netbeans.org/dtds/editor-palette-item-1_1.dtd">
<editor_palette_item version="1.0">
<class name="com.jme3.gde.codepalette.scene.JmePaletteJ3OLoad" />
<icon16 urlvalue="com/jme3/gde/core/sceneviewer/jme-logo.png" />
<icon32 urlvalue="com/jme3/gde/core/sceneviewer/jme-logo.png" />
<inline-description>
<display-name>J3O Load</display-name>
<tooltip>Load a Node from a .j3o file.</tooltip>
</inline-description>
</editor_palette_item>

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE editor_palette_item PUBLIC "-//NetBeans//Editor Palette Item 1.1//EN"
"http://www.netbeans.org/dtds/editor-palette-item-1_1.dtd">
<editor_palette_item version="1.0">
<class name="com.jme3.gde.codepalette.scene.JmePaletteJ3OSave" />
<icon16 urlvalue="com/jme3/gde/core/sceneviewer/jme-logo.png" />
<icon32 urlvalue="com/jme3/gde/core/sceneviewer/jme-logo.png" />
<inline-description>
<display-name>J3O Save</display-name>
<tooltip>Save a Node as .j3o file.</tooltip>
</inline-description>
</editor_palette_item>

@ -0,0 +1,64 @@
/*
* Copyright (c) 2009-2010 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'jMonkeyEngine' nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package com.jme3.gde.codepalette.scene;
import com.jme3.gde.codepalette.JmePaletteUtilities;
import javax.swing.text.BadLocationException;
import javax.swing.text.JTextComponent;
import org.openide.text.ActiveEditorDrop;
/**
*
* @author normenhansen, zathras
*/
public class JmePaletteClickCrosshairs implements ActiveEditorDrop {
public JmePaletteClickCrosshairs() {
}
private String createBody() {
String body = " /**Pick a Target Using Fixed Crosshairs.<ol><li>Map the \"pick target\" action to a MouseButtonTrigger. <li>flyCam.setEnabled(true); <li>inputManager.setCursorVisible(false); <li>Implement click action in AnalogListener (TODO).</ol>\n */\n private AnalogListener analogListener = new AnalogListener() {\n public void onAnalog(String name, float intensity, float tpf) {\n if (name.equals(\"pick target\")) {\n // Reset results list.\n CollisionResults results = new CollisionResults();\n // Aim the ray from camera location in camera direction\n // (assuming crosshairs are in center of screen).\n Ray ray = new Ray(cam.getLocation(), cam.getDirection());\n // Collect intersections between ray and all nodes in results list.\n rootNode.collideWith(ray, results);\n // (Print the results so we see what is going on:)\n for (int i = 0; i < results.size(); i++) {\n // For each \"hit\", we know distance, impact point, geometry name.\n float dist = results.getCollision(i).getDistance();\n Vector3f pt = results.getCollision(i).getContactPoint();\n String target = results.getCollision(i).getGeometry().getName();\n System.out.println(\"Selection #\" + i + \": \" + target + \" at \" + pt + \", \" + dist + \" WU away.\");\n }\n // 5. Interact with target -- e.g. rotate the clicked geometry.\n if (results.size() > 0) {\n // The closest result is the target that the player picked:\n Geometry target = results.getClosestCollision().getGeometry();\n // Here comes the action:\n target.rotate(0, - intensity, 0); // TODO\n }\n } \n }\n }; \n";
return body;
}
public boolean handleTransfer(JTextComponent targetComponent) {
String body = createBody();
try {
JmePaletteUtilities.insert(body, targetComponent);
} catch (BadLocationException ble) {
return false;
}
return true;
}
}

@ -0,0 +1,64 @@
/*
* Copyright (c) 2009-2010 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'jMonkeyEngine' nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package com.jme3.gde.codepalette.scene;
import com.jme3.gde.codepalette.JmePaletteUtilities;
import javax.swing.text.BadLocationException;
import javax.swing.text.JTextComponent;
import org.openide.text.ActiveEditorDrop;
/**
*
* @author normenhansen, zathras
*/
public class JmePaletteClickPointer implements ActiveEditorDrop {
public JmePaletteClickPointer() {
}
private String createBody() {
String body = " /** Pick a Target Using the Mouse Pointer. <ol><li>Map \"pick target\" action to a MouseButtonTrigger. <li>flyCam.setEnabled(false); <li>inputManager.setCursorVisible(true); <li>Implement action in AnalogListener (TODO).</ol>\n */\n private AnalogListener analogListener = new AnalogListener() {\n public void onAnalog(String name, float intensity, float tpf) {\n if (name.equals(\"pick target\")) {\n // Reset results list.\n CollisionResults results = new CollisionResults();\n // Convert screen click to 3d position\n Vector2f click2d = inputManager.getCursorPosition();\n Vector3f click3d = cam.getWorldCoordinates(new Vector2f(click2d.x, click2d.y), 0f).clone();\n Vector3f dir = cam.getWorldCoordinates(new Vector2f(click2d.x, click2d.y), 1f).subtractLocal(click3d);\n // Aim the ray from the clicked spot forwards.\n Ray ray = new Ray(click3d, dir);\n // Collect intersections between ray and all nodes in results list.\n rootNode.collideWith(ray, results);\n // (Print the results so we see what is going on:)\n for (int i = 0; i < results.size(); i++) {\n // (For each \"hit\", we know distance, impact point, geometry.)\n float dist = results.getCollision(i).getDistance();\n Vector3f pt = results.getCollision(i).getContactPoint();\n String target = results.getCollision(i).getGeometry().getName();\n System.out.println(\"Selection #\" + i + \": \" + target + \" at \" + pt + \", \" + dist + \" WU away.\");\n }\n // Use the results -- we rotate the selected geometry.\n if (results.size() > 0) {\n // The closest result is the target that the player picked:\n Geometry target = results.getClosestCollision().getGeometry();\n // Here comes the action:\n if (target.getName().equals(\"Red Box\")) {\n target.rotate(0, -intensity, 0); // TODO\n }\n }\n } \n }\n }; \n";
return body;
}
public boolean handleTransfer(JTextComponent targetComponent) {
String body = createBody();
try {
JmePaletteUtilities.insert(body, targetComponent);
} catch (BadLocationException ble) {
return false;
}
return true;
}
}

@ -0,0 +1,65 @@
/*
* Copyright (c) 2009-2010 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'jMonkeyEngine' nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package com.jme3.gde.codepalette.scene;
import com.jme3.gde.codepalette.JmePaletteUtilities;
import javax.swing.text.BadLocationException;
import javax.swing.text.JTextComponent;
import org.openide.text.ActiveEditorDrop;
/**
*
* @author normenhansen, zathras
*/
public class JmePaletteFog implements ActiveEditorDrop {
public JmePaletteFog() {
}
private String createBody() {
String body = " /** Add fog to a scene */\n FilterPostProcessor fpp=new FilterPostProcessor(assetManager);\n FogFilter fog=new FogFilter();\n fog.setFogColor(new ColorRGBA(0.9f, 0.9f, 0.9f, 1.0f));\n fog.setFogDistance(155);\n fog.setFogDensity(2.0f);\n fpp.addFilter(fog);\n viewPort.addProcessor(fpp);
\n";
return body;
}
public boolean handleTransfer(JTextComponent targetComponent) {
String body = createBody();
try {
JmePaletteUtilities.insert(body, targetComponent);
} catch (BadLocationException ble) {
return false;
}
return true;
}
}

@ -0,0 +1,64 @@
/*
* Copyright (c) 2009-2010 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'jMonkeyEngine' nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package com.jme3.gde.codepalette.scene;
import com.jme3.gde.codepalette.JmePaletteUtilities;
import javax.swing.text.BadLocationException;
import javax.swing.text.JTextComponent;
import org.openide.text.ActiveEditorDrop;
/**
*
* @author normenhansen, zathras
*/
public class JmePaletteJ3OLoad implements ActiveEditorDrop {
public JmePaletteJ3OLoad() {
}
private String createBody() {
String body = " /** Load a Node from a .j3o file */\n String userHome = System.getProperty(\"user.home\");\n BinaryImporter importer = BinaryImporter.getInstance();\n importer.setAssetManager(assetManager);\n File file = new File(userHome+\"/somefile.j3o\");\n try {\n Node loadedNode = (Node)importer.load(file);\n loadedNode.setName(\"loaded node\");\n rootNode.attachChild(loadedNode);\n } catch (IOException ex) {\n Logger.getLogger(Main.class.getName()).log(Level.SEVERE, \"No saved node loaded.\", ex);\n } \n";
return body;
}
public boolean handleTransfer(JTextComponent targetComponent) {
String body = createBody();
try {
JmePaletteUtilities.insert(body, targetComponent);
} catch (BadLocationException ble) {
return false;
}
return true;
}
}

@ -0,0 +1,64 @@
/*
* Copyright (c) 2009-2010 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'jMonkeyEngine' nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package com.jme3.gde.codepalette.scene;
import com.jme3.gde.codepalette.JmePaletteUtilities;
import javax.swing.text.BadLocationException;
import javax.swing.text.JTextComponent;
import org.openide.text.ActiveEditorDrop;
/**
*
* @author normenhansen, zathras
*/
public class JmePaletteJ3OSave implements ActiveEditorDrop {
public JmePaletteJ3OSave() {
}
private String createBody() {
String body = " /** Save a Node to a .j3o file. */\n String userHome = System.getProperty(\"user.home\");\n BinaryExporter exporter = BinaryExporter.getInstance();\n File file = new File(userHome+\"/somefile.j3o\");\n try {\n exporter.save(rootNode, file);\n } catch (IOException ex) {\n Logger.getLogger(Main.class.getName()).log(Level.SEVERE, \"Failed to save node!\", ex);\n } \n";
return body;
}
public boolean handleTransfer(JTextComponent targetComponent) {
String body = createBody();
try {
JmePaletteUtilities.insert(body, targetComponent);
} catch (BadLocationException ble) {
return false;
}
return true;
}
}

@ -0,0 +1,64 @@
/*
* Copyright (c) 2009-2010 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'jMonkeyEngine' nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package com.jme3.gde.codepalette.scene;
import com.jme3.gde.codepalette.JmePaletteUtilities;
import javax.swing.text.BadLocationException;
import javax.swing.text.JTextComponent;
import org.openide.text.ActiveEditorDrop;
/**
*
* @author normenhansen, zathras
*/
public class JmePaletteLightScatter implements ActiveEditorDrop {
public JmePaletteLightScatter() {
}
private String createBody() {
String body = " /** Show scattered light beams when camera looks into \"sun\". */\n FilterPostProcessor fpp=new FilterPostProcessor(assetManager);\n LightScatteringFilter sunlight = new LightScatteringFilter(new Vector3f(.5f,.5f,.5f).multLocal(-3000));\n fpp.addFilter(sunlight);\n viewPort.addProcessor(fpp); \n";
return body;
}
public boolean handleTransfer(JTextComponent targetComponent) {
String body = createBody();
try {
JmePaletteUtilities.insert(body, targetComponent);
} catch (BadLocationException ble) {
return false;
}
return true;
}
}

@ -40,14 +40,14 @@ import org.openide.text.ActiveEditorDrop;
*
* @author normenhansen, zathras
*/
public class JmePaletteSetJ3M implements ActiveEditorDrop {
public class JmePaletteWireframe implements ActiveEditorDrop {
public JmePaletteSetJ3M() {
public JmePaletteWireframe() {
}
private String createBody() {
String body = " myj3oModel.setMaterial( (Material)assetManager.loadAsset( \"mymaterial.j3m\") );\n";
String body = "mat.getAdditionalRenderState().setWireframe(true);\n";
return body;
}

@ -0,0 +1,64 @@
/*
* Copyright (c) 2009-2010 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'jMonkeyEngine' nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package com.jme3.gde.codepalette.scene;
import com.jme3.gde.codepalette.JmePaletteUtilities;
import javax.swing.text.BadLocationException;
import javax.swing.text.JTextComponent;
import org.openide.text.ActiveEditorDrop;
/**
*
* @author normenhansen, zathras
*/
public class JmePaletteShadowAO implements ActiveEditorDrop {
public JmePaletteShadowAO() {
}
private String createBody() {
String body = " /** Ambient occlusion shadows */ \n FilterPostProcessor fpp = new FilterPostProcessor(assetManager);\n SSAOFilter ssaoFilter = new SSAOFilter(12.94f, 43.92f, 0.33f, 0.61);\n fpp.addFilter(ssaoFilter);\n viewPort.addProcessor(fpp); \n";
return body;
}
public boolean handleTransfer(JTextComponent targetComponent) {
String body = createBody();
try {
JmePaletteUtilities.insert(body, targetComponent);
} catch (BadLocationException ble) {
return false;
}
return true;
}
}

@ -0,0 +1,64 @@
/*
* Copyright (c) 2009-2010 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'jMonkeyEngine' nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package com.jme3.gde.codepalette.scene;
import com.jme3.gde.codepalette.JmePaletteUtilities;
import javax.swing.text.BadLocationException;
import javax.swing.text.JTextComponent;
import org.openide.text.ActiveEditorDrop;
/**
*
* @author normenhansen, zathras
*/
public class JmePaletteShadowBasic implements ActiveEditorDrop {
public JmePaletteShadowBasic() {
}
private String createBody() {
String body = " /** Basic shadow for even surfaces */ \n BasicShadowRenderer bsr = new BasicShadowRenderer(assetManager, 256);\n bsr.setDirection(new Vector3f(-.5f,-.5f,-.5f).normalizeLocal());\n viewPort.addProcessor(bsr); \n ";
return body;
}
public boolean handleTransfer(JTextComponent targetComponent) {
String body = createBody();
try {
JmePaletteUtilities.insert(body, targetComponent);
} catch (BadLocationException ble) {
return false;
}
return true;
}
}

@ -0,0 +1,64 @@
/*
* Copyright (c) 2009-2010 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'jMonkeyEngine' nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package com.jme3.gde.codepalette.scene;
import com.jme3.gde.codepalette.JmePaletteUtilities;
import javax.swing.text.BadLocationException;
import javax.swing.text.JTextComponent;
import org.openide.text.ActiveEditorDrop;
/**
*
* @author normenhansen, zathras
*/
public class JmePaletteShadowPSSM implements ActiveEditorDrop {
public JmePaletteShadowPSSM() {
}
private String createBody() {
String body = "/** Advanced shadows for uneven surfaces */ \n PssmShadowRenderer pssm = new PssmShadowRenderer(assetManager, 1024, 3);\n pssm.setDirection(new Vector3f(-.5f,-.5f,-.5f).normalizeLocal());\n viewPort.addProcessor(pssm); \n";
return body;
}
public boolean handleTransfer(JTextComponent targetComponent) {
String body = createBody();
try {
JmePaletteUtilities.insert(body, targetComponent);
} catch (BadLocationException ble) {
return false;
}
return true;
}
}

@ -0,0 +1,64 @@
/*
* Copyright (c) 2009-2010 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'jMonkeyEngine' nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package com.jme3.gde.codepalette.scene;
import com.jme3.gde.codepalette.JmePaletteUtilities;
import javax.swing.text.BadLocationException;
import javax.swing.text.JTextComponent;
import org.openide.text.ActiveEditorDrop;
/**
*
* @author normenhansen, zathras
*/
public class JmePaletteShowNormals implements ActiveEditorDrop {
public JmePaletteShowNormals() {
}
private String createBody() {
String body = " Material mat = new Material( assetManager, \"Common/MatDefs/Misc/ShowNormals.j3md\");\n geometry.setMaterial(mat);\n";
return body;
}
public boolean handleTransfer(JTextComponent targetComponent) {
String body = createBody();
try {
JmePaletteUtilities.insert(body, targetComponent);
} catch (BadLocationException ble) {
return false;
}
return true;
}
}

@ -0,0 +1,64 @@
/*
* Copyright (c) 2009-2010 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'jMonkeyEngine' nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package com.jme3.gde.codepalette.scene;
import com.jme3.gde.codepalette.JmePaletteUtilities;
import javax.swing.text.BadLocationException;
import javax.swing.text.JTextComponent;
import org.openide.text.ActiveEditorDrop;
/**
*
* @author normenhansen, zathras
*/
public class JmePaletteSpotLight implements ActiveEditorDrop {
public JmePaletteSpotLight() {
}
private String createBody() {
String body = " /** A cone-shaped spotlight with location, direction, range */\n SpotLight spot = new SpotLight(); \n spot = new SpotLight(); \n spot.setSpotRange(100); \n spot.setSpotOuterAngle(20 * FastMath.DEG_TO_RAD); \n spot.setSpotInnerAngle(15 * FastMath.DEG_TO_RAD); \n spot.setDirection(cam.getDirection()); \n spot.setPosition(cam.getLocation()); \n rootNode.addLight(spot); \n";
return body;
}
public boolean handleTransfer(JTextComponent targetComponent) {
String body = createBody();
try {
JmePaletteUtilities.insert(body, targetComponent);
} catch (BadLocationException ble) {
return false;
}
return true;
}
}

@ -47,7 +47,7 @@ public class JmePaletteSunLight implements ActiveEditorDrop {
private String createBody() {
String body = " /** A white, directional light source */ \n DirectionalLight sun = new DirectionalLight();\n sun.setDirection(new Vector3f(1,0,-2).normalizeLocal());\n sun.setColor(ColorRGBA.White);\n rootNode.addLight(sun); ";
String body = " /** A white, directional light source */ \n DirectionalLight sun = new DirectionalLight();\n sun.setDirection((new Vector3f(-0.5f, -0.5f, -0.5f)).normalize());\n sun.setColor(ColorRGBA.White);\n rootNode.addLight(sun); ";
return body;
}

@ -0,0 +1,64 @@
/*
* Copyright (c) 2009-2010 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of 'jMonkeyEngine' nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package com.jme3.gde.codepalette.scene;
import com.jme3.gde.codepalette.JmePaletteUtilities;
import javax.swing.text.BadLocationException;
import javax.swing.text.JTextComponent;
import org.openide.text.ActiveEditorDrop;
/**
*
* @author normenhansen, zathras
*/
public class JmePaletteSetJ3M implements ActiveEditorDrop {
public JmePaletteSetJ3M() {
}
private String createBody() {
String body = "Material mat = assetManager.loadMaterial(\"Common/Materials/RedColor.j3m\");\n";
return body;
}
public boolean handleTransfer(JTextComponent targetComponent) {
String body = createBody();
try {
JmePaletteUtilities.insert(body, targetComponent);
} catch (BadLocationException ble) {
return false;
}
return true;
}
}

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE editor_palette_item PUBLIC "-//NetBeans//Editor Palette Item 1.1//EN"
"http://www.netbeans.org/dtds/editor-palette-item-1_1.dtd">
<editor_palette_item version="1.0">
<class name="com.jme3.gde.codepalette.scene.JmePaletteLightScatter" />
<icon16 urlvalue="com/jme3/gde/core/sceneviewer/jme-logo.png" />
<icon32 urlvalue="com/jme3/gde/core/sceneviewer/jme-logo.png" />
<inline-description>
<display-name>LightScatter</display-name>
<tooltip>Light beams scatter when camera looks into "sun".</tooltip>
</inline-description>
</editor_palette_item>

@ -10,8 +10,8 @@
<icon32 urlvalue="com/jme3/gde/core/sceneviewer/jme-logo.png" />
<inline-description>
<display-name>Model</display-name>
<tooltip>loading model from assets</tooltip>
<display-name>Load Model</display-name>
<tooltip>Loading model from assets directory</tooltip>
</inline-description>
</editor_palette_item>

@ -10,8 +10,8 @@
<icon32 urlvalue="com/jme3/gde/core/sceneviewer/jme-logo.png" />
<inline-description>
<display-name>Node</display-name>
<tooltip>new node</tooltip>
<display-name>New Node</display-name>
<tooltip>Create a new node.</tooltip>
</inline-description>
</editor_palette_item>

@ -10,8 +10,8 @@
<icon32 urlvalue="com/jme3/gde/core/sceneviewer/jme-logo.png" />
<inline-description>
<display-name>Set j3m</display-name>
<tooltip>Set j3m Material</tooltip>
<display-name>Set J3M</display-name>
<tooltip>Set J3M Material</tooltip>
</inline-description>
</editor_palette_item>

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE editor_palette_item PUBLIC "-//NetBeans//Editor Palette Item 1.1//EN"
"http://www.netbeans.org/dtds/editor-palette-item-1_1.dtd">
<editor_palette_item version="1.0">
<class name="com.jme3.gde.codepalette.scene.JmePaletteShowNormals" />
<icon16 urlvalue="com/jme3/gde/core/sceneviewer/jme-logo.png" />
<icon32 urlvalue="com/jme3/gde/core/sceneviewer/jme-logo.png" />
<inline-description>
<display-name>Set ShowNormals</display-name>
<tooltip>Set an asset-less material that colorizes normal vectors</tooltip>
</inline-description>
</editor_palette_item>

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE editor_palette_item PUBLIC "-//NetBeans//Editor Palette Item 1.1//EN"
"http://www.netbeans.org/dtds/editor-palette-item-1_1.dtd">
<editor_palette_item version="1.0">
<class name="com.jme3.gde.codepalette.scene.JmePaletteWireframe" />
<icon16 urlvalue="com/jme3/gde/core/sceneviewer/jme-logo.png" />
<icon32 urlvalue="com/jme3/gde/core/sceneviewer/jme-logo.png" />
<inline-description>
<display-name>Set Wireframe</display-name>
<tooltip>Sets a wireframe material</tooltip>
</inline-description>
</editor_palette_item>

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE editor_palette_item PUBLIC "-//NetBeans//Editor Palette Item 1.1//EN"
"http://www.netbeans.org/dtds/editor-palette-item-1_1.dtd">
<editor_palette_item version="1.0">
<class name="com.jme3.gde.codepalette.scene.JmePaletteShadowAO" />
<icon16 urlvalue="com/jme3/gde/core/sceneviewer/jme-logo.png" />
<icon32 urlvalue="com/jme3/gde/core/sceneviewer/jme-logo.png" />
<inline-description>
<display-name>Shadow AO</display-name>
<tooltip>Ambient Occlusion Shadow</tooltip>
</inline-description>
</editor_palette_item>

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE editor_palette_item PUBLIC "-//NetBeans//Editor Palette Item 1.1//EN"
"http://www.netbeans.org/dtds/editor-palette-item-1_1.dtd">
<editor_palette_item version="1.0">
<class name="com.jme3.gde.codepalette.scene.JmePaletteShadowBasic" />
<icon16 urlvalue="com/jme3/gde/core/sceneviewer/jme-logo.png" />
<icon32 urlvalue="com/jme3/gde/core/sceneviewer/jme-logo.png" />
<inline-description>
<display-name>Basic Shadow</display-name>
<tooltip>Basic shadows on even surfaces.</tooltip>
</inline-description>
</editor_palette_item>

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE editor_palette_item PUBLIC "-//NetBeans//Editor Palette Item 1.1//EN"
"http://www.netbeans.org/dtds/editor-palette-item-1_1.dtd">
<editor_palette_item version="1.0">
<class name="com.jme3.gde.codepalette.scene.JmePaletteShadowPSSM" />
<icon16 urlvalue="com/jme3/gde/core/sceneviewer/jme-logo.png" />
<icon32 urlvalue="com/jme3/gde/core/sceneviewer/jme-logo.png" />
<inline-description>
<display-name>Shadow PSSM</display-name>
<tooltip>Advanced shadows for uneven surfaces</tooltip>
</inline-description>
</editor_palette_item>

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE editor_palette_item PUBLIC "-//NetBeans//Editor Palette Item 1.1//EN"
"http://www.netbeans.org/dtds/editor-palette-item-1_1.dtd">
<editor_palette_item version="1.0">
<class name="com.jme3.gde.codepalette.scene.JmePaletteSpotLight" />
<icon16 urlvalue="com/jme3/gde/core/sceneviewer/jme-logo.png" />
<icon32 urlvalue="com/jme3/gde/core/sceneviewer/jme-logo.png" />
<inline-description>
<display-name>SpotLight</display-name>
<tooltip>light source (spot light)</tooltip>
</inline-description>
</editor_palette_item>
Loading…
Cancel
Save