Code Monkey home page Code Monkey logo

qmlalembic's Introduction

qmlAlembic - Alembic QML plugin for Qt3D

qmlAlembic is a C++ QML plugin providing classes to load and visualize Alembic point cloud files in Qt3D. It has been developed to load AliceVision sparse reconstruction results inside Meshroom.

qmlAlembic - Meshroom

For now, it only handles point clouds and cameras.

Continuous integration:

  • Windows: Build status

License

The project is released under MPLv2, see COPYING.md.

Get the project

Get the source code:

git clone --recursive git://github.com/alicevision/qmlAlembic
cd qmlAlembic

See INSTALL.md to build and install the project.

Usage

Once built and with the plugin installation folder in QML2_IMPORT_PATH:

import AlembicEntity 1.0

Scene3D {
  AlembicEntity {
    url: "myfile.abc"
  }
}

qmlalembic's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qmlalembic's Issues

ILMbase errors

Hello; trying to build this project and, when I run cmake, I see the following errors. I tried editing the CMakeLists.txt file as advised here, but unfortunately that fix does not seem to work in this case.

ILMBASE_ROOT is undefined
-- #define ILMBASE_VERSION_STRING "2.5.0"
-- ILMBASE INCLUDE PATH: H:/github/vcpkg/installed/x64-windows/include/OpenEXR
-- HALF LIB: H:/github/vcpkg/installed/x64-windows/lib/Half-2_5.lib
-- IEX LIB: H:/github/vcpkg/installed/x64-windows/lib/Iex-2_5.lib
-- IEXMATH LIB: H:/github/vcpkg/installed/x64-windows/lib/IexMath-2_5.lib
-- ILMTHREAD LIB: H:/github/vcpkg/installed/x64-windows/lib/IlmThread-2_5.lib
-- IMATH LIB: H:/github/vcpkg/installed/x64-windows/lib/Imath-2_5.lib
-- Configuring done
CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Imath" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::IlmThread" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Iex" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Half" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::IexMath" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Imath" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Imath" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::IlmThread" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Iex" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Half" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::IexMath" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Imath" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Imath" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::IlmThread" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Iex" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Half" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::IexMath" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Imath" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Imath" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::IlmThread" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Iex" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Half" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::IexMath" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
  Target "alembicEntityQmlPlugin" links to target "IlmBase::Imath" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:6 (add_library)


-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

vcpkg Alembic

Hi, hope i'm not interrupting with anything, I'm not fluent in building sollutions at all. But i was following the INSTALL steps, and ended up on this error.
I tried to go around using cmake gui, and putting all necessary files by hand, but in the end the build process in VS comunitty failed, in some point. I'm not sure if this is the right way of seeking sollution. If not fell free to del this post.

Could not find a configuration file for package "Alembic" that is
  compatible with requested version "1.7".

  The following configuration files were considered but not accepted:

    D:/vcpkg-git/installed/x64-windows/share/alembic/AlembicConfig.cmake, version: 1.7.8 (64bit)

If there is anyone willing to help me go through the process of compiling this I would appreciate.
I would be glad to point some remarks to INSTALL.md to help a little green newcomers like me.

.abc format unknown

Hello,
I have built AliceVision and trying to run Meshroom to see the output. I can run till the SfM part but whenever I run PrepareDenseScene from the UI, I get error and the log is below:

Program called with the following parameters:
 * input = "/tmp/MeshroomCache/StructureFromMotion/1791bc36ef6221756d0020876349789a691bd297/sfm.abc"
 * output = "/tmp/MeshroomCache/PrepareDenseScene/4e7505e5bff4c13bdaf8439604ad549d2dc7314c"
 * verboseLevel = "info"

[14:17:29.879224][error] Unknown input SfM data format: '.abc'
[14:17:29.879249][error] The input SfMData file '/tmp/MeshroomCache/StructureFromMotion/1791bc36ef6221756d0020876349789a691bd297/sfm.abc' cannot be read.

Looking at the log it looks like it's related to Alembic and I have built qmlAlembic successfully and put the install prefix in my path already. But I still get this error. Could you please take a look?

Thanks,
Ahmad

Qt 5.14.1 support

Hi,
I spent 2 days trying to use qmlAlembic with Qt 5.14.1 (also 5.13.1) and it doesn't work. I installed it with cmake, qmake (my own .pro file), even tried with copying all source to project and building all together - always same effect which look like this:
Cannot assign to property of unknown type "" (Qt 5.14.1)
Can not assign value of type "<unknown type>" to property "entity", expecting an object (Qt 5.13.1)

Error comes from
QQmlPropertyValidator::validateObjectBinding(QQmlPropertyData*, QString const&, QV4::CompiledData::Binding const*) - qqmlpropertyvalidator.cpp inside qtdeclarative module.

It seems like some problem with reading plugin metadata. I tried to debug inside qt source but after my own compilation there were plenty of other problems. Did anyone face something similiar? Should qmlAlembic work with newer Qt Versions than 5.11?

ubuntu 16.04 Add Qml Plugin error?

Hello I already build & install this plugin.

ubuntu@ubuntu-4DAGE:~/alicevision/deps/qmlAlembic/build$ make -j8 [ 14%] Automatic moc for target alembicEntityQmlPlugin Generating moc_AlembicEntity.cpp Generating moc_BaseAlembicObject.cpp Generating moc_CameraLocatorEntity.cpp Generating moc_PointCloudEntity.cpp Generating moc_plugin.cpp [ 14%] Built target alembicEntityQmlPlugin_automoc Scanning dependencies of target alembicEntityQmlPlugin [ 28%] Building CXX object src/CMakeFiles/alembicEntityQmlPlugin.dir/BaseAlembicObject.cpp.o [ 42%] Building CXX object src/CMakeFiles/alembicEntityQmlPlugin.dir/CameraLocatorEntity.cpp.o [ 57%] Building CXX object src/CMakeFiles/alembicEntityQmlPlugin.dir/AlembicEntity.cpp.o [ 71%] Building CXX object src/CMakeFiles/alembicEntityQmlPlugin.dir/PointCloudEntity.cpp.o [ 85%] Building CXX object src/CMakeFiles/alembicEntityQmlPlugin.dir/alembicEntityQmlPlugin_automoc.cpp.o [100%] Linking CXX shared library libalembicEntityQmlPlugin.so [100%] Built target alembicEntityQmlPlugin ubuntu@ubuntu-4DAGE:~/alicevision/deps/qmlAlembic/build$ make install [ 14%] Automatic moc for target alembicEntityQmlPlugin [ 14%] Built target alembicEntityQmlPlugin_automoc [100%] Built target alembicEntityQmlPlugin Install the project... -- Install configuration: "Release" -- Up-to-date: /home/ubuntu/alicevision/install/qml/AlembicEntity/qmldir -- Installing: /home/ubuntu/alicevision/install/qml/AlembicEntity/libalembicEntityQmlPlugin.so -- Set runtime path of "/home/ubuntu/alicevision/install/qml/AlembicEntity/libalembicEntityQmlPlugin.so" to ""

and set the the path in ~/.bashrc

export QML2_IMPORT_PATH=/home/ubuntu/alicevision/install/qml:$QML2_IMPORT_PATH

But when I run Meshroom I don't have this plugin.
sfm

By not providing "FindAlembic.cmake" in CMAKE_MODULE_PATH

I met the error when i build qmlAlembic following the guide

`E:\SoftInstall\Qtplugins\qmlAlembic\build>cmake .. -DAliceVision_DIR=%AV_DIR% -DCMAKE_PREFIX_PATH=%QT_DIR% -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=E:\SoftInstall\Qtplugins\qmlAlembic\build
-- The CXX compiler identification is MSVC 19.28.29913.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx86/x86/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at CMakeLists.txt:12 (cmake_policy):
The OLD behavior for policy CMP0043 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.

CMake Error at CMakeLists.txt:26 (find_package):
By not providing "FindAlembic.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Alembic", but
CMake did not find one.

Could not find a package configuration file provided by "Alembic"
(requested version 1.7) with any of the following names:

AlembicConfig.cmake
alembic-config.cmake

Add the installation prefix of "Alembic" to CMAKE_PREFIX_PATH or set
"Alembic_DIR" to a directory containing one of the above files. If
"Alembic" provides a separate development package or SDK, be sure it has
been installed.

-- Configuring incomplete, errors occurred!
See also "E:/SoftInstall/Qtplugins/qmlAlembic/build/CMakeFiles/CMakeOutput.log".`

But i have installed alembic using vcpkg when i build alicevision,and the path containing AlembicConfig.cmake is E:\vcpkg\installed\x64-windows\share\alembic\AlembicConfig.cmake .
I have no idea how to add the Installation prefix of alembic to CMAKE_MODULE_PATH ,anyone suggestion will be appreciated!

the output.log is here.
CMakeOutput.log

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.