Jump to content

Search the Community

Showing results for tags 'Sprite'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to UNIGINE Forums
    • News & Announcements
    • Getting started
  • Development
    • Content Creation
    • World Design
    • Rendering
    • Animation
    • Physics, Navigation and Path Finding
    • UI Systems
    • Sound & Video
    • Editor
    • C++ Programming
    • C# Programming
    • Networking
    • Sim IG (Image Generator)
    • VR Discussions
    • General
  • Improving UNIGINE
    • Documentation
    • Feedback for UNIGINE team
    • Bug Reports
    • Unigine SDK Beta feedback
  • Community
    • Add-on Store (https://store.unigine.com/)
    • Showcase
    • Collaboration
    • Tools, Plugins, Materials & Tutorials
    • General Discussions
  • Legacy
    • UnigineScript

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Found 4 results

  1. When a WidgetSprite is rotated which has its size set manually by using setWidth() and setHeight() it gives unexpected result. If the size is set to (0, 0) then the rotation works as expected. Below is the sample code: WidgetSprite sprite; int init() { Gui gui = engine.getGui(); sprite = new WidgetSprite(gui,"samples/widgets/textures/background.png"); sprite.setPosition(400, 300); // Uncomment to see the problem. //sprite.setWidth(128); //sprite.setHeight(128); gui.addChild(sprite, GUI_ALIGN_OVERLAP); return 1; } float fAngle = 1.0f; int update() { sprite.setTransform(rotateZ(fAngle)); fAngle += 0.1; return 1; } int shutdown() { delete sprite; return 1; }
  2. Hi What is the workflow for animations of sprites for a 2D game? Do you have any examples and code? Thanks Paul
  3. Hi! Create Sprite model through WidgetSpriteNode. Sprite turns very dark because of the low lighting. How do I add lighting to the model and that this action does not affect the main stage. Thank you!
  4. [SOLVED] Sprite - Color - Render Problem

    Hello together, I attached an example project. If you start the batch, you'll see a TabBox, with a given sprite, that loads a white PNG file and renders it with a given color. If you swap now fast the tab's you'll see, that the color of the sprite swaps to blue/green/yellow and so on, and always render the widget complete from right to left, or left to right whatever, that looks not really "cute" and fine for the consumer. Is there any possibility to manage this problem(s)? Best regards Lars
×
×
  • Create New...