Uploaded image for project: 'Qt 3D Studio'
  1. Qt 3D Studio
  2. QT3DS-3761

Add method to set texture source using QByteArray

    XMLWordPrintable

Details

    • fe29ee5c5b0c1edbfabccf211bd8d73bb61672dc

    Description

      I'm suggesting to implement an ability for users to set texture source from C++ side using QByteArray.
      I propose to implement this because the only way to set the texture: first save the texture to the hard disk, and then set the material path to the texture - but it is too long and useless operation. 

      A picture in the QByteArray format comes to our side from other module / library. And we want to set this picture as a texture on a rectangle in a 3D presentation. And we need a method (for example, Q3DSPresentation::setTexture (const QString& materialPath, const QByteArray &data)) in the Q3DSPresentation class.

      Attachments

        1. Example_fixed.zip
          53 kB
        2. Example.zip
          50 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              tuliniemi Jere Tuliniemi
              sergeytyuntyaev Sergey Tyuntyaev
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes