Jump to content

Search the Community

Showing results for tags 'lines'.

  • 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 2 results

  1. [SOLVED] Drawing lines using FFP

    Hi, I'm trying to draw line primitives using FFP. I've been following the FFP demo under the systems folder, so I made a plugin, added it to my engine. It seems the best I can do is to get a white box to draw for one frame and then they go away. Help? Thanks I replaced the ::render method in the FFP demo with the code below. Like I said, I see a white box for one frame or so and then its gone...like it's overdrawn by my scene or something. void render(float time) { App *app = App::get(); Ffp *ffp = Ffp::get(); // screen size int width = app->getWidth(); int height = app->getHeight(); ffp->enable(Ffp::MODE_SOLID); ffp->setOrtho(width, height); ffp->beginLines(); ffp->addLines(4); ffp->addVertex(0, 0, 0); ffp->setColor(1.0f, 1.0f, 1.0f, 1.0f); ffp->addVertex(0, 100, 0); ffp->addVertex(100, 100, 0); ffp->addVertex(100, 0, 0); ffp->addIndex(0); ffp->addIndex(1); ffp->addIndex(1); ffp->addIndex(2); ffp->addIndex(2); ffp->addIndex(3); ffp->addIndex(3); ffp->addIndex(0); ffp->endLines(); ffp->disable(); }
  2. [SOLVED] Draw static lines

    Hello, I want to draw many static lines in unigine, I found two methods: one to use fpf class, but it seems need to re-submit lines every frame, it cost too much. Two is use ObjectMesh, but it seems only can draw triangles. Is there is any other approchs to draw static lines effienctly? Please give some suggestions, thanks!
×
×
  • Create New...