OverviewV-Play 1 SupportChange Z-Position of QML Items at run time › Re: Change Z-Position of QML Items at run time

OverviewV-Play 1 SupportChange Z-Position of QML Items at run time › Re: Change Z-Position of QML Items at run time

V-Play Team

Quote from Christian on December 19, 2012, 13:58
That is very strange – I tested the library with a clean project and it worked both for debug and release. Are you sure you cleaned your build before? Could you also test it with an Empty V-Play Project from the project wizard please?

Is there any further information about the error in the log output lines above or below your error message?

Yes, this also happens on a clean install of the current VPlay release with the following simple example:

import VPlay 1.0
import QtQuick 1.1

GameWindow {
   // activeScene: scene
    // the size of the Window can be changed at runtime by pressing the number keys 1-6 with QML window active
    // the content of the logical scene size (480x320) gets scaled to the window size based on the scaleMode
    width: 960
    height: 640

It also happens on my notebook and on a collegue’s.

The full log is:

Starting H:\Projects\QT\VPlayZOrderingTest-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2010__Qt_SDK__Debug\debug\VPlayZOrderingTest.exe...
m_platform in System set to: 4 , m_isDesktopPlatform: true 
m_isDebugBuild in System set to: true 
Load config file from "H:/Projects/QT/VPlayZOrderingTest-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2010__Qt_SDK__Debug/qml/config.json" , adjustedFileName: "qml/config.json" 
Setting default orientation to 1 (0=Portrait, 1=LandScape, 2=Auto) 
VPlayApplication: log messages are enabled by default, because it is a debug build
VPlayApplication: ...adding this import path for VPlay engine: "D:/__git/VPlayQML/qml" 
VPlayApplication: adding pluginPathGeneric as importPath: "plugins/generic" 
VPlayApplication: adding PLATFORM_PLUGIN_PATH as importPath: "plugins/windows" 
VPlayApplication: importPathList: ("H:/Projects/QT/VPlayZOrderingTest-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2010__Qt_SDK__Debug/qml", "H:/Projects/QT/VPlayZOrderingTest-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2010__Qt_SDK__Debug/plugins/windows", "H:/Projects/QT/VPlayZOrderingTest-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2010__Qt_SDK__Debug/plugins/generic", "D:/__git/VPlayQML/qml", "H:/Projects/QT/VPlayZOrderingTest-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2010__Qt_SDK__Debug/debug", "G:/QT/VPlay/Desktop/Qt/4.8.1/msvc2010/imports") 
VPlayApplication: pluginPathList: (".") 
VPlayApplication: rootContext of qmlViewer:  QDeclarativeContext(0x2541658) 
VPlayApplication: using CocosDenshion for audio 
cocos2d: cocos2d-1.0.1-x-0.12.0
Qml debugging is enabled. Only use this in a safe environment!
cocos2d: GL_VENDOR:     Imagination Technologies (Host GL: `NVIDIA Corporation`)
cocos2d: GL_RENDERER:   PowerVR PVRVFrame 8.1 SGX (Host GL: `GeForce GTX 460/PCIe/SSE2`) SDK Build:
cocos2d: GL_VERSION:    OpenGL ES-CM 1.1 
cocos2d: GL_MAX_TEXTURE_SIZE: 2048
cocos2d: GL supports PVRTC: YES
cocos2d: GL supports BGRA8888 textures: YES
cocos2d: GL supports NPOT textures: NO
cocos2d: GL supports discard_framebuffer: NO
cocos2d: compiled with NPOT support: NO
cocos2d: compiled with VBO support in TextureAtlas : NO
create EngineScene from delegate
call of EngineScene::scene()
call of Scene:init()
Cocos2DWrapper::setTargetScene() called
Cocos2DWrapper: windowSizeChanged: shift the cocosScene-layer up by its winSize width: 960 , height: 640 
Cocos2DWrapper: windowSizeChanged: new windowSize:  QPointF(960, 640) , displaySize: QPointF(960, 640) 
file:///H:/Projects/QT/VPlayZOrderingTest-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2010__Qt_SDK__Debug/qml/main.qml:4:1: GameWindow is not a type 
     GameWindow { 
WARNING: VPlayApplication: no GameWindow item found, so could not set the rootGameWindow contextProperty as well! 
Update cocosRenderer size to qmlViewer size: QSize(640, 480) 
after m_eglView->resize(), size: 640.000000 * 480.000000
CCDirector::sharedDirector()->getWinSize(): 640.000000 * 480.000000
Cocos2DWrapper: windowSizeChanged: shift the cocosScene-layer up by its winSize width: 640 , height: 480 
Cocos2DWrapper: windowSizeChanged: new windowSize:  QPointF(640, 480) , displaySize: QPointF(640, 480) 
______________VPlayApplication: cocosWrapper initialized, load QML tree______________ 
The program has unexpectedly finished.
H:\Projects\QT\VPlayZOrderingTest-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2010__Qt_SDK__Debug\debug\VPlayZOrderingTest.exe exited with code -1073741819

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
create apps
create games
cross platform
native performance
3rd party services
game network
level editor
easiest to learn
biggest time saving
best support