Hi all,
I'm trying to run a c++ + lua + sfml + horde3D environment.
Everything is running, e.g., I can draw 2D stuff with sfml and I can draw 3D stuff with Horde3D... but not at the same time. If I enable both it just crashes.
I've asked for help on gamedev (
http://www.gamedev.net/topic/641539-mixing-sfml-and-horde3d-operation-not-allowed-in-current-state/ ) but thinking about it, I might have a better chance of finding some help here.
Window Creation:
function window:create(cfg)
...
...
llwindow.set_window_style(style)
llwindow.create_window(title) -- SFML::RenderWindow
self:pushStates() -- [1]
end
So, here is my main render loop:
function render:tick()
self:setWireFrameMode(self.d3doptions.WireFrameMode) -- HORDE3D specific
self:setDebugViewMode(self.d3doptions.DebugViewMode) -- HORDE3D specific
window:clear() -- SFML::RenderWindow
self.camera.object:update() -- HORDE3D specific
llrender.render(self.camera.object) --[2] -- HORDE3D specific
window:popStates() --[3] -- SFML::Window
window:resetStates() --[4] -- SFML::Window
overlaymanager:tick(self.dimensions) --[5] -- SFML::Text, SFML::Sprite, etc....
window:pushStates() --[6] -- SFML::Window
llrender.finalize() --[7] -- HORDE3D specific
window:display() -- SFML::Window
end
With 1,3,4,5,6 enabled and 2,7 commented out, SFML outputs ok, but outputs this message once:
An internal OpenGL call failed in RenderTarget.cpp (269) : GL_INVALID_OPERATION, the specified operation is not allowed in the current state
With 1,3,4,5,6 commented and 2,7 enabled Horde3d outputs ok.
With any combination of these... app crashes first time that llrender.render(self.camera.object) is called or after outputting several GL_INVALID_OPERATION messages like above.
Any help would be appreciated
P.S: sorry for my spelling/grammar, I'm portuguese.
(Edited for formatting)