FAQ Database Discussion Community

How to create a rotated texture from another already rotated in SpriteKit

I’m creating a sprite from a SKTexture, that in turn was created from another texture loaded from an atlas, like this: SKTexture *textureFromAtlas = [SKTexture textureWithImageNamed:@“MyImage.png”]; CGRect myRect = textureFromAtlas.textureRect; myRect.size.with *= 0.5; myRect.size.height *= 0.5; SKTexture *newTexture = [SKTexture textureWithRect:myRect inTexture:textureFromAtlas]; SKSpriteNode * MySprite = [SKSpriteNode spriteNodeWithTexture:newTexture]; textureFromAtlas happened...

Create a 2D texture from existing textures

I have an application where I load a series of medical images (jpg), create a texture object for each image and display those textures on 3D planes. The amount of images depends in the CT scanner's resolution but my prototype should work with up to 512. As an additional task,...