Coder Social home page Coder Social logo

osgqtquick's Introduction

osgQtQuick - OpenSceneGraph QML Modules

msys2

Hello from osgQtQuick 2.0!

Intergation OpenSceneGraph to Qt Quick.

Reference Documentation

Please visit documentation pages.

Source Code

Actual development code avaliable in develop branch.

Prebuilt Binaries

MSYS2 Project

Now it's distributed as package of MSYS2 distro. Type in the appropriate shell:

pacman -S mingw-w64-i686-osgQtQuick

or

pacman -S mingw-w64-x86_64-osgQtQuick

or

pacman -S mingw-w64-ucrt-x86_64-osgQtQuick

Dependencies

  • Qt >= 5.0.0
  • OpenSceneGraph >= 3.3.2

Threaded Rendering

The osgQtQuick is now support all QtQuick render loop types. But if your application has problems on startup or resize the window, try to set a environment variable "QSG_RENDER_LOOP" to the value of "basic", "windows" or "threaded".

Related Links

Similar Projects

  • qmlosg - Integration test of osg and qt quick + qml framework
  • QtQuick2OSGItem - small package allowing to embed OpenSceneGraph scenes as visual items in Qt Quick 2 applications

osgqtquick's People

Contributors

podsvirov avatar

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  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  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

osgqtquick's Issues

View doesn't work in a QQuickWidget

Hi,

I'm unable to add a view to a QML file shown in a QQuickWidget. It either crashes the application (by default, as it detects the renderloop type to be threaded), or it cannot render properly. I've tested only on windows. I guess the reason is because QQuickWidget has a different rendering loop than the ones supported by OsgQtQuick. In their implementation, threaded renderloop is actually disabled. It'd be wonderful if the support for QQuickWidget can be added.

Thanks,
Piyoosh

building in linux

I've built the library in Ubuntu 16.04, Qt version 5.9.6 and OSG version 3.4.0
When trying the test view.qml I get the following error

Automatic type dump of QML module failed.
Errors:
"/home/mnana/Qt/5.9.6/gcc_64/bin/qmlplugindump" returned exit code 2.
Arguments: -nonrelocatable osg 2.0 .
Error: SEGV
While processing the property 'osg::ShapeDrawableQtQml::shape', which probably has uninitialized data.


QML module does not contain information about components contained in plugins.

Module path: /home/mnana/dev/osgqtquick/build/qml/osgText
See "Using QML Modules with Plugins" in the documentation.

Automatic type dump of QML module failed.
Errors:
"/home/mnana/Qt/5.9.6/gcc_64/bin/qmlplugindump" returned exit code 2.
Arguments: -nonrelocatable osgText 2.0 .
Error: SEGV
While processing the property 'osgText::Text3DQtQml::style', which probably has uninitialized data.

Do you know what could be the problem?

Android build.

I've faced with problem building Android version of this library. At least this library requires osgQt but OpenSceneGraph (at least since version 3.4.0) doesn't contain osgQt library for Android builds.

Is it possible to build this library for Android?

Failed to build because OSG 3.6.2 remove some of osgText::Font methods

Hello,

Since OSG 3.6.2 (this commit), the osgText::Font does not contain methods getGlyphImageMargin and setGlyphImageMargin anymore.
They move theses methods to osgText::Glyph with : setTexelMargin and getTexelMargin.

The building of osgqtquick fails due to these changes.
Is it possible to fix this ? I tried myself but I was not able to understand how to deal with the new class osgText::Glyph which is used now.

Thanks for all your work :)

Regards,
Tom

HUD camera doesn't work in osgqtquick

Hi,
I try to use StatsHandler to handle for adding on screen stats reporting to Viewers. but it doesn't work, there are nothing display in screen when I pressed 's' key, I also tried others feature that need HUD camera like HUD text, it doesn't work too.
Hope you can solve this problem, thanks!

How To Enable Anti-Aliasing in View Components

Scenes rendered within OSG View QML components do not have anti-aliasing applied. What is the correct way to enable anti-aliasing for such scenes?

I have tried the following approaches but to no avail:

Adding nodes over the map causes glitching.

I wrote a sample application that shows the Earth in two views, using the sample QML from tests/earth.qml and tests/multiview.qml. When I added some nodes from C++ (not QML) over the map, it started to glitch. If I rotate the Earth in a view so that the text label (annotation) becomes invisible, the Earth in other view becomes black, see video. See the link to the source code.

The osgQtQuick project source code does not contain license text

I'm not well versed in licensing issues. The osgQtQuick project is developed on the basis of OpenSceneGraph and Qt projects.

It seems to me that LGPLv2.1 licensing is appropriate in the general case, but, maybe, there are exceptions.

I just want the project to be useful.

I will be grateful if someone will help me on this matter.

Rendering outside a View Glitches

Hello,

I try to embed a View in application with Quick Controls 2, but they are some glitches :

  • The ApplicationWindow rendering fails : it has black background (and I cannot change it)
  • Widgets are correctly rendering when they are inside a View, but if I put them outside the rendering is not correct. (See Video.zip)

You can find the minimal example I use in video here

I tried to change the QSG_RENDER_LOOP both to threaded and basic but same results happened.

May be the rendering process has some difficulties to sync Qt rendering loop with osg rendering loop ?
I use Qt 5.9 on Windows 10.

Thanks :)

undeclared identifier 'loopType'

when build in OSX it error with below log:
/Volumes/Work/OSG/osgqtquick-2.0.0.8/src/quick/window.cpp:62:13: error: use of
undeclared identifier 'loopType'
loopType = ThreadedRenderLoop;

It build success after replacing loopType with renderLoopType
is it a bug?

Changing the camera in a view

I tried to set a view's camera to a different one that I configured in C++, but it didn't work. I get a grey blank display. Also, for a custom HUD camera kind of object (to render axes), I tried to use the view's camera for, but again it causes some crashes. I'll probably need some help with understanding the issue and then resolving it. This issue may be similar to #13. I hope we can discuss this soon.

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.