Search the Community

Showing results for tags 'screen'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • 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
    • Feeback for UNIGINE team
    • Bug Reports
    • Unigine SDK Beta feedback
  • Community
    • Collaboration
    • Tools, Plugins, Materials & Tutorials
    • Showcase
    • General Discussions
  • Legacy
    • UnigineScript

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...

Found 3 results

  1. [SOLVED] Node 3D to NDC coordinates

    Hi, I need the 2D screen Position of a 3D Node transformation. Can you write me a short code example with unigine matrices form the Player and Node and perspective division to get the NDC coordinates? auto proj = m_player->getProjection(); auto view = m_player->getTransform(); auto obj = instance->second->getNode()->getTransform(); auto projectedPosition = Unigine::Math::Mat4(proj)*view*obj*Unigine::Math::Vec4(0.0, 0.0, 0.0, 1.0); projectedPosition /= glm::abs(projectedPosition.w); x = (projectedPosition.x+1.0f)*0.5f * m_ungineAppHandle->getWidth(); y = (
  2. We are using Direct3D9 in our Unigine::App. While in full screen, if the app loses focus, it cannot recover. I tried the IDirect3DDevice9::Reset() but it fails saying that all the resources need to be released before reseting the device. What is the best way to handle this situation?
  3. Gui screen position

    hi, I want to know if it's possible to have the screen position of an widget. I try getPosition but if i don't set before the position i 0x0 I try with the parent of parent of parent position but doesn't work two. An example : WidgetHBox hbox; WidgetVBox vbox; WidgetSprite sprite; WidgetButton button; WidgetButton button2; /* */ int init() { Gui gui = engine.getGui(); hbox = new WidgetHBox(gui); vbox = new WidgetVBox(gui); sprite = new WidgetSprite(gui,""); sprite.setWidth(200); sprite.setHeight(200); button