OGRECave / ogitor

Ogitor SceneBuilder, the WYSIWYG scene editing environment for OGRE
MIT License
95 stars 31 forks source link

Cannot get scene to render properly. #49

Open dirkmittler opened 1 year ago

dirkmittler commented 1 year ago

Hello.

I'm using a Debian 11 computer with an NVIDIA GeForce RTX 3070 graphics card, and have custom-compiled Ogre 1.12.13, trying to get Ogitor to work with it. The Ogre Sample Browser runs almost all the samples (except for the PN Triangle). However, when I load the sample scene within Ogitor, the terrain does not show, the FPS is at zero, and I get flooded with the following message:

Application::notify caught an exception: InvalidParametersException: This pass does not have this program type assigned! in getGpuProgramParameters at /home/dirk/Programs/ogre-1.12.13/OgreMain/src/OgrePass.cpp (line 1302)

What could I be doing wrong?

Dirk

Update: Having realized that the newest graphics cards refuse to run Cg shader programs from the hardware level, I've recompiled Ogre without Cg support. The result of that is, that the repeated error messages from Ogitor have disappeared, that the Ogitor scene seems animated with the clouds rolling by, that the frame-rate is now an improved 60FPS, But, that the terrain is still completely transparent.

Also, when I quit Ogitor now, it freezes, and in such a way that it 'forgets' its most-recently opened files.

Is it possible that Ogitor's terrain engine depends on Cg?

paroj commented 1 year ago

yes, Ogitor's terrain shaders are completely out of sync with Ogre and only support Cg.

However, they should still work on your GPU as long as you stick to the GL RenderSystem (not GL3+).