• Content Count

  • Joined

  • Last visited

  1. Oh, that would be awesome! Will the spritesheet, atlas and json together with the additional texture be enough? Or is the complete Spine model needed? And where can I send it to?
  2. I've download the zip file from the repository today and I'm using the js file from the bin folder. I assume it's the latest, stable one. I can upload a demo PM you the url, so you can see what's going on instead of me describing it To make a small demo with code you can review will be a bit more 'challenging' hehe.
  3. I've implemented your lines in this function: private function updateMesh(type:BodyType, texture:Texture):Void { var newTexture = texture; var slot = animation.skeleton.slots[type.getIndex()]; var attachment = slot.attachment; var slotContainer = animation.slotContainers[type.getIndex()]; attachment.rendererObject.texture = newTexture; attachment.updateUVs(); //the same as slotContainer.children[0] if (slot.currentMesh != null) { slot.currentMesh.texture = newTexture; } } But I don't really see any different from when I just swapped the texture for another. Yet, I don't see anything else in the code reference that I could be missing or needing to do. So it does switch the texture, but it's scaled and doesn't really look like the first time it is being loaded and shown.
  4. Cool! I'll try it out. I tried swapping the textures and that gave a weird looking result :D.
  5. Hi Ivan, Thanks for your reply. Was a lot faster than mine (sorry about that :)). I've managed to change the textures referencing the sprites in animation.slotContainer (like in animation.slotContainer[0].children[0], that I cast to Sprite). That worked like a charm, until we started using meshes. I could not cast the object to Sprite anymore (in order to change the texture) because of the extra fields of the mesh (like uvs, vertices etc). I've also searched for the 'currentSprite' field, but could not find it in any of the slotContainers, since it's an Array of Pixi Containers. Is there another way to locate the sprite of an Spine slot that uses meshing (and those that don't as well) ? I fear it's something very easy that I'm overlooking :). Thanks in advance! Maarten
  6. Hi all, I'm working on an avatarbuilder and would like to use Spine for the animations. The avatar is made up of several parts (head, body, arms etc) that can be changed in order to get the desired combination. Now, I've been looking at using skins, but I'm not sure if I'm going the right direction. Since it's not a complete skin that needs to be swapped, but just a part of it. The avatarbuilder will be made in Haxe using Pixi and Spine. My main questions are: 1) Would it be possible to use skins in order to only change the head, or the body for instance? 2) Am I moving in the right direction using the skin feature of Spine? Thanks in advance! Maarten
  7. It does sound like that, however I've tried it in Google on a fairly new tablet, so I thought it might support it. I'm curious as to why I don't see the video when using the CanvasRenderer instead of WebGL. Since it seems te be running fine then, but I just hear the audio.
  8. Hi all, I'm new to the forum (as an active poster that is), and I'm having a problem with Video in Pixi v2.2.3 so I thought I'd give it a shot here. I'm trying to play a video using a VideoTexture with a Sprite like this: // add video'svar videoTex = VideoTexture.fromUrl(url);var videoSprite = new Sprite(videoTex);addChild(video1Sprite);The video play's fine in every browser on dekstop and on Chrome and Safari on our iPad 4 (haven't tested any other iPads). The video is a mp4 with H.264 codec. When I try to view the video on a Nexus 9 I get the following error when using the WebGLrenderer: '[.WebGLRenderingContext-0x55b66f64a0]RENDER WARNING: texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.' And when using the CanvasRenderer the video plays fine, apart from the fact that I don't see any image, I hear only the audio. I've tried different formats (WebM) and different sizes, but I can't seem to get the video to show on android devices. Any help is greatly appriciated, since I'm not really sure where to look next. Thanks in advance, Maarten