Home
last modified time | relevance | path

Searched refs:blenderContext (Results 1 – 25 of 73) sorted by relevance

123

/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/modifiers/
DModifierHelper.java81 …public Collection<Modifier> readModifiers(Structure objectStructure, BlenderContext blenderContext in readModifiers() argument
84 List<Structure> modifiers = modifiersListBase.evaluateListBase(blenderContext); in readModifiers()
88 modifier = new ArrayModifier(modifierStructure, blenderContext); in readModifiers()
90 modifier = new MirrorModifier(modifierStructure, blenderContext); in readModifiers()
92 modifier = new ArmatureModifier(objectStructure, modifierStructure, blenderContext); in readModifiers()
94 modifier = new ParticlesModifier(modifierStructure, blenderContext); in readModifiers()
99 blenderContext.addModifier(objectStructure.getOldMemoryAddress(), modifier); in readModifiers()
109 modifier = this.readAnimationModifier249(objectStructure, blenderContext); in readModifiers()
111 modifier = this.readAnimationModifier250(objectStructure, blenderContext); in readModifiers()
120 public boolean shouldBeLoaded(Structure structure, BlenderContext blenderContext) { in shouldBeLoaded() argument
[all …]
DArmatureModifier.java85 …ructure objectStructure, Structure modifierStructure, BlenderContext blenderContext) throws Blende… in ArmatureModifier() argument
86 …ucture = ((Pointer) objectStructure.getFieldValue("data")).fetchData(blenderContext.getInputStream… in ArmatureModifier()
93 if (this.validate(modifierStructure, blenderContext) && pDvert.isNotNull()) { in ArmatureModifier()
96 ArmatureHelper armatureHelper = blenderContext.getHelper(ArmatureHelper.class); in ArmatureModifier()
98 Structure armatureObject = pArmatureObject.fetchData(blenderContext.getInputStream()).get(0); in ArmatureModifier()
101 …ructure = ((Pointer) armatureObject.getFieldValue("data")).fetchData(blenderContext.getInputStream… in ArmatureModifier()
103 …Structure pose = ((Pointer) armatureObject.getFieldValue("pose")).fetchData(blenderContext.getInpu… in ArmatureModifier()
104 …tructure> chanbase = ((Structure) pose.getFieldValue("chanbase")).evaluateListBase(blenderContext); in ArmatureModifier()
112 ObjectHelper objectHelper = blenderContext.getHelper(ObjectHelper.class); in ArmatureModifier()
117 …ebase = ((Structure) armatureStructure.getFieldValue("bonebase")).evaluateListBase(blenderContext); in ArmatureModifier()
[all …]
DArrayModifier.java54 …public ArrayModifier(Structure modifierStructure, BlenderContext blenderContext) throws BlenderFil… in ArrayModifier() argument
55 if(this.validate(modifierStructure, blenderContext)) { in ArrayModifier()
69 … Structure curveStructure = pCurveOb.fetchData(blenderContext.getInputStream()).get(0); in ArrayModifier()
70 ObjectHelper objectHelper = blenderContext.getHelper(ObjectHelper.class); in ArrayModifier()
71 … Node curveObject = (Node) objectHelper.toObject(curveStructure, blenderContext); in ArrayModifier()
129 public Node apply(Node node, BlenderContext blenderContext) { in apply() argument
164 …FileBlockHeader offsetObjectBlock = blenderContext.getFileBlock(pOffsetObject.getOldMemoryAddress(… in apply()
165 ObjectHelper objectHelper = blenderContext.getHelper(ObjectHelper.class); in apply()
167 Structure offsetStructure = offsetObjectBlock.getStructure(blenderContext); in apply()
168 …ctor3f translation = objectHelper.getTransformation(offsetStructure, blenderContext).getTranslatio… in apply()
[all …]
DParticlesModifier.java45 …public ParticlesModifier(Structure modifierStructure, BlenderContext blenderContext) throws Blende… in ParticlesModifier() argument
46 if(this.validate(modifierStructure, blenderContext)) { in ParticlesModifier()
49 ParticlesHelper particlesHelper = blenderContext.getHelper(ParticlesHelper.class); in ParticlesModifier()
50 Structure particleSystem = pParticleSystem.fetchData(blenderContext.getInputStream()).get(0); in ParticlesModifier()
51 particleEmitter = particlesHelper.toParticleEmitter(particleSystem, blenderContext); in ParticlesModifier()
57 public Node apply(Node node, BlenderContext blenderContext) { in apply() argument
63 MaterialHelper materialHelper = blenderContext.getHelper(MaterialHelper.class); in apply()
84 ((Geometry) spatial).getMaterial(), alphaFunction, blenderContext); in apply()
DObjectAnimationModifier.java48 …(Ipo ipo, String objectAnimationName, Long objectOMA, BlenderContext blenderContext) throws Blende… in ObjectAnimationModifier() argument
49 int fps = blenderContext.getBlenderKey().getFps(); in ObjectAnimationModifier()
60 blenderContext.setAnimData(objectOMA, animData); in ObjectAnimationModifier()
64 public Node apply(Node node, BlenderContext blenderContext) { in apply() argument
DMirrorModifier.java50 public MirrorModifier(Structure modifierStructure, BlenderContext blenderContext) { in MirrorModifier() argument
51 if(this.validate(modifierStructure, blenderContext)) { in MirrorModifier()
62 public Node apply(Node node, BlenderContext blenderContext) { in apply() argument
79 objectStructure = pObject.fetchData(blenderContext.getInputStream()).get(0); in apply()
80 ObjectHelper objectHelper = blenderContext.getHelper(ObjectHelper.class); in apply()
81 Node object = (Node) objectHelper.toObject(objectStructure, blenderContext); in apply()
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/
DBlenderLoader.java82 BlenderKey blenderKey = blenderContext.getBlenderKey(); in load()
88 Object object = this.toObject(block.getStructure(blenderContext)); in load()
108 loadingResults.addMaterial(this.toMaterial(block.getStructure(blenderContext))); in load()
113 loadingResults.addScene(this.toScene(block.getStructure(blenderContext))); in load()
118 Structure worldStructure = block.getStructure(blenderContext); in load()
130 blenderContext.dispose(); in load()
186 blenderContext = new BlenderContext(); in setup()
187 blenderContext.setBlenderVersion(inputStream.getVersionNumber()); in setup()
188 blenderContext.setAssetManager(assetInfo.getManager()); in setup()
189 blenderContext.setInputStream(inputStream); in setup()
[all …]
DAbstractBlenderLoader.java64 protected BlenderContext blenderContext; field in AbstractBlenderLoader
73 if ((blenderContext.getBlenderKey().getFeaturesToLoad() & FeaturesToLoad.SCENES) == 0) { in toScene()
78 …st<Structure> base = ((Structure)structure.getFieldValue("base")).evaluateListBase(blenderContext); in toScene()
82 Structure objectStructure = pObject.fetchData(blenderContext.getInputStream()).get(0); in toScene()
104 CameraHelper cameraHelper = blenderContext.getHelper(CameraHelper.class); in toCamera()
105 if (cameraHelper.shouldBeLoaded(structure, blenderContext)) { in toCamera()
118 LightHelper lightHelper = blenderContext.getHelper(LightHelper.class); in toLight()
119 if (lightHelper.shouldBeLoaded(structure, blenderContext)) { in toLight()
120 return lightHelper.toLight(structure, blenderContext); in toLight()
132 ObjectHelper objectHelper = blenderContext.getHelper(ObjectHelper.class); in toObject()
[all …]
DAbstractBlenderHelper.java152 …protected Properties loadProperties(Structure structure, BlenderContext blenderContext) throws Ble… in loadProperties() argument
158 Structure propertiesStructure = pProperties.fetchData(blenderContext.getInputStream()).get(0); in loadProperties()
160 properties.load(propertiesStructure, blenderContext); in loadProperties()
175 public abstract boolean shouldBeLoaded(Structure structure, BlenderContext blenderContext); in shouldBeLoaded() argument
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/animations/
DArmatureHelper.java94 …f arbt, final Map<Long, Structure> bonesPoseChannels, BlenderContext blenderContext) throws Blende… in buildBones() argument
95 BoneContext bc = new BoneContext(boneStructure, arbt, bonesPoseChannels, blenderContext); in buildBones()
96 bc.buildBone(result, bonesOMAs, blenderContext); in buildBones()
126 …dexMap(Structure defBaseStructure, Skeleton skeleton, BlenderContext blenderContext) throws Blende… in getGroupToBoneIndexMap() argument
130 List<Structure> deformGroups = defBaseStructure.evaluateListBase(blenderContext);// bDeformGroup in getGroupToBoneIndexMap()
145 public boolean shouldBeLoaded(Structure structure, BlenderContext blenderContext) { in shouldBeLoaded() argument
161 …tTracks(Structure actionStructure, Skeleton skeleton, BlenderContext blenderContext) throws Blende… in getTracks() argument
163 return this.getTracks249(actionStructure, skeleton, blenderContext); in getTracks()
165 return this.getTracks250(actionStructure, skeleton, blenderContext); in getTracks()
182 …acks250(Structure actionStructure, Skeleton skeleton, BlenderContext blenderContext) throws Blende… in getTracks250() argument
[all …]
DIpoHelper.java49 …public Ipo fromIpoStructure(Structure ipoStructure, BlenderContext blenderContext) throws BlenderF… in fromIpoStructure() argument
54 List<Structure> curves = curvebase.evaluateListBase(blenderContext);// IpoCurve in fromIpoStructure()
60 List<Structure> bezTriples = pBezTriple.fetchData(blenderContext.getInputStream()); in fromIpoStructure()
66blenderContext.addLoadedFeatures(ipoStructure.getOldMemoryAddress(), ipoStructure.getName(), ipoSt… in fromIpoStructure()
84 …public Ipo fromAction(Structure actionStructure, BlenderContext blenderContext) throws BlenderFile… in fromAction() argument
86 … = ((Structure) actionStructure.getFieldValue("curves")).evaluateListBase(blenderContext);// FCurve in fromAction()
92 List<Structure> bezTriples = pBezTriple.fetchData(blenderContext.getInputStream()); in fromAction()
93 int type = this.getCurveType(curve, blenderContext); in fromAction()
112 public int getCurveType(Structure structure, BlenderContext blenderContext) { in getCurveType() argument
114 BlenderInputStream bis = blenderContext.getInputStream(); in getCurveType()
[all …]
DBoneContext.java64 …Matrix, final Map<Long, Structure> bonesPoseChannels, BlenderContext blenderContext) throws Blende… in BoneContext() argument
65 this(boneStructure, null, objectToArmatureMatrix, bonesPoseChannels, blenderContext); in BoneContext()
85 …Matrix, final Map<Long, Structure> bonesPoseChannels, BlenderContext blenderContext) throws Blende… in BoneContext() argument
89 ObjectHelper objectHelper = blenderContext.getHelper(ObjectHelper.class); in BoneContext()
92 fixUpAxis = blenderContext.getBlenderKey().isFixUpAxis(); in BoneContext()
94 …hildbase = ((Structure) boneStructure.getFieldValue("childbase")).evaluateListBase(blenderContext); in BoneContext()
96 …ldren.add(new BoneContext(child, this, objectToArmatureMatrix, bonesPoseChannels, blenderContext)); in BoneContext()
101 blenderContext.setBoneContext(boneStructure.getOldMemoryAddress(), this); in BoneContext()
167 public Bone buildBone(List<Bone> bones, Map<Bone, Long> boneOMAs, BlenderContext blenderContext) { in buildBone() argument
172 blenderContext.addLoadedFeatures(boneOMA, boneName, boneStructure, bone); in buildBone()
[all …]
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/constraints/
DConstraintHelper.java63 public ConstraintHelper(String blenderVersion, BlenderContext blenderContext, boolean fixUpAxis) { in ConstraintHelper() argument
77 …public void loadConstraints(Structure objectStructure, BlenderContext blenderContext) throws Blend… in loadConstraints() argument
80 IpoHelper ipoHelper = blenderContext.getHelper(IpoHelper.class); in loadConstraints()
84 List<Structure> actions = pActions.fetchData(blenderContext.getInputStream()); in loadConstraints()
87 List<Structure> actionChannels = chanbase.evaluateListBase(blenderContext); in loadConstraints()
91 List<Structure> constraintChannels = constChannels.evaluateListBase(blenderContext); in loadConstraints()
96 … ipo = ipoHelper.fromIpoStructure(pIpo.fetchData(blenderContext.getInputStream()).get(0), blenderC… in loadConstraints()
109 …Structure) pPose.fetchData(blenderContext.getInputStream()).get(0).getFieldValue("chanbase")).eval… in loadConstraints()
115 …String name = blenderContext.getFileBlock(boneOMA).getStructure(blenderContext).getFieldValue("nam… in loadConstraints()
116 …straints = ((Structure) poseChannel.getFieldValue("constraints")).evaluateListBase(blenderContext); in loadConstraints()
[all …]
DConstraint.java34 protected final BlenderContext blenderContext; field in Constraint
52 Ipo influenceIpo, BlenderContext blenderContext) throws BlenderFileException { in Constraint() argument
53 this.blenderContext = blenderContext; in Constraint()
57 data = pData.fetchData(blenderContext.getInputStream()).get(0); in Constraint()
60 Structure targetStructure = pTar.fetchData(blenderContext.getInputStream()).get(0); in Constraint()
63 ObjectHelper objectHelper = blenderContext.getHelper(ObjectHelper.class); in Constraint()
64 Spatial target = (Spatial) objectHelper.toObject(targetStructure, blenderContext); in Constraint()
65 this.target = new Feature(target, targetSpace, targetOMA, blenderContext); in Constraint()
73 this.owner = new Feature(ownerSpace, ownerOMA, blenderContext); in Constraint()
DFeature.java31 protected BlenderContext blenderContext; field in Feature
45 public Feature(Space space, Long oma, BlenderContext blenderContext) { in Feature() argument
48 this.blenderContext = blenderContext; in Feature()
63 public Feature(Spatial spatial, Space space, Long oma, BlenderContext blenderContext) { in Feature() argument
64 this(space, oma, blenderContext); in Feature()
65 this.blenderContext = blenderContext; in Feature()
80 public Feature(Bone bone, Space space, Long oma, BlenderContext blenderContext) { in Feature() argument
81 this(space, oma, blenderContext); in Feature()
91 Object owner = blenderContext.getLoadedFeature(oma, LoadedFeatureDataType.LOADED_FEATURE); in update()
126 …Structure targetStructure = (Structure) blenderContext.getLoadedFeature(oma, LoadedFeatureDataType… in getTransform()
[all …]
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/objects/
DObjectHelper.java110 …public Object toObject(Structure objectStructure, BlenderContext blenderContext) throws BlenderFil… in toObject() argument
111 …Object loadedResult = blenderContext.getLoadedFeature(objectStructure.getOldMemoryAddress(), Loade… in toObject()
116 blenderContext.pushParent(objectStructure); in toObject()
128 …Object parent = blenderContext.getLoadedFeature(pParent.getOldMemoryAddress(), LoadedFeatureDataTy… in toObject()
130 Structure parentStructure = pParent.fetchData(blenderContext.getInputStream()).get(0); in toObject()
131 parent = this.toObject(parentStructure, blenderContext); in toObject()
134 Transform t = this.getTransformation(objectStructure, blenderContext); in toObject()
154 MeshHelper meshHelper = blenderContext.getHelper(MeshHelper.class); in toObject()
156 List<Structure> meshesArray = pMesh.fetchData(blenderContext.getInputStream()); in toObject()
157 List<Geometry> geometries = meshHelper.toMesh(meshesArray.get(0), blenderContext); in toObject()
[all …]
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/file/
DStructure.java48 private BlenderContext blenderContext; field in Structure
67 …private Structure(Structure structure, BlenderContext blenderContext) throws CloneNotSupportedExce… in Structure() argument
73 this.blenderContext = blenderContext; in Structure()
90 …utStream inputStream, String[] names, String[] types, BlenderContext blenderContext) throws Blende… in Structure() argument
93 this.blenderContext = blenderContext; in Structure()
103 fields[i] = new Field(names[nameIndex], types[typeIndex], blenderContext); in Structure()
175 …public List<Structure> evaluateListBase(BlenderContext blenderContext) throws BlenderFileException… in evaluateListBase() argument
186 Structure structure = first.fetchData(blenderContext.getInputStream()).get(0); in evaluateListBase()
266 return new Structure(this, blenderContext); in clone()
305 …public static DataType getDataType(String type, BlenderContext blenderContext) throws BlenderFileE… in getDataType() argument
[all …]
DFileBlockHeader.java86 …public FileBlockHeader(BlenderInputStream inputStream, BlenderContext blenderContext) throws Blend… in FileBlockHeader() argument
96 blenderContext.setBlockData(new DnaBlockData(inputStream, blenderContext)); in FileBlockHeader()
99 blenderContext.addFileBlockHeader(Long.valueOf(oldMemoryAddress), this); in FileBlockHeader()
110 public Structure getStructure(BlenderContext blenderContext) throws BlenderFileException { in getStructure() argument
111 blenderContext.getInputStream().setPosition(blockPosition); in getStructure()
112 Structure structure = blenderContext.getDnaBlockData().getStructure(sdnaIndex); in getStructure()
113 structure.fill(blenderContext.getInputStream()); in getStructure()
DPointer.java46 private BlenderContext blenderContext; field in Pointer
63 public Pointer(int pointerLevel, boolean function, BlenderContext blenderContext) { in Pointer() argument
66 this.blenderContext = blenderContext; in Pointer()
92 FileBlockHeader dataFileBlock = blenderContext.getFileBlock(oldMemoryAddress); in fetchData()
99 Pointer p = new Pointer(pointerLevel - 1, this.function, blenderContext); in fetchData()
112 … Structure structure = blenderContext.getDnaBlockData().getStructure(dataFileBlock.getSdnaIndex()); in fetchData()
DField.java20 public BlenderContext blenderContext; field in Field
47 …public Field(String name, String type, BlenderContext blenderContext) throws BlenderFileException { in Field() argument
49 this.blenderContext = blenderContext; in Field()
62 blenderContext = field.blenderContext; in Field()
92 …DataType dataType = pointerLevel == 0 ? DataType.getDataType(type, blenderContext) : DataType.POIN… in fill()
96 Pointer pointer = new Pointer(pointerLevel, function, blenderContext); in fill()
102 Pointer pointer = new Pointer(pointerLevel, function, blenderContext); in fill()
182 Structure structure = blenderContext.getDnaBlockData().getStructure(type); in fill()
188 Structure structure = blenderContext.getDnaBlockData().getStructure(type); in fill()
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/
DTextureHelper.java155 …public Texture getTexture(Structure tex, BlenderContext blenderContext) throws BlenderFileExceptio… in getTexture() argument
156 …Texture result = (Texture) blenderContext.getLoadedFeature(tex.getOldMemoryAddress(), LoadedFeatur… in getTexture()
161 int width = blenderContext.getBlenderKey().getGeneratedTextureWidth(); in getTexture()
162 int height = blenderContext.getBlenderKey().getGeneratedTextureHeight(); in getTexture()
163 int depth = blenderContext.getBlenderKey().getGeneratedTextureDepth(); in getTexture()
169 Structure image = pImage.fetchData(blenderContext.getInputStream()).get(0); in getTexture()
170 result = this.getTextureFromImage(image, blenderContext); in getTexture()
184 result = textureGenerator.generate(tex, width, height, depth, blenderContext); in getTexture()
389 …public Texture getTextureFromImage(Structure image, BlenderContext blenderContext) throws BlenderF… in getTextureFromImage() argument
391 …Texture result = (Texture) blenderContext.getLoadedFeature(image.getOldMemoryAddress(), LoadedFeat… in getTextureFromImage()
[all …]
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/curves/
DCurvesHelper.java63 …public List<Geometry> toCurve(Structure curveStructure, BlenderContext blenderContext) throws Blen… in toCurve() argument
77 …rbStructures = ((Structure) curveStructure.getFieldValue("nurb")).evaluateListBase(blenderContext); in toCurve()
90 MaterialHelper materialHelper = blenderContext.getHelper(MaterialHelper.class); in toCurve()
91 Material[] materials = materialHelper.getMaterials(curveStructure, blenderContext); in toCurve()
93 materials = new Material[]{blenderContext.getDefaultMaterial().clone()}; in toCurve()
103 …Pointer pBevelStructure = (Pointer) pBevelObject.fetchData(blenderContext.getInputStream()).get(0)… in toCurve()
104 … Structure bevelStructure = pBevelStructure.fetchData(blenderContext.getInputStream()).get(0); in toCurve()
105 bevelObject = this.toCurve(bevelStructure, blenderContext); in toCurve()
163 …Pointer pTaperStructure = (Pointer) pTaperObject.fetchData(blenderContext.getInputStream()).get(0)… in toCurve()
164 … Structure taperStructure = pTaperStructure.fetchData(blenderContext.getInputStream()).get(0); in toCurve()
[all …]
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/meshes/
DMeshHelper.java98 …public List<Geometry> toMesh(Structure structure, BlenderContext blenderContext) throws BlenderFil… in toMesh() argument
99 …List<Geometry> geometries = (List<Geometry>) blenderContext.getLoadedFeature(structure.getOldMemor… in toMesh()
110 TextureHelper textureHelper = blenderContext.getHelper(TextureHelper.class); in toMesh()
117 Vector3f[] vertices = this.getVertices(structure, blenderContext); in toMesh()
121 List<byte[]> verticesColors = this.getVerticesColors(structure, blenderContext); in toMesh()
129 mFaces = pMFace.fetchData(blenderContext.getInputStream()); in toMesh()
142 mtFaces = pMTFace.fetchData(blenderContext.getInputStream()); in toMesh()
187 …Texture texture = textureHelper.getTextureFromImage(pImage.fetchData(blenderContext.getInputStream… in toMesh()
188 blenderContext); in toMesh()
258 Structure parent = blenderContext.peekParent(); in toMesh()
[all …]
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/materials/
DMaterialHelper.java188 …public Material toMaterial(Structure structure, BlenderContext blenderContext) throws BlenderFileE… in toMaterial() argument
191 return blenderContext.getDefaultMaterial(); in toMaterial()
193 …Material result = (Material) blenderContext.getLoadedFeature(structure.getOldMemoryAddress(), Load… in toMaterial()
198 MaterialContext materialContext = new MaterialContext(structure, blenderContext); in toMaterial()
240 result = new Material(blenderContext.getAssetManager(), "Common/MatDefs/Texture3D/tex3D.j3md"); in toMaterial()
243 result = new Material(blenderContext.getAssetManager(), "Common/MatDefs/Misc/Unshaded.j3md"); in toMaterial()
251 result = new Material(blenderContext.getAssetManager(), "Common/MatDefs/Light/Lighting.j3md"); in toMaterial()
286 blenderContext.setMaterialContext(result, materialContext); in toMaterial()
287blenderContext.addLoadedFeatures(structure.getOldMemoryAddress(), structure.getName(), structure, … in toMaterial()
344 …al getParticlesMaterial(Material material, Integer alphaMaskIndex, BlenderContext blenderContext) { in getParticlesMaterial() argument
[all …]
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/lights/
DLightHelper.java69 …public Light toLight(Structure structure, BlenderContext blenderContext) throws BlenderFileExcepti… in toLight() argument
70 …Light result = (Light) blenderContext.getLoadedFeature(structure.getOldMemoryAddress(), LoadedFeat… in toLight()
117 public boolean shouldBeLoaded(Structure structure, BlenderContext blenderContext) { in shouldBeLoaded() argument
118 return (blenderContext.getBlenderKey().getFeaturesToLoad() & FeaturesToLoad.LIGHTS) != 0; in shouldBeLoaded()

123