how to run OGRE without screen display?

Problems building or running the engine, queries about how to use features etc.
Post Reply
Moujiker
Gnoblar
Posts: 2
Joined: Sun Oct 09, 2016 10:01 am

how to run OGRE without screen display?

Post by Moujiker »

hi, everyone :
i use OGRE 1.9.0 with ubuntu 16.04 and i want to run my code without screen,but i got some error, i debug with GDB,it seems that:

Code: Select all

m_root = new Ogre::Root();

throw the error.
also i test the ROS::rviz, it also cannot run without screen. search the forum, i did not get the answer,does anyone know how to solve it?
thanks!
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5012
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1179
Contact:

Re: how to run OGRE without screen display?

Post by dark_sylinc »

Hi.

There is an API restriction. OpenGL must have a window at all times. Often we advise to use create a 1x1 window and hide it, then do your off screen work.

In Ogre 2.1 I added a NULL RenderSystem but it's only intended to "mimic" a RenderSystem (i.e. for the purposes of running a dedicated server in a game that will never actually render).
Moujiker
Gnoblar
Posts: 2
Joined: Sun Oct 09, 2016 10:01 am

Re: how to run OGRE without screen display?

Post by Moujiker »

en. in fact i embad OGRE in QT, i cannot create the qt Window successfuly. i do not know how you deal with it, since you said create a 1x1 window and hide it. Can you give me a little more detailed ? thank you!
maybe i did not discribe my problem clearly, i have no screen, not just want to hide it.
Post Reply