help for begginer

jonlolo

01-07-2010 13:41:27

well, i'm kinda new to the whole ogre proyect, even more to the theora plugin
we (me and some friends) are trying to make a 3D game with ogre, and we want it to have cutscenes, and decided we would try with this plugin
we are using the 1.7.1 version of ogre, and i'm quite lost about the plugin; that is not 'suported' in 1.7, that material scripts are broken :/
so i need some help from scratch here, please. i know there is a wiki and this forum but, its really confusing to me
if there is any other specification you guys need, let me know

thanks

Kreso

01-07-2010 14:29:48

I haven't tested the theora plugin on 1.7.x so I can't confirm whether it works or not. some folks say it works, some say it doesn't.

I'm currently swarmed with work in my company and can't spare any time to work on the plugin. I'll look into the matter as soon as I am able.

meanwhile, you can try compiling the plugin, see if the demos are working etc.

jonlolo

01-07-2010 14:44:01

ok, ill try to compile it myself. but could you please tell me which libs dll includes and etcs do i need ?
cos i've been reading a little on this forum and sometimes it talks about TheoraVideoManager, and OgreVideoManager and i dont know where this last one comes from :/
like, im not sure which things do i need

Kreso

01-07-2010 15:04:04

1) compile ogg, vorbis and theora libraries
2) download libtheoraplayer from svn and compile it
3) test libtheoraplayer's demos, they should work
4) download ogrevideo from svn, compile
5) test the ogrevideo demo.

jonlolo

01-07-2010 20:30:20

mmm ok
excuse my ignorance once again
i've compiled ogg vorbis and theora libs already
then i have these proyects from the SVN called "TheoraVideoPlugin", im not sure if this is the right one. is it the same as "libtheoraplayer" or what? and where do i get the OgreVideo?

Kreso

01-07-2010 20:33:31

theora player is the core playback library, it can be used in any application, and ogrevideo is the ogre plugin that uses libtheoraplayer to render video on an Ogre texture object.

sites: ogrevideo.sf.net & libtheoraplayer.sf.net

jonlolo

04-07-2010 23:14:48

ok so far i think i succeded on compiling the libs and such, although im still a bit confused.
now, im trying to implement it, helping with the Demo_Player proyect from the SVN
i have this code:
Ogre::OgreVideoManager* mgr=(Ogre::OgreVideoManager*) Ogre::OgreVideoManager::getSingletonPtr();

and im getting this error:

error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class TheoraVideoManager * __cdecl TheoraVideoManager::getSingletonPtr(void)" (__imp_?getSingletonPtr@TheoraVideoManager@@SAPAV1@XZ) referenced in function "protected: virtual void __thiscall someTheora::createScene(void)" (?createScene@someTheora@@MAEXXZ)

however, i have added both plugin_ogreVideo.lib and libtheoraplayer.lib to a lib folder, and added the path to the proyect
so.. what am i doing wrong or missing ?

Kreso

05-07-2010 11:14:34

you've added them to the lib folder? have you included them in te linker options? in visual studio it's project preferences-> linker -> input.

jonlolo

05-07-2010 20:05:47

i think i followed all those steps correctly, and it was still not working
ill re-check it later when i get back at home, but im almost sure i already did it :/
what else could the problem be in that case ?

Kreso

05-07-2010 21:22:19

from the looks of it, it sounds like a linking problem. make sure you can compile the demo included in the svn first.

jonlolo

05-07-2010 23:47:39

ok, you were right, there was something missing in the linker configuration. now i've added the Plugin_OgreVideo_d.lib and libtheoraplayer_d.lib to the input of the proyect, and linking is succesful. but when trying to run the program i get one of those 'don't send' message errors. it says:
AppName: sometheora.exe AppVer: 0.0.0.0 ModName: msvcp90d.dll
ModVer: 9.0.30729.1 Offset: 0000bb30

i dont know what this means, maybe you can tell me. im was trying just to put a video in a simple application. the application itself is a standart ogre application generated with the AppWizard with some added code. here it is:
#include "someTheora.h"
#include "OgreVideoManager.h"
#include "TheoraVideoManager.h"
#include "TheoraVideoClip.h"
//-------------------------------------------------------------------------------------

someTheora::someTheora(void)
{
}
//-------------------------------------------------------------------------------------
someTheora::~someTheora(void)
{
}

//-------------------------------------------------------------------------------------
void someTheora::createScene(void)
{
Ogre::ManualObject* model = mSceneMgr->createManualObject("video_quad");
model->begin("video_material");

model->position(1,1,0); model->textureCoord(1,1);
model->position(1,1,0); model->textureCoord(1,0);
model->position(1,1,0); model->textureCoord(0,0);
model->position(1,1,0); model->textureCoord(0,0);
model->position(1,1,0); model->textureCoord(1,1);
model->position(1,1,0); model->textureCoord(0,1);

model->end();
// make the model 2D
model->setUseIdentityProjection(true);
model->setUseIdentityView(true);
// and atach it to the root node
Ogre::SceneNode* node = mSceneMgr->getRootSceneNode()->createChildSceneNode();
node->attachObject(model);

////////////////////////////////////////////////////////
// Set ambient light
mSceneMgr->setAmbientLight(Ogre::ColourValue(0.5, 0.5, 0.5));

// Create a light
Ogre::Light* l = mSceneMgr->createLight("MainLight");
l->setPosition(20,80,50);

Ogre::OgreVideoManager* mgr=(Ogre::OgreVideoManager*) Ogre::OgreVideoManager::getSingletonPtr();
mgr->setInputName("konqi.ogg");
mgr->createDefinedTexture("video_material");
TheoraVideoManager* tMgr = TheoraVideoManager::getSingletonPtr();
TheoraVideoClip* vid = tMgr->getVideoClipByName("konqi.ogg");
vid->setAutoRestart(1);
}



#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
#define WIN32_LEAN_AND_MEAN
#include "windows.h"
#endif

#ifdef __cplusplus
extern "C" {
#endif

#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
#else
int main(int argc, char *argv[])
#endif
{
// Create application object
someTheora app;

try {
app.go();
} catch( Ogre::Exception& e ) {
#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
#else
std::cerr << "An exception has occured: " <<
e.getFullDescription().c_str() << std::endl;
#endif
}

return 0;
}

#ifdef __cplusplus
}
#endif

any idea now ?

Kreso

06-07-2010 13:05:43

did you reference the plugin in plugins.cfg? this is crutial as ogre initializes the singletons in the plugin then.

ps: why are you creating two pointers to ogrevideomanager and theoravideomanager? you only need ogrevideomanager if i remember correctly.

jonlolo

06-07-2010 15:40:32

i did, i think, this is my plugins_d.cfg
# Defines plugins to load

# Define plugin folder
PluginFolder=.

# Define plugins
Plugin=RenderSystem_Direct3D9_d
# Plugin=RenderSystem_Direct3D10_d
# Plugin=RenderSystem_Direct3D11_d
Plugin=RenderSystem_GL_d
# Plugin=RenderSystem_GLES_d
Plugin=Plugin_ParticleFX_d
Plugin=Plugin_BSPSceneManager_d
Plugin=Plugin_CgProgramManager_d
Plugin=Plugin_PCZSceneManager_d
Plugin=Plugin_OctreeZone_d
Plugin=Plugin_OctreeSceneManager_d
Plugin=Plugin_OgreVideo_d


this is the ogre.log, maybe it gives more information:
11:29:56: Creating resource group General
11:29:56: Creating resource group Internal
11:29:56: Creating resource group Autodetect
11:29:56: SceneManagerFactory for type 'DefaultSceneManager' registered.
11:29:56: Registering ResourceManager for type Material
11:29:56: Registering ResourceManager for type Mesh
11:29:56: Registering ResourceManager for type Skeleton
11:29:56: MovableObjectFactory for type 'ParticleSystem' registered.
11:29:56: OverlayElementFactory for type Panel registered.
11:29:56: OverlayElementFactory for type BorderPanel registered.
11:29:56: OverlayElementFactory for type TextArea registered.
11:29:56: Registering ResourceManager for type Font
11:29:56: ArchiveFactory for archive type FileSystem registered.
11:29:56: ArchiveFactory for archive type Zip registered.
11:29:56: DDS codec registering
11:29:56: FreeImage version: 3.13.1
11:29:56: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
11:29:56: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2,pfm,pct,pict,pic,bay,bmq,cr2,crw,cs1,dc2,dcr,dng,erf,fff,hdr,k25,kdc,mdc,mos,mrw,nef,orf,pef,pxn,raf,raw,rdc,sr2,srf,arw,3fr,cine,ia,kc2,mef,nrw,qtk,rw2,sti,drf,dsc,ptx,cap,iiq,rwz
11:29:56: Registering ResourceManager for type HighLevelGpuProgram
11:29:56: Registering ResourceManager for type Compositor
11:29:56: MovableObjectFactory for type 'Entity' registered.
11:29:56: MovableObjectFactory for type 'Light' registered.
11:29:56: MovableObjectFactory for type 'BillboardSet' registered.
11:29:56: MovableObjectFactory for type 'ManualObject' registered.
11:29:56: MovableObjectFactory for type 'BillboardChain' registered.
11:29:56: MovableObjectFactory for type 'RibbonTrail' registered.
11:29:56: Loading library .\RenderSystem_Direct3D9_d
11:29:56: Installing plugin: D3D9 RenderSystem
11:29:56: D3D9 : Direct3D9 Rendering Subsystem created.
11:29:56: D3D9: Driver Detection Starts
11:29:56: D3D9: Driver Detection Ends
11:29:56: Plugin successfully installed
11:29:56: Loading library .\RenderSystem_GL_d
11:29:56: Installing plugin: GL RenderSystem
11:29:56: OpenGL Rendering Subsystem created.
11:29:56: Plugin successfully installed
11:29:56: Loading library .\Plugin_ParticleFX_d
11:29:56: Installing plugin: ParticleFX
11:29:56: Particle Emitter Type 'Point' registered
11:29:56: Particle Emitter Type 'Box' registered
11:29:56: Particle Emitter Type 'Ellipsoid' registered
11:29:56: Particle Emitter Type 'Cylinder' registered
11:29:56: Particle Emitter Type 'Ring' registered
11:29:56: Particle Emitter Type 'HollowEllipsoid' registered
11:29:56: Particle Affector Type 'LinearForce' registered
11:29:56: Particle Affector Type 'ColourFader' registered
11:29:56: Particle Affector Type 'ColourFader2' registered
11:29:56: Particle Affector Type 'ColourImage' registered
11:29:56: Particle Affector Type 'ColourInterpolator' registered
11:29:56: Particle Affector Type 'Scaler' registered
11:29:56: Particle Affector Type 'Rotator' registered
11:29:56: Particle Affector Type 'DirectionRandomiser' registered
11:29:56: Particle Affector Type 'DeflectorPlane' registered
11:29:56: Plugin successfully installed
11:29:56: Loading library .\Plugin_BSPSceneManager_d
11:29:56: Installing plugin: BSP Scene Manager
11:29:56: Plugin successfully installed
11:29:56: Loading library .\Plugin_CgProgramManager_d
11:29:56: Installing plugin: Cg Program Manager
11:29:56: Plugin successfully installed
11:29:56: Loading library .\Plugin_PCZSceneManager_d
11:29:56: Installing plugin: Portal Connected Zone Scene Manager
11:29:56: PCZone Factory Type 'ZoneType_Default' registered
11:29:56: Plugin successfully installed
11:29:56: Loading library .\Plugin_OctreeZone_d
11:29:56: Installing plugin: Octree Zone Factory
11:29:56: Plugin successfully installed
11:29:56: Loading library .\Plugin_OctreeSceneManager_d
11:29:56: Installing plugin: Octree & Terrain Scene Manager
11:29:56: Plugin successfully installed
11:29:56: Loading library .\Plugin_OgreVideo_d
11:29:56: OgreVideo: Initializing Theora Playback Library (1.0 RC2)
11:29:56: Registering Texture Controller: Type = ogg_video Name = TheoraVideoPlugin
11:29:56: *-*-* OGRE Initialising
11:29:56: *-*-* Version 1.7.1 (Cthugha)
11:29:56: Creating resource group Essential
11:29:56: Added resource location '../../media/thumbnails' of type 'FileSystem' to resource group 'Essential'
11:29:56: Added resource location '../../media/packs/SdkTrays.zip' of type 'Zip' to resource group 'Essential'
11:29:56: Added resource location '../../media' of type 'FileSystem' to resource group 'General'
11:29:56: Creating resource group Popular
11:29:56: Added resource location '../../media/fonts' of type 'FileSystem' to resource group 'Popular'
11:29:56: Added resource location '../../media/materials/programs' of type 'FileSystem' to resource group 'Popular'
11:29:56: Added resource location '../../media/materials/scripts' of type 'FileSystem' to resource group 'Popular'
11:29:56: Added resource location '../../media/materials/scripts/video' of type 'FileSystem' to resource group 'Popular'
11:29:56: Added resource location '../../media/materials/textures' of type 'FileSystem' to resource group 'Popular'
11:29:56: Added resource location '../../media/materials/textures/nvidia' of type 'FileSystem' to resource group 'Popular'
11:29:56: Added resource location '../../media/models' of type 'FileSystem' to resource group 'Popular'
11:29:56: Added resource location '../../media/particle' of type 'FileSystem' to resource group 'Popular'
11:29:56: Added resource location '../../media/DeferredShadingMedia' of type 'FileSystem' to resource group 'Popular'
11:29:56: Added resource location '../../media/PCZAppMedia' of type 'FileSystem' to resource group 'Popular'
11:29:56: Added resource location '../../media/RTShaderLib' of type 'FileSystem' to resource group 'Popular'
11:29:56: Added resource location '../../media/RTShaderLib/materials' of type 'FileSystem' to resource group 'Popular'
11:29:56: Added resource location '../../media/oggs' of type 'FileSystem' to resource group 'Popular'
11:29:56: Added resource location '../../media/packs/cubemap.zip' of type 'Zip' to resource group 'Popular'
11:29:56: Added resource location '../../media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'Popular'
11:29:56: Added resource location '../../media/packs/dragon.zip' of type 'Zip' to resource group 'Popular'
11:29:56: Added resource location '../../media/packs/fresneldemo.zip' of type 'Zip' to resource group 'Popular'
11:29:56: Added resource location '../../media/packs/ogretestmap.zip' of type 'Zip' to resource group 'Popular'
11:29:56: Added resource location '../../media/packs/ogredance.zip' of type 'Zip' to resource group 'Popular'
11:29:56: Added resource location '../../media/packs/Sinbad.zip' of type 'Zip' to resource group 'Popular'
11:29:56: Added resource location '../../media/packs/skybox.zip' of type 'Zip' to resource group 'Popular'
11:29:56: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
11:29:56: D3D9 : RenderSystem Option: FSAA = 0
11:29:56: D3D9 : RenderSystem Option: Floating-point mode = Fastest
11:29:56: D3D9 : RenderSystem Option: Full Screen = Yes
11:29:56: D3D9 : RenderSystem Option: Rendering Device = Monitor-1-Intel(R) Q965/Q963 Express Chipset Family
11:29:56: D3D9 : RenderSystem Option: Resource Creation Policy = Create on all devices
11:29:56: D3D9 : RenderSystem Option: VSync = No
11:29:56: D3D9 : RenderSystem Option: VSync Interval = 1
11:29:56: D3D9 : RenderSystem Option: Video Mode = 800 x 600 @ 32-bit colour
11:29:56: D3D9 : RenderSystem Option: sRGB Gamma Conversion = No
11:29:57: CPU Identifier & Features
11:29:57: -------------------------
11:29:57: * CPU ID: GenuineIntel: Intel(R) Pentium(R) D CPU 3.40GHz
11:29:57: * SSE: yes
11:29:57: * SSE2: yes
11:29:57: * SSE3: yes
11:29:57: * MMX: yes
11:29:57: * MMXEXT: yes
11:29:57: * 3DNOW: no
11:29:57: * 3DNOWEXT: no
11:29:57: * CMOV: yes
11:29:57: * TSC: yes
11:29:57: * FPU: yes
11:29:57: * PRO: yes
11:29:57: * HT: yes
11:29:57: -------------------------
11:29:57: *** Starting Win32GL Subsystem ***
11:29:57: GLRenderSystem::_createRenderWindow "someTheora Render Window", 800x600 windowed miscParams: FSAA=0 FSAAHint= colourDepth=32 displayFrequency=0 gamma=false vsync=false vsyncInterval=1
11:29:57: Created Win32Window 'someTheora Render Window' : 808x634, 32bpp
11:29:57: GL_VERSION = 1.4.0 - Build 6.14.10.4704
11:29:57: GL_VENDOR = Intel
11:29:57: GL_RENDERER = Intel 965/963 Graphics Media Accelerator
11:29:57: GL_EXTENSIONS = GL_ARB_depth_texture GL_ARB_fragment_program GL_ARB_multitexture GL_ARB_point_parameters GL_ARB_shadow GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_env_crossbar GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_window_pos GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_clip_volume_hint GL_EXT_compiled_vertex_array GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_packed_pixels GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_texture_compression_s3tc GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_lod_bias GL_EXT_texture_filter_anisotropic GL_EXT_texture3D GL_3DFX_texture_compression_FXT1 GL_IBM_texture_mirrored_repeat GL_NV_blend_square GL_NV_texgen_reflection GL_SGIS_generate_mipmap GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_WIN_swap_hint
11:29:57: Supported WGL extensions: WGL_ARB_buffer_region WGL_ARB_extensions_string WGL_ARB_make_current_read WGL_ARB_pixel_format WGL_ARB_pbuffer WGL_EXT_extensions_string WGL_EXT_swap_control
11:29:57: ***************************
11:29:57: *** GL Renderer Started ***
11:29:57: ***************************
11:29:57: Registering ResourceManager for type GpuProgram
11:29:57: GL: Using PBuffers for rendering to textures
11:29:57: RenderSystem capabilities
11:29:57: -------------------------
11:29:57: RenderSystem Name: OpenGL Rendering Subsystem
11:29:57: GPU Vendor: intel
11:29:57: Device Name: Intel 965/963 Graphics Media Accelerator
11:29:57: Driver Version: 1.4.0.0
11:29:57: * Fixed function pipeline: yes
11:29:57: * Hardware generation of mipmaps: no
11:29:57: * Texture blending: yes
11:29:57: * Anisotropic texture filtering: yes
11:29:57: * Dot product texture operation: yes
11:29:57: * Cube mapping: yes
11:29:57: * Hardware stencil buffer: yes
11:29:57: - Stencil depth: 8
11:29:57: - Two sided stencil support: yes
11:29:57: - Wrap stencil values: yes
11:29:57: * Hardware vertex / index buffers: yes
11:29:57: * Vertex programs: yes
11:29:57: * Number of floating-point constants for vertex programs: 96
11:29:57: * Number of integer constants for vertex programs: 0
11:29:57: * Number of boolean constants for vertex programs: 0
11:29:57: * Fragment programs: yes
11:29:57: * Number of floating-point constants for fragment programs: 24
11:29:57: * Number of integer constants for fragment programs: 0
11:29:57: * Number of boolean constants for fragment programs: 0
11:29:57: * Geometry programs: no
11:29:57: * Number of floating-point constants for geometry programs: 0
11:29:57: * Number of integer constants for geometry programs: 15
11:29:57: * Number of boolean constants for geometry programs: 0
11:29:57: * Supported Shader Profiles: arbfp1 arbvp1
11:29:57: * Texture Compression: yes
11:29:57: - DXT: yes
11:29:57: - VTC: no
11:29:57: - PVRTC: no
11:29:57: * Scissor Rectangle: yes
11:29:57: * Hardware Occlusion Query: no
11:29:57: * User clip planes: yes
11:29:57: * VET_UBYTE4 vertex element type: yes
11:29:57: * Infinite far plane projection: yes
11:29:57: * Hardware render-to-texture: yes
11:29:57: * Floating point textures: no
11:29:57: * Non-power-of-two textures: no
11:29:57: * Volume textures: yes
11:29:57: * Multiple Render Targets: 1
11:29:57: - With different bit depths: no
11:29:57: * Point Sprites: no
11:29:57: * Extended point parameters: yes
11:29:57: * Max Point Size: 255
11:29:57: * Vertex texture fetch: no
11:29:57: * Number of world matrices: 0
11:29:57: * Number of texture units: 16
11:29:57: * Stencil buffer depth: 8
11:29:57: * Number of vertex blend matrices: 0
11:29:57: * Render to Vertex Buffer : no
11:29:57: * GL 1.5 without VBO workaround: no
11:29:57: * Frame Buffer objects: no
11:29:57: * Frame Buffer objects (ARB extension): no
11:29:57: * Frame Buffer objects (ATI extension): no
11:29:57: * PBuffer support: yes
11:29:57: * GL 1.5 without HW-occlusion workaround: no
11:29:57: Registering ResourceManager for type Texture
11:29:57: DefaultWorkQueue('Root') initialising on thread 00155708.
11:29:57: DefaultWorkQueue('Root')::WorkerFunc - thread 0AA22308 starting.
11:29:57: DefaultWorkQueue('Root')::WorkerFunc - thread 0AA22458 starting.
11:29:57: Particle Renderer Type 'billboard' registered
11:29:57: SceneManagerFactory for type 'BspSceneManager' registered.
11:29:57: Registering ResourceManager for type BspLevel
11:29:57: SceneManagerFactory for type 'PCZSceneManager' registered.
11:29:57: MovableObjectFactory for type 'PCZLight' registered.
11:29:57: MovableObjectFactory for type 'Portal' registered.
11:29:57: MovableObjectFactory for type 'AntiPortal' registered.
11:29:57: PCZone Factory Type 'ZoneType_Octree' registered
11:29:57: PCZone Factory Type 'ZoneType_Terrain' registered
11:29:57: SceneManagerFactory for type 'OctreeSceneManager' registered.
11:29:57: SceneManagerFactory for type 'TerrainSceneManager' registered.
11:29:57: Parsing scripts for resource group Autodetect
11:29:57: Finished parsing scripts for resource group Autodetect
11:29:57: Parsing scripts for resource group Essential
11:29:57: Parsing script SdkTrays.material
11:29:57: Parsing script SdkTrays.fontdef
11:29:57: Parsing script SdkTrays.overlay
11:29:57: Bad element attribute line: '# you can offset the image to change the cursor "hotspot"' for element SdkTrays/Cursor in overlay
11:29:57: Texture: sdk_cursor.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
11:29:57: Texture: sdk_tray.png: Loading 1 faces(PF_A8R8G8B8,64x64x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,64x64x1.
11:29:57: Texture: sdk_button_up.png: Loading 1 faces(PF_A8R8G8B8,128x32x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,128x32x1.
11:29:57: Texture: sdk_text_box.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
11:29:57: Texture: sdk_mini_tray.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
11:29:57: Texture: sdk_track.png: Loading 1 faces(PF_A8R8G8B8,16x32x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,16x32x1.
11:29:57: Texture: sdk_handle.png: Loading 1 faces(PF_A8R8G8B8,16x16x1) with 4 generated mipmaps from Image. Internal format is PF_A8R8G8B8,16x16x1.
11:29:57: Texture: sdk_mini_text_box.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
11:29:57: Texture: sdk_label.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
11:29:57: Texture: sdk_separator.png: Loading 1 faces(PF_A8R8G8B8,64x16x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,64x16x1.
11:29:57: Texture: sdk_logo.png: Loading 1 faces(PF_A8R8G8B8,128x64x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,128x64x1.
11:29:57: Texture: sdk_shade.png: Loading 1 faces(PF_A8R8G8B8,64x48x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,64x64x1.
11:29:57: Texture: sdk_frame.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
11:29:57: Texture: sdk_mini_text_box_over.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
11:29:57: Texture: sdk_pulse.png: Loading 1 faces(PF_R8G8B8,8x1x1) with 3 generated mipmaps from Image. Internal format is PF_X8R8G8B8,8x1x1.
11:29:57: Finished parsing scripts for resource group Essential
11:29:57: Parsing scripts for resource group General
11:29:57: Finished parsing scripts for resource group General
11:29:57: Parsing scripts for resource group Internal
11:29:57: Finished parsing scripts for resource group Internal
11:29:57: Parsing scripts for resource group Popular
11:29:57: Parsing script Examples.program
11:29:57: Parsing script StdQuad_vp.program
11:29:58: Parsing script deferred_post.program
11:29:58: Parsing script ShadowCaster.program
11:29:58: Parsing script ASCII.material
11:29:58: Parsing script ASMSwizzle.material
11:29:58: Compiler error: object unsupported by render system in ASMSwizzle.material(1)
11:29:58: Parsing script BlackAndWhite.material
11:29:58: Parsing script Bloom.material
11:29:58: Parsing script Bloom2.material
11:29:58: Parsing script CGSwizzle.material
11:29:58: Parsing script CompositorDemo.material
11:29:58: Parsing script DepthShadowmap.material
11:29:58: Parsing script Dither.material
11:29:58: Parsing script DOF.material
11:29:58: Parsing script Embossed.material
11:29:58: Parsing script Example-Water.material
11:29:58: Parsing script Examples-Advanced.material
11:29:58: Compiler error: object unsupported by render system in Examples-Advanced.material(383)
11:29:58: Parsing script Examples-DynTex.material
11:29:58: Parsing script Examples-Water.material
11:29:58: Parsing script Examples.material
11:29:58: OGRE EXCEPTION(2:InvalidParametersException): Parameter called camObjPos does not exist. in GpuProgramParameters::_findNamedConstantDefinition at ..\..\..\..\OgreMain\src\OgreGpuProgramParams.cpp (line 1433)
11:29:58: Compiler error: invalid parameters in Examples.material(837): setting of constant failed
11:29:58: Parsing script facial.material
11:29:58: Parsing script Glass.material
11:29:59: Parsing script GLSLSwizzle.material
11:29:59: Parsing script Halftone.material
11:29:59: Parsing script hdr.material
11:29:59: Parsing script HeatVision.material
11:29:59: Parsing script Hurt.material
11:29:59: Parsing script instancing.material
11:29:59: Parsing script Invert.material
11:29:59: Parsing script IsoSurf.material
11:29:59: Parsing script Laplace.material
11:29:59: Parsing script MotionBlur.material
11:29:59: Parsing script MRTtest.material
11:29:59: Parsing script NightVision.material
11:29:59: Parsing script Ocean.material
11:29:59: Parsing script OffsetMapping.material
11:29:59: Compiler error: object unsupported by render system in OffsetMapping.material(18)
11:29:59: Parsing script Ogre.material
11:29:59: Parsing script OldMovie.material
11:29:59: Parsing script OldTV.material
11:29:59: Parsing script ParticleGS.material
11:29:59: Parsing script Penguin.material
11:29:59: Parsing script Posterize.material
11:29:59: Parsing script pssm.material
11:29:59: Parsing script RadialBlur.material
11:29:59: Parsing script RZR-002.material
11:29:59: Parsing script ShaderSystem.material
11:29:59: Parsing script shadows.material
11:29:59: Parsing script SharpenEdges.material
11:29:59: Parsing script sibenik.material
11:29:59: Parsing script smoke.material
11:29:59: Parsing script Tiling.material
11:29:59: Parsing script VarianceShadowmap.material
11:29:59: Parsing script videos.material
11:29:59: Parsing script deferreddemo.material
11:29:59: Parsing script deferred_post.material
11:29:59: Parsing script deferred_post_minilight.material
11:29:59: Parsing script ShadowCaster.material
11:29:59: Parsing script ssao.material
11:29:59: Parsing script ROOM.material
11:29:59: Parsing script RTShaderSystem.material
11:29:59: Compiler error: unknown error in RTShaderSystem.material(23): token "rtshader_system" is not recognized
11:29:59: Compiler error: unknown error in RTShaderSystem.material(52): token "rtshader_system" is not recognized
11:29:59: Compiler error: unknown error in RTShaderSystem.material(81): token "rtshader_system" is not recognized
11:29:59: Compiler error: unknown error in RTShaderSystem.material(110): token "rtshader_system" is not recognized
11:29:59: Compiler error: unknown error in RTShaderSystem.material(146): token "rtshader_system" is not recognized
11:29:59: Compiler error: unknown error in RTShaderSystem.material(81): token "rtshader_system" is not recognized
11:29:59: Compiler error: unknown error in RTShaderSystem.material(162): token "rtshader_system" is not recognized
11:29:59: Compiler error: unknown error in RTShaderSystem.material(81): token "rtshader_system" is not recognized
11:29:59: Compiler error: unknown error in RTShaderSystem.material(110): token "rtshader_system" is not recognized
11:29:59: Parsing script RomanBath.material
11:30:00: Parsing script Sinbad.material
11:30:00: Parsing script emitted_emitter.particle
11:30:00: Parsing script Examples-Water.particle
11:30:00: Parsing script Examples.particle
11:30:00: Parsing script smoke.particle
11:30:00: Parsing script Examples.compositor
11:30:00: Parsing script deferred.compositor
11:30:00: Parsing script ssao.compositor
11:30:00: Parsing script sample.fontdef
11:30:00: Finished parsing scripts for resource group Popular

attached is a screenshot of my debug folder, so you can see the files, maybe im using the wrong one, i dont know..
[attachment=0]ss.JPG[/attachment]

one question; the libtheoraplayer.lib is the same that Plugin_TheoraPlayerSystem.lib ?
about the pointers in the code: in the demo_player proyect, it defines a function called getClip() which returns a pointer to a TheoraVideoClip, but in the function code it uses a TheoraVideoManager, so im not sure..

Kreso

07-07-2010 09:24:22

hmm, weird, everything should be okay. are you sure you're using the same file for the plugin and the one used in linking? the best solution is to keep the plugin in the same folder as the exe and use that path for plugins. if you use two different files, one for linking and running and the other for plugin registration, hell will break loose :)
but, from your screenshot I see you've already done that. can you tell me if the getSingleton() call returns 0?
also, does the demo in the svn work on your computer?

as for your question, libetheoraplayer.dll is the backend library, plugin_ogrevideo is the plugin. you can statically compile libtheoraplayer and use that for ogrevideo so you can get one file, up to you.

jonlolo

07-07-2010 15:04:37

what do you mean by using the same file ?
i mean, for linking i use the .lib and for the plugin the .dll.
ill check if the getSingleton() returns 0 later.
however i cant run the demo from the svn because i havent compiled the CEGUI, and had some problems with it too.