Page 1 of 1

how to run OGRE without screen display?

Posted: Sun Oct 09, 2016 10:15 am
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!

Re: how to run OGRE without screen display?

Posted: Sun Oct 09, 2016 9:35 pm
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).

Re: how to run OGRE without screen display?

Posted: Wed Oct 12, 2016 8:59 am
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.