Compare commits
119 Commits
master
...
revert-671
Author | SHA1 | Date |
---|---|---|
empirephoenix | afe86a314d | 8 years ago |
empirephoenix | ec71c5e04e | 8 years ago |
javasabr | fa84e7bf28 | 8 years ago |
Nehon | b1727b9772 | 8 years ago |
empirephoenix | 088419eef0 | 8 years ago |
Rémy Bouquet | 9ba574e584 | 8 years ago |
Nehon | c154a47b02 | 8 years ago |
MeFisto94 | 10b23db94d | 8 years ago |
MeFisto94 | 479392f6fd | 8 years ago |
Rémy Bouquet | 5470abb2b0 | 8 years ago |
empirephoenix | 8214346e8b | 8 years ago |
empirephoenix | a87db2c117 | 8 years ago |
empirephoenix | 0f93df648e | 8 years ago |
Paul Speed | af04bf9d22 | 8 years ago |
empirephoenix | 2761bc3677 | 8 years ago |
Riccardo Balbo | 1ae6e98d05 | 8 years ago |
Nehon | 69cd160956 | 8 years ago |
Nehon | 789daa6295 | 8 years ago |
Rémy Bouquet | 659ed8fd23 | 8 years ago |
Stephen Gold | f3e2925bd8 | 8 years ago |
Rémy Bouquet | 5d2c89f040 | 8 years ago |
Stephen Gold | ac8eb4d40a | 8 years ago |
Nehon | aae6170cc5 | 8 years ago |
iwgeric | 7ecb81c230 | 8 years ago |
Paul Speed | 63e8c9c485 | 8 years ago |
empirephoenix | 975954fb17 | 8 years ago |
Fennel | e60d67b1bb | 8 years ago |
Paul Speed | 92b5d40003 | 8 years ago |
Paul Speed | 4952ad0cb5 | 8 years ago |
Paul Speed | a13a3a7f09 | 8 years ago |
Paul Speed | 735397f16e | 8 years ago |
Paul Speed | c1764bc425 | 8 years ago |
Paul Speed | da1b7da329 | 8 years ago |
Paul Speed | e879a0e142 | 8 years ago |
Fadorico | e3bd122519 | 8 years ago |
Kirill Vainer | 36e99bf032 | 8 years ago |
Kirill Vainer | c37f0e59d2 | 8 years ago |
Kirill Vainer | 06757f73b4 | 8 years ago |
Kirill Vainer | 35b9eed76f | 8 years ago |
Kirill Vainer | e4ed3313d5 | 8 years ago |
Kirill Vainer | 8ce2f9cfe7 | 8 years ago |
Kirill Vainer | b99d03bd3c | 8 years ago |
Kirill Vainer | f800d74e87 | 8 years ago |
Kirill Vainer | 78ac8df78a | 8 years ago |
Kirill Vainer | 39dc140f79 | 8 years ago |
Kirill Vainer | f38becf2c6 | 8 years ago |
Kirill Vainer | 72b9f186ed | 8 years ago |
Kirill Vainer | 8c4b44941e | 8 years ago |
Nehon | a71fb286f4 | 8 years ago |
Nehon | 69d8e5d13e | 8 years ago |
Paul Speed | 4919620e61 | 8 years ago |
Nehon | 1315af8d52 | 8 years ago |
Nehon | efd47c4347 | 8 years ago |
Nehon | 142b006ad6 | 8 years ago |
Nehon | 9500227ca7 | 8 years ago |
Nehon | 5495b7d064 | 8 years ago |
Nehon | da5e4a18c7 | 8 years ago |
Nehon | dd8271e8b3 | 8 years ago |
jjYBdx4IL | cfd491e270 | 8 years ago |
Nehon | 95bf9efe9b | 8 years ago |
Rémy Bouquet | 7e458e496c | 8 years ago |
Kirill Vainer | 09e9c1efa0 | 8 years ago |
Kirill Vainer | 2440fc5a74 | 8 years ago |
empirephoenix | bbad454e43 | 8 years ago |
empirephoenix | 7eb9463496 | 8 years ago |
Rémy Bouquet | 769cf36221 | 8 years ago |
MeFisto94 | 7b0a00b364 | 8 years ago |
Rémy Bouquet | b42bf7f67e | 8 years ago |
Rémy Bouquet | 056dbdf981 | 8 years ago |
Rémy Bouquet | a7edef3a06 | 8 years ago |
Toni Helenius | 52c0a35525 | 8 years ago |
Riccardo Balbo | c92009a40a | 8 years ago |
Rémy Bouquet | e4a8b8d91c | 9 years ago |
tiatin | f65f0a7ee8 | 9 years ago |
Julien Gouesse | 4ba4da2e31 | 9 years ago |
saloisio | 05c39990ca | 9 years ago |
Rémy Bouquet | fae07c9c71 | 9 years ago |
Rémy Bouquet | eefc17428c | 9 years ago |
Julien Gouesse | 75c3d61f8f | 9 years ago |
saloisio | d0175a77b6 | 9 years ago |
saloisio | 9b8c27a0fb | 9 years ago |
Paul Speed | 02c5d9d414 | 9 years ago |
tiatin | d8529573e4 | 9 years ago |
tiatin | 9b0422fc3c | 9 years ago |
tiatin | 93c2fd1989 | 9 years ago |
javasabr | be66436745 | 9 years ago |
empirephoenix | 2c3d94a166 | 9 years ago |
Paul Speed | a2efd1323f | 9 years ago |
David Bernard | 758fdcf394 | 9 years ago |
javasabr | f354343e47 | 9 years ago |
David Bernard | f46680815d | 9 years ago |
Nehon | 3d1a541903 | 9 years ago |
Nehon | 6bdf479a0a | 9 years ago |
Rémy Bouquet | 29dfff223c | 9 years ago |
Kirill Vainer | 4faf6cf36c | 9 years ago |
Kirill Vainer | d27b26805a | 9 years ago |
Kirill Vainer | b2a57e130a | 9 years ago |
Kirill Vainer | fafccdf15e | 9 years ago |
Kirill Vainer | 513fc08fb6 | 9 years ago |
Kirill Vainer | 3419256941 | 9 years ago |
Kirill Vainer | 2a0a9e7b6e | 9 years ago |
Kirill Vainer | a7b20629e7 | 9 years ago |
Kirill Vainer | 8416dd8c65 | 9 years ago |
Kirill Vainer | 7d4a34f96f | 9 years ago |
Kirill Vainer | 804c173757 | 9 years ago |
Kirill Vainer | 6dfd59ea73 | 9 years ago |
Kirill Vainer | 8f7abca01b | 9 years ago |
Kirill Vainer | 2c94a3f538 | 9 years ago |
Kirill Vainer | 652358038d | 9 years ago |
Paul Speed | 2fd9da3d50 | 9 years ago |
MeFisto94 | 310f4db6ad | 9 years ago |
Kirill Vainer | d044ad13e1 | 9 years ago |
Kirill Vainer | 185eb7b6e5 | 9 years ago |
Kirill Vainer | 0f5514192a | 9 years ago |
Kirill Vainer | f692f82e96 | 9 years ago |
Kirill Vainer | 656a86ba0e | 9 years ago |
Kirill Vainer | 8d132d35f0 | 9 years ago |
Dokthar | 0f1f1e6bc7 | 9 years ago |
Riccardo Balbo | d2c608c788 | 9 years ago |
Binary file not shown.
@ -1,6 +1,6 @@ |
||||
#Mon Dec 01 20:04:11 EST 2014 |
||||
#Sat Apr 30 16:44:31 EDT 2016 |
||||
distributionBase=GRADLE_USER_HOME |
||||
distributionPath=wrapper/dists |
||||
zipStoreBase=GRADLE_USER_HOME |
||||
zipStorePath=wrapper/dists |
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-bin.zip |
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.13-bin.zip |
||||
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,29 @@ |
||||
package com.jme3.util; |
||||
|
||||
import com.jme3.scene.*; |
||||
|
||||
/** |
||||
* Created by Nehon on 03/10/2016. |
||||
*/ |
||||
public class TangentUtils { |
||||
|
||||
public static void generateBindPoseTangentsIfNecessary(Mesh mesh){ |
||||
if (mesh.getBuffer(VertexBuffer.Type.BindPosePosition) != null) { |
||||
|
||||
VertexBuffer tangents = mesh.getBuffer(VertexBuffer.Type.Tangent); |
||||
if (tangents != null) { |
||||
VertexBuffer bindTangents = new VertexBuffer(VertexBuffer.Type.BindPoseTangent); |
||||
bindTangents.setupData(VertexBuffer.Usage.CpuOnly, |
||||
4, |
||||
VertexBuffer.Format.Float, |
||||
BufferUtils.clone(tangents.getData())); |
||||
|
||||
if (mesh.getBuffer(VertexBuffer.Type.BindPoseTangent) != null) { |
||||
mesh.clearBuffer(VertexBuffer.Type.BindPoseTangent); |
||||
} |
||||
mesh.setBuffer(bindTangents); |
||||
tangents.setUsage(VertexBuffer.Usage.Stream); |
||||
} |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,62 @@ |
||||
package jme3test.scene.instancing; |
||||
|
||||
import com.jme3.app.SimpleApplication; |
||||
import com.jme3.light.PointLight; |
||||
import com.jme3.material.Material; |
||||
import com.jme3.math.ColorRGBA; |
||||
import com.jme3.math.Vector3f; |
||||
import com.jme3.scene.Geometry; |
||||
import com.jme3.scene.instancing.InstancedNode; |
||||
import com.jme3.scene.shape.Box; |
||||
|
||||
public class TestInstanceNodeWithLight extends SimpleApplication { |
||||
// Try to test with different offset
|
||||
private static float offset = 12; |
||||
|
||||
public static void main(String[] args) { |
||||
TestInstanceNodeWithLight app = new TestInstanceNodeWithLight(); |
||||
app.start(); |
||||
} |
||||
|
||||
Geometry box; |
||||
PointLight pointLight; |
||||
|
||||
@Override |
||||
public void simpleInitApp() { |
||||
InstancedNode instancedNode = new InstancedNode("testInstancedNode"); |
||||
rootNode.attachChild(instancedNode); |
||||
|
||||
box = new Geometry("Box", new Box(0.5f, 0.5f, 0.5f)); |
||||
Material material = new Material(assetManager, "Common/MatDefs/Light/Lighting.j3md"); |
||||
material.setBoolean("UseInstancing", true); |
||||
material.setColor("Diffuse", ColorRGBA.Red); |
||||
material.setBoolean("UseMaterialColors", true); |
||||
box.setMaterial(material); |
||||
|
||||
instancedNode.attachChild(box); |
||||
instancedNode.instance(); |
||||
|
||||
pointLight = new PointLight(); |
||||
pointLight.setColor(ColorRGBA.White); |
||||
pointLight.setRadius(10f); |
||||
rootNode.addLight(pointLight); |
||||
|
||||
box.setLocalTranslation(new Vector3f(offset, 0, 0)); |
||||
pointLight.setPosition(new Vector3f(offset - 3f, 0, 0)); |
||||
|
||||
cam.setLocation(new Vector3f(offset - 5f, 0, 0)); |
||||
cam.lookAtDirection(Vector3f.UNIT_X, Vector3f.UNIT_Y); |
||||
} |
||||
|
||||
@Override |
||||
public void simpleUpdate(float tpf) { |
||||
offset += tpf; |
||||
|
||||
System.err.println(offset); |
||||
box.setLocalTranslation(new Vector3f(offset, 0, 0)); |
||||
pointLight.setPosition(new Vector3f(offset - 3f, 0, 0)); |
||||
|
||||
cam.setLocation(new Vector3f(offset - 5f, 0, 0)); |
||||
cam.lookAtDirection(Vector3f.UNIT_X, Vector3f.UNIT_Y); |
||||
} |
||||
} |
@ -1 +0,0 @@ |
||||
updates.jmonkeyengine.org ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC5bNOiZwU5dF62nBllxkjiSIfn0k6RVfprvO1aUypRmARD3/MKJKg7cGLezlLKaHZtVs84VpEqpmg5IzPAXWEmxUw1oke70uYMli7JV+4oPAeQRFwUdldP98I5h9VHwSjBqMycRLkxYaHF8edIPt1Zsa2dM3qrufy71ndQoFF6g7QxmT7gsTxwcNufDxymIgiAna/Qp2fr0YCLCiB8RQ7JTHfqA3dOWw0wz7AwfBTwwDCHkVxB5B4nz5iZxFr0scvqcae8vMncq8xKS7OMrLbn6asVaF6dDu+5Jc0mqxma5Qg7VC1xQXZsvlRISfrTFhQMhEx+j9w5snzihrlFnZ35 |
Binary file not shown.
@ -1,6 +0,0 @@ |
||||
task copySshKnownHosts(type: Copy) { |
||||
from 'private/known_hosts' |
||||
into System.properties['user.home'] + '/.ssh' |
||||
} |
||||
|
||||
uploadArchives.dependsOn copySshKnownHosts |
Loading…
Reference in new issue