本文整理了Java中com.jme3.scene.Mesh.setMaxNumWeights()
方法的一些代码示例,展示了Mesh.setMaxNumWeights()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Mesh.setMaxNumWeights()
方法的具体详情如下:
包路径:com.jme3.scene.Mesh
类名称:Mesh
方法名:setMaxNumWeights
[英]Set the maximum number of weights per vertex on this mesh. Only relevant if this mesh has bone index/weight buffers. This value should be between 0 and 4.
[中]设置此网格上每个顶点的最大权重数。仅当此网格具有骨骼索引/权重缓冲区时才相关。该值应介于0和4之间。
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
indicesData = null;
mesh.setMaxNumWeights(maxWeightsPerVert);
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
sum += data.value;
if (data.value > 0 && (j + 1) > mesh.getMaxNumWeights()) {
mesh.setMaxNumWeights(j + 1);
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
jmeMesh.setMaxNumWeights(maxBonesPerVertex);
jmeMesh.prepareForAnim(true);
jmeMesh.generateBindPose(true);
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
public void generateSkinning() {
for(FbxMesh fbxMesh : toSkin) {
if(fbxMesh.geometries == null)
continue;
Mesh firstMesh = fbxMesh.geometries.get(0).getMesh();
int maxWeightsPerVert = generateBoneData(firstMesh, fbxMesh);
for(int i = 0; i < fbxMesh.geometries.size(); ++i) {
Mesh mesh = fbxMesh.geometries.get(i).getMesh();
if(mesh != firstMesh) {
mesh.setBuffer(firstMesh.getBuffer(VertexBuffer.Type.BoneWeight));
mesh.setBuffer(firstMesh.getBuffer(VertexBuffer.Type.BoneIndex));
mesh.setBuffer(firstMesh.getBuffer(VertexBuffer.Type.HWBoneWeight));
mesh.setBuffer(firstMesh.getBuffer(VertexBuffer.Type.HWBoneIndex));
}
mesh.setMaxNumWeights(maxWeightsPerVert);
mesh.generateBindPose(true);
}
}
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
mesh.setMaxNumWeights(boneBuffersData.maximumWeightsPerVertex);
mesh.setBuffer(boneBuffersData.verticesWeights);
mesh.setBuffer(boneBuffersData.verticesWeightsIndices);
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
setMaxNumWeights(other.getMaxNumWeights());
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
outMesh.setMaxNumWeights(maxWeights);
outMesh.setMode(mode);
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
outMesh.setMaxNumWeights(maxWeights);
outMesh.setMode(mode);
if (totalVerts >= 65536) {
代码示例来源:origin: us.ihmc.thirdparty.jme/jme3-plugins
indicesData = null;
mesh.setMaxNumWeights(maxWeightsPerVert);
代码示例来源:origin: org.jmonkeyengine/jme3-plugins
indicesData = null;
mesh.setMaxNumWeights(maxWeightsPerVert);
代码示例来源:origin: info.projectkyoto/mms-engine
indicesData = null;
mesh.setMaxNumWeights(maxWeightsPerVert);
代码示例来源:origin: org.jmonkeyengine/jme3-plugins
sum += data.value;
if (data.value > 0 && (j + 1) > mesh.getMaxNumWeights()) {
mesh.setMaxNumWeights(j + 1);
代码示例来源:origin: us.ihmc.thirdparty.jme/jme3-plugins
mesh.setMaxNumWeights(maxWeightsPerVert);
mesh.generateBindPose(true);
代码示例来源:origin: org.jmonkeyengine/jme3-plugins
jmeMesh.setMaxNumWeights(maxBonesPerVertex);
jmeMesh.prepareForAnim(true);
jmeMesh.generateBindPose(true);
代码示例来源:origin: org.jmonkeyengine/jme3-plugins
public void generateSkinning() {
for(FbxMesh fbxMesh : toSkin) {
if(fbxMesh.geometries == null)
continue;
Mesh firstMesh = fbxMesh.geometries.get(0).getMesh();
int maxWeightsPerVert = generateBoneData(firstMesh, fbxMesh);
for(int i = 0; i < fbxMesh.geometries.size(); ++i) {
Mesh mesh = fbxMesh.geometries.get(i).getMesh();
if(mesh != firstMesh) {
mesh.setBuffer(firstMesh.getBuffer(VertexBuffer.Type.BoneWeight));
mesh.setBuffer(firstMesh.getBuffer(VertexBuffer.Type.BoneIndex));
mesh.setBuffer(firstMesh.getBuffer(VertexBuffer.Type.HWBoneWeight));
mesh.setBuffer(firstMesh.getBuffer(VertexBuffer.Type.HWBoneIndex));
}
mesh.setMaxNumWeights(maxWeightsPerVert);
mesh.generateBindPose(true);
}
}
}
代码示例来源:origin: info.projectkyoto/mms-engine
setMaxNumWeights(other.getMaxNumWeights());
代码示例来源:origin: org.jmonkeyengine/jme3-core
setMaxNumWeights(other.getMaxNumWeights());
代码示例来源:origin: org.jmonkeyengine/jme3-core
outMesh.setMaxNumWeights(maxWeights);
outMesh.setMode(mode);
代码示例来源:origin: info.projectkyoto/mms-engine
outMesh.setMaxNumWeights(maxWeights);
outMesh.setMode(mode);
if (totalVerts >= 65536) {
代码示例来源:origin: org.jmonkeyengine/jme3-core
outMesh.setMaxNumWeights(maxWeights);
outMesh.setMode(mode);
if (totalVerts >= 65536) {
内容来源于网络,如有侵权,请联系作者删除!