Hi everyone.
First introduce myself, I'm a remizero, I hope you have a good day. I am new to the forum and to this world of Ogre3D. My English is not very good, but I think you can understand me.
I have been studying this interesting library for a few weeks now, I have to say that I have done all the tutorials presented in the Ogre3D-Next 2.3 version and I have to say that I have managed to compile and run them with great satisfaction.
I have been searching the documentation and this forum for days, but I don't see that many are working with version 2.3.1, but I still can't find any publication that helps me with my problem.
Now, I have decided to start with the tutorial "Tutorial00_Basic", trying to add a simple object "cube.mesh" to understand step by step the dynamics of object creation, but until now it has been impossible.
The only thing I added was the following code
Code: Select all
Ogre::HlmsManager *hlmsManager = root->getHlmsManager ();
Ogre::Hlms *hlms = hlmsManager->getHlms ( Ogre::HLMS_PBS );
Ogre::Item *cubeItem = sceneManager->createItem ( "../data/cube.mesh", Ogre::ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME, Ogre::SCENE_DYNAMIC );
cubeItem->setDatablock ( hlms->getDatablock ( "BaseWhite" ) );
Ogre::SceneNode *cubeNode = sceneManager->getRootSceneNode ( Ogre::SCENE_DYNAMIC )->createChildSceneNode ( Ogre::SCENE_DYNAMIC );
cubeNode->setPosition ( 0, 0, -100 );
cubeNode->attachObject ( cubeItem );
From what I have studied from the documentation, this "cubeNode" node is attached to the previously created scenario automatically, but well that is not the error in any case.
The error is the following:
When I run the binary, if I select "Vulkan Rendering Subsystem", I get the following error output
Code: Select all
terminate called after throwing an instance of 'Ogre::RenderingAPIException'
what(): OGRE EXCEPTION(3:RenderingAPIException): vkGetPhysicalDeviceSurfaceFormatsKHR failed
VkResult = VK_ERROR_SURFACE_LOST_KHR in Ogre::PixelFormatGpu Ogre::VulkanWindowSwapChainBased::chooseSurfaceFormat(bool) at /home/user/projects/ogre2.3.1/RenderSystems/Vulkan/src/OgreVulkanWindow.cpp (line 226)
I understand that an error is being generated when obtaining the surface format or something like that.
Then if I run the binary again and select "OpenGL 3+ Rendering Subsystem", I get the following error output
Code: Select all
GL3PlusRenderSystem::_createRenderWindow "Tutorial 00: Basic", 0x0 windowed miscParams: FSAA=0 displayFrequency=N/A gamma=Yes vsync=No
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 1 (X_CreateWindow)
Value in failed request: 0x0
Serial number of failed request: 17
Current serial number in output stream: 22
At this point I have run out of arguments because I don't understand what parameter I am supplying incorrectly. I have played with all the possible combinations in the configuration box and I have not been able to get it to recognize any parameters correctly.
What am I doing wrong?. If you could give me some light to help me understand what is happening or if I am missing something that I am not including or if that code is not enough to add a simple object.
I have to admit that I do not have a good team to work with, since the Vulkan implementation is not fully implemented for my graphics card.
Code: Select all
Operating System: Debian GNU/Linux 11
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Kernel Version: 6.1.0-0.deb11.13-amd64
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-3630QM CPU @ 2.40GHz
Memory: 7.6 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 4000
I am currently managing the project with qmake
In the following link, I have posted the fully functional base project on which I am working, where it is shown
https://github.com/remizero/ogre3dstart
or if you like, you can download it directly
Code: Select all
git clone https://github.com/remizero/ogre3dstart.git
Waiting for a response to help me. I will be quite active on this forum from now on.
Thanks in advance.