How could I refresh the frame of Qt 3D? - qt3d

there is a big problem about the newest Qt 3D API: after I updated to the Qt Creator 4.7.2, the original 3D scence does not refresh until I drag the whole window around. The frame is just stuck.

Related

Use RealityKit ARView on macOS

I'm trying to use an ARView in a macOS-only project. I can load a scene (tested with a Reality file from Reality Composer), and it renders fine.
But how do I control the camera with the mouse?
An example of this is Reality Composer, Reality Converter, and previewing a Reality file in Xcode where you can drag anywhere on the view and the camera pans, rotates, etc. In SceneKit the equivalent is allowsCameraControl
There's no cameraMode on the macOS ARView, probably because it only supports nonAR anyway.
I tried adding a PerspectiveCamera hoping it would unlock interactivity, but no luck.
I guess I could just implement all the gestures myself, but that's a lot of work, and Apple seems to be using a standard way to interact with the scene with a mouse - and also a standard grid, which I'd love to use, too.
I'm using macOS 12 beta 1, but it shouldn't make a big difference since ARView requires macOS 10.15
Neither in macOS nor in iOS, RealityKit has a property similar to SceneKit's .allowsCameraControl. However, using this code as a starting point, you can create your own camera control in RealityKit.
This post can also be helpful for you.

Xcode preview not working

I created a sceneKit game project in Xcode. In the art.scnassests folder there's an included 3D model and texture. I can see the texture fine but the 3D model doesn't appear in the editor. I even added my own 3D models which the editor doesn't preview. I know they are there because if I run the app the model is in the app.
I tried restarting, create a new project, installing Xcode 8.3.3 instead of using 9.2 but I still can't get a preview. I need the preview for obvious reasons and also when I try to create a particle system the preview for this dent work either. (The preview does however work for the included texture.png)
SceneKit Editor is not previewing your model because by default it doesn't have any texture set. You can assign the different channels of the texture or at least the diffuse attribute to preview your model. Thanks

Use native resolution in DrawingArea on HiDPI displays

I'm developing a cross-platform photo retouching application based on Gtk-2 (but already able to support Gtk-3 with minor modifications).
In my program, the result of the image retouching is previewed in a scrollable area that is implemented through a Gtk::DrawingArea inserted into a Gtk::ScrolledWindow. The drawing itself is performed using Cairo.
Recently I had the possibility to test the software on a MacBookPro laptop with retina display, and I've immediately realised that the preview image gets magnified by a factor of 2, like all the rest of the GUI elements.
Is there a way to tell Cairo and the DrawingArea to use the native screen resolution, instead of applying a 2x magnification? Is this supported in recent Gtk-3 versions?
Thanks for you help.

GTK rendering using cairo gles

I have successfully changed the backend of cairo that GTK uses to GLES(in the X11 window implementation). I am using a eglWIndowSurface for every gdkwindow. The problem I am facing is that because GTK is doing differential rendering I get to see only the current focus region rendered. Is there any way we can make GTK to render complete window all the time?

MONODROID camera preview with opengl overlay

I have created an augmented reality application using Monodroid and it works fine on a technical basis. However, the graphics I used were drawn on a canvas and are really too slow.
The application is a simple heads-up compass and speed display a-la luke-skywalkers binoculars.
I am trying to get a camera preview going with an openGL translucent/transparent overlay and yes, I have read whats available but its all pure Android SDK / Java.
Does anyone know of a method of getting this effect in C# and Monodroid possibly using the AndroidGameView? Whatever I do I can see one or the other but never both at the same time.
Unhelpful jerks are a pleasure to work with.
http://bobpowelldotnet.blogspot.fr/2012/10/monodroid-camera-preview-as-opengl.html

Resources