Du bist nicht angemeldet.

Stilllegung des Forums
Das Forum wurde am 05.06.2023 nach über 20 Jahren stillgelegt (weitere Informationen und ein kleiner Rückblick).
Registrierungen, Anmeldungen und Postings sind nicht mehr möglich. Öffentliche Inhalte sind weiterhin zugänglich.
Das Team von spieleprogrammierer.de bedankt sich bei der Community für die vielen schönen Jahre.
Wenn du eine deutschsprachige Spieleentwickler-Community suchst, schau doch mal im Discord und auf ZFX vorbei!

Werbeanzeige

1

14.03.2011, 19:54

Einstieg in Ogre - Ein paar Fragen

Hallo Forum,

vor kurzem habe ich mal mit Ogre angefangen. Inzwischen habe ich allerdings einige Probleme, bei denen auch Google wenig hilft.
Ich hoffe ihr könnt mir helfen
Ich verwende Ogre 1.7.2 für Visual Studio 2010.

1.)BaseApplication
Ich habe mit diesen Tutorials von mirlix begonnen und anschließend mit diesen Tutorials des Ogre-Wikis weitergemacht. Genau genommen ab dem 2., da das 1. ungefähr das behandelt, was in mirlix's Tutorials bereits erklärt wurde. Allerdings gibt es ab dem 3. ein Problem. Gleich am Anfang steht das hier:

C-/C++-Quelltext

1
2
3
4
5
bool BasicTutorial3::frameRenderingQueued(const Ogre::FrameEvent& evt)
{
    bool ret = BaseApplication::frameRenderingQueued(evt);
    return ret;
}

Ich verwende allerdings noch die ExampleApplication von zuvor, die kein frameRenderingQueued() oder etwas ähnliches besitzt. Also wollte ich auf BaseApplication umsteigen, allerdings fehlt meiner Ogre-Version etwas derartiges. Hat das einfach nur einen komplett anderen Namen bzw. wie komme ich an die Funktion?

2.) Kameramann

C-/C++-Quelltext

1
mCameraMan = new OgreBites::SdkCameraMan(mCamera);   // create a default camera controller


Diese Zeile funktioniert bei mir überhaupt nicht. Ich habe weder einen mCameraMan, noch eine OgreBites Klasse/Namespace,noch eine SdkCameraMan()-Funktion. Deshalb hat die Kamera natürlich auch nicht die Einstellungen, die man davor gemacht hat.Wie macht man das in meiner Ogre-Version?

3.) Standardeigenschaftsblätter
Das ist keine Ogre, sondern viel mehr eine grundlagende Visual C++ Frage. Ich bin kurze Zeit bevor ich mit Ogre angefangen habe auf Visual Studio 2010 umgestiegen. Ein Problem nervt mich seit dem und irgendwie komme ich mit der MSDN-Erklärung nicht zurecht. Die faselt etwas von Ansicht->Eigenschaften-Manager, aber ich habe höchstens Ansicht->Weiter Fenster->Eigenschaftenfenster und mit dem kann ich garnichts anfangen.Weil auch Google nichts dazu sagt nehme ich an, dass ich einfach etwas übersehen habe.Bitte um eine kurze Erklärung wie man Standardeigenschaften einrichtet.

Freue mich schon auf Antworten :D

MfG
stoni

2

14.03.2011, 20:02

zu 1): kanns sein, das dir das fehlt?: http://www.ogre3d.org/tikiwiki/Ogre+Wiki+Tutorial+Framework
war in der Einleitung vom Basic tutorial 3 angegeben...
damit könnte sich eventuell auch 2 erledigt haben, so genau hab ich mir das nicht angeschaut ;)

3

14.03.2011, 20:34

Das schaut ja schon gut aus. Danke :D
Dieses Setting Up ist sowieso etwas verwirrend, deshalb nicht so genau hingeschaut ;)
Gleich mal probieren

4

18.03.2011, 21:51

So, endlich wieder Zeit gefunden.
Das Framework hat tatsächlich beide Probleme gelöst :D

Allerdings kommt recht bald der nächste Fehler. Gibt viel dazu bei Google, aber nichts wirklich hilfreiches
Beim ersten Compile and Run des 3. Tutorials kommt folgender Log:

Zitat

17:18:26: Creating resource group General
17:18:26: Creating resource group Internal
17:18:26: Creating resource group Autodetect
17:18:26: SceneManagerFactory for type 'DefaultSceneManager' registered.
17:18:26: Registering ResourceManager for type Material
17:18:26: Registering ResourceManager for type Mesh
17:18:26: Registering ResourceManager for type Skeleton
17:18:26: MovableObjectFactory for type 'ParticleSystem' registered.
17:18:26: OverlayElementFactory for type Panel registered.
17:18:26: OverlayElementFactory for type BorderPanel registered.
17:18:26: OverlayElementFactory for type TextArea registered.
17:18:26: Registering ResourceManager for type Font
17:18:26: ArchiveFactory for archive type FileSystem registered.
17:18:26: ArchiveFactory for archive type Zip registered.
17:18:26: DDS codec registering
17:18:26: FreeImage version: 3.13.1
17:18:26: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
17:18:26: 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
17:18:26: Registering ResourceManager for type HighLevelGpuProgram
17:18:26: Registering ResourceManager for type Compositor
17:18:27: MovableObjectFactory for type 'Entity' registered.
17:18:27: MovableObjectFactory for type 'Light' registered.
17:18:27: MovableObjectFactory for type 'BillboardSet' registered.
17:18:27: MovableObjectFactory for type 'ManualObject' registered.
17:18:27: MovableObjectFactory for type 'BillboardChain' registered.
17:18:27: MovableObjectFactory for type 'RibbonTrail' registered.
17:18:27: Loading library .\RenderSystem_Direct3D9_d
17:18:27: Installing plugin: D3D9 RenderSystem
17:18:27: D3D9 : Direct3D9 Rendering Subsystem created.
17:18:27: D3D9: Driver Detection Starts
17:18:27: D3D9: Driver Detection Ends
17:18:27: Plugin successfully installed
17:18:27: Loading library .\RenderSystem_GL_d
17:18:27: Installing plugin: GL RenderSystem
17:18:27: OpenGL Rendering Subsystem created.
17:18:28: Plugin successfully installed
17:18:28: Loading library .\Plugin_ParticleFX_d
17:18:28: Installing plugin: ParticleFX
17:18:28: Particle Emitter Type 'Point' registered
17:18:28: Particle Emitter Type 'Box' registered
17:18:28: Particle Emitter Type 'Ellipsoid' registered
17:18:28: Particle Emitter Type 'Cylinder' registered
17:18:28: Particle Emitter Type 'Ring' registered
17:18:28: Particle Emitter Type 'HollowEllipsoid' registered
17:18:28: Particle Affector Type 'LinearForce' registered
17:18:28: Particle Affector Type 'ColourFader' registered
17:18:28: Particle Affector Type 'ColourFader2' registered
17:18:28: Particle Affector Type 'ColourImage' registered
17:18:28: Particle Affector Type 'ColourInterpolator' registered
17:18:28: Particle Affector Type 'Scaler' registered
17:18:28: Particle Affector Type 'Rotator' registered
17:18:28: Particle Affector Type 'DirectionRandomiser' registered
17:18:28: Particle Affector Type 'DeflectorPlane' registered
17:18:28: Plugin successfully installed
17:18:28: Loading library .\Plugin_BSPSceneManager_d
17:18:29: Installing plugin: BSP Scene Manager
17:18:29: Plugin successfully installed
17:18:29: Loading library .\Plugin_CgProgramManager_d
17:18:29: Installing plugin: Cg Program Manager
17:18:29: Plugin successfully installed
17:18:29: Loading library .\Plugin_PCZSceneManager_d
17:18:29: Installing plugin: Portal Connected Zone Scene Manager
17:18:29: PCZone Factory Type 'ZoneType_Default' registered
17:18:29: Plugin successfully installed
17:18:29: Loading library .\Plugin_OctreeZone_d
17:18:29: Installing plugin: Octree Zone Factory
17:18:29: Plugin successfully installed
17:18:29: Loading library .\Plugin_OctreeSceneManager_d
17:18:29: Installing plugin: Octree & Terrain Scene Manager
17:18:29: Plugin successfully installed
17:18:29: *-*-* OGRE Initialising
17:18:29: *-*-* Version 1.7.2 (Cthugha)
17:18:29: Creating resource group Essential
17:18:29: Added resource location '../../media/thumbnails' of type 'FileSystem' to resource group 'Essential'
17:18:29: Added resource location '../../media/packs/SdkTrays.zip' of type 'Zip' to resource group 'Essential'
17:18:29: Added resource location '../../media' of type 'FileSystem' to resource group 'General'
17:18:29: Creating resource group Popular
17:18:29: Added resource location '../../media/fonts' of type 'FileSystem' to resource group 'Popular'
17:18:29: Added resource location '../../media/materials/programs' of type 'FileSystem' to resource group 'Popular'
17:18:29: Added resource location '../../media/materials/scripts' of type 'FileSystem' to resource group 'Popular'
17:18:29: Added resource location '../../media/materials/textures' of type 'FileSystem' to resource group 'Popular'
17:18:29: Added resource location '../../media/materials/textures/nvidia' of type 'FileSystem' to resource group 'Popular'
17:18:29: Added resource location '../../media/models' of type 'FileSystem' to resource group 'Popular'
17:18:29: Added resource location '../../media/particle' of type 'FileSystem' to resource group 'Popular'
17:18:29: Added resource location '../../media/DeferredShadingMedia' of type 'FileSystem' to resource group 'Popular'
17:18:29: Added resource location '../../media/PCZAppMedia' of type 'FileSystem' to resource group 'Popular'
17:18:29: Added resource location '../../media/RTShaderLib' of type 'FileSystem' to resource group 'Popular'
17:18:29: Added resource location '../../media/RTShaderLib/materials' of type 'FileSystem' to resource group 'Popular'
17:18:29: Added resource location '../../media/packs/cubemap.zip' of type 'Zip' to resource group 'Popular'
17:18:29: Added resource location '../../media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'Popular'
17:18:29: Added resource location '../../media/packs/dragon.zip' of type 'Zip' to resource group 'Popular'
17:18:29: Added resource location '../../media/packs/fresneldemo.zip' of type 'Zip' to resource group 'Popular'
17:18:29: Added resource location '../../media/packs/ogretestmap.zip' of type 'Zip' to resource group 'Popular'
17:18:29: Added resource location '../../media/packs/ogredance.zip' of type 'Zip' to resource group 'Popular'
17:18:29: Added resource location '../../media/packs/Sinbad.zip' of type 'Zip' to resource group 'Popular'
17:18:29: Added resource location '../../media/packs/skybox.zip' of type 'Zip' to resource group 'Popular'
17:18:30: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
17:18:30: D3D9 : RenderSystem Option: FSAA = 0
17:18:30: D3D9 : RenderSystem Option: Floating-point mode = Fastest
17:18:30: D3D9 : RenderSystem Option: Full Screen = Yes
17:18:30: D3D9 : RenderSystem Option: Rendering Device = Monitor-1-NVIDIA GeForce GT 420M
17:18:30: D3D9 : RenderSystem Option: Resource Creation Policy = Create on all devices
17:18:30: D3D9 : RenderSystem Option: VSync = No
17:18:30: D3D9 : RenderSystem Option: VSync Interval = 1
17:18:30: D3D9 : RenderSystem Option: Video Mode = 1920 x 1080 @ 32-bit colour
17:18:30: D3D9 : RenderSystem Option: sRGB Gamma Conversion = No
17:18:45: D3D9 : RenderSystem Option: Video Mode = 800 x 600 @ 16-bit colour
17:18:49: D3D9 : RenderSystem Option: Full Screen = No
17:18:50: *** Stopping Win32GL Subsystem ***
17:18:50: CPU Identifier & Features
17:18:50: -------------------------
17:18:50: * CPU ID: GenuineIntel: Intel(R) Core(TM) i5 CPU M 460 @ 2.53GHz
17:18:50: * SSE: yes
17:18:50: * SSE2: yes
17:18:50: * SSE3: yes
17:18:50: * MMX: yes
17:18:50: * MMXEXT: yes
17:18:50: * 3DNOW: no
17:18:50: * 3DNOWEXT: no
17:18:50: * CMOV: yes
17:18:50: * TSC: yes
17:18:50: * FPU: yes
17:18:50: * PRO: yes
17:18:50: * HT: no
17:18:50: -------------------------
17:18:50: D3D9 : Subsystem Initialising
17:18:50: Registering ResourceManager for type Texture
17:18:50: Registering ResourceManager for type GpuProgram
17:18:50: D3D9RenderSystem::_createRenderWindow "TutorialApplication Render Window", 800x600 windowed miscParams: FSAA=0 FSAAHint= colourDepth=16 gamma=false monitorIndex=0 useNVPerfHUD=false vsync=false vsyncInterval=1
17:18:50: D3D9 : Created D3D9 Rendering Window 'TutorialApplication Render Window' : 800x600, 16bpp
17:18:50: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
17:18:50: D3D9: Vertex texture format supported - PF_A8R8G8B8
17:18:50: D3D9: Vertex texture format supported - PF_B8G8R8A8
17:18:50: D3D9: Vertex texture format supported - PF_FLOAT16_RGB
17:18:50: D3D9: Vertex texture format supported - PF_FLOAT16_RGBA
17:18:50: D3D9: Vertex texture format supported - PF_FLOAT32_RGB
17:18:50: D3D9: Vertex texture format supported - PF_FLOAT32_RGBA
17:18:50: D3D9: Vertex texture format supported - PF_R8G8B8A8
17:18:50: D3D9: Vertex texture format supported - PF_DEPTH
17:18:50: D3D9: Vertex texture format supported - PF_FLOAT16_R
17:18:50: D3D9: Vertex texture format supported - PF_FLOAT32_R
17:18:50: D3D9: Vertex texture format supported - PF_FLOAT16_GR
17:18:50: D3D9: Vertex texture format supported - PF_FLOAT32_GR
17:18:50: D3D9: Vertex texture format supported - PF_PVRTC_RGB2
17:18:50: D3D9: Vertex texture format supported - PF_PVRTC_RGBA2
17:18:50: D3D9: Vertex texture format supported - PF_PVRTC_RGB4
17:18:50: D3D9: Vertex texture format supported - PF_PVRTC_RGBA4
17:18:50: RenderSystem capabilities
17:18:50: -------------------------
17:18:50: RenderSystem Name: Direct3D9 Rendering Subsystem
17:18:50: GPU Vendor: nvidia
17:18:50: Device Name: Monitor-1-NVIDIA GeForce GT 420M
17:18:50: Driver Version: 8.17.12.5903
17:18:50: * Fixed function pipeline: yes
17:18:50: * Hardware generation of mipmaps: yes
17:18:50: * Texture blending: yes
17:18:50: * Anisotropic texture filtering: yes
17:18:50: * Dot product texture operation: yes
17:18:51: * Cube mapping: yes
17:18:51: * Hardware stencil buffer: no
17:18:51: * Hardware vertex / index buffers: yes
17:18:51: * Vertex programs: yes
17:18:51: * Number of floating-point constants for vertex programs: 256
17:18:51: * Number of integer constants for vertex programs: 16
17:18:51: * Number of boolean constants for vertex programs: 16
17:18:51: * Fragment programs: yes
17:18:51: * Number of floating-point constants for fragment programs: 224
17:18:51: * Number of integer constants for fragment programs: 16
17:18:51: * Number of boolean constants for fragment programs: 16
17:18:51: * Geometry programs: no
17:18:51: * Number of floating-point constants for geometry programs: 0
17:18:51: * Number of integer constants for geometry programs: 8
17:18:51: * Number of boolean constants for geometry programs: 0
17:18:51: * Supported Shader Profiles: hlsl ps_1_1 ps_1_2 ps_1_3 ps_1_4 ps_2_0 ps_2_a ps_2_b ps_2_x ps_3_0 vs_1_1 vs_2_0 vs_2_a vs_2_x vs_3_0
17:18:51: * Texture Compression: yes
17:18:51: - DXT: yes
17:18:51: - VTC: no
17:18:51: - PVRTC: no
17:18:51: * Scissor Rectangle: yes
17:18:51: * Hardware Occlusion Query: yes
17:18:51: * User clip planes: yes
17:18:51: * VET_UBYTE4 vertex element type: yes
17:18:51: * Infinite far plane projection: yes
17:18:51: * Hardware render-to-texture: yes
17:18:51: * Floating point textures: yes
17:18:51: * Non-power-of-two textures: yes
17:18:51: * Volume textures: yes
17:18:51: * Multiple Render Targets: 4
17:18:51: - With different bit depths: yes
17:18:51: * Point Sprites: yes
17:18:51: * Extended point parameters: yes
17:18:51: * Max Point Size: 10
17:18:51: * Vertex texture fetch: yes
17:18:51: * Number of world matrices: 0
17:18:51: * Number of texture units: 8
17:18:51: * Stencil buffer depth: 8
17:18:51: * Number of vertex blend matrices: 0
17:18:51: - Max vertex textures: 4
17:18:51: - Vertex textures shared: no
17:18:51: * Render to Vertex Buffer : no
17:18:51: * DirectX per stage constants: yes
17:18:51: ***************************************
17:18:51: *** D3D9 : Subsystem Initialised OK ***
17:18:51: ***************************************
17:18:51: DefaultWorkQueue('Root') initialising on thread 0030D6F0.
17:18:51: DefaultWorkQueue('Root')::WorkerFunc - thread 00323DE0 starting.
17:18:51: DefaultWorkQueue('Root')::WorkerFunc - thread 00323E10 starting.
17:18:51: DefaultWorkQueue('Root')::WorkerFunc - thread 00323E40 starting.
17:18:51: DefaultWorkQueue('Root')::WorkerFunc - thread 00323E70 starting.
17:18:51: Particle Renderer Type 'billboard' registered
17:18:51: SceneManagerFactory for type 'BspSceneManager' registered.
17:18:51: Registering ResourceManager for type BspLevel
17:18:51: SceneManagerFactory for type 'PCZSceneManager' registered.
17:18:51: MovableObjectFactory for type 'PCZLight' registered.
17:18:51: MovableObjectFactory for type 'Portal' registered.
17:18:51: MovableObjectFactory for type 'AntiPortal' registered.
17:18:51: PCZone Factory Type 'ZoneType_Octree' registered
17:18:51: PCZone Factory Type 'ZoneType_Terrain' registered
17:18:51: SceneManagerFactory for type 'OctreeSceneManager' registered.
17:18:51: SceneManagerFactory for type 'TerrainSceneManager' registered.
17:18:51: Parsing scripts for resource group Autodetect
17:18:51: Finished parsing scripts for resource group Autodetect
17:18:51: Parsing scripts for resource group Essential
17:18:51: Parsing script SdkTrays.material
17:18:51: Parsing script SdkTrays.fontdef
17:18:51: Parsing script SdkTrays.overlay
17:18:51: Bad element attribute line: '# you can offset the image to change the cursor "hotspot"' for element SdkTrays/Cursor in overlay
17:18:51: Texture: sdk_cursor.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
17:18:51: Texture: sdk_tray.png: Loading 1 faces(PF_A8R8G8B8,64x64x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,64x64x1.
17:18:51: Texture: sdk_button_up.png: Loading 1 faces(PF_A8R8G8B8,128x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,128x32x1.
17:18:51: Texture: sdk_text_box.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
17:18:51: Texture: sdk_mini_tray.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
17:18:51: Texture: sdk_track.png: Loading 1 faces(PF_A8R8G8B8,16x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,16x32x1.
17:18:51: Texture: sdk_handle.png: Loading 1 faces(PF_A8R8G8B8,16x16x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,16x16x1.
17:18:51: Texture: sdk_mini_text_box.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
17:18:51: Texture: sdk_label.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
17:18:51: Texture: sdk_separator.png: Loading 1 faces(PF_A8R8G8B8,64x16x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,64x16x1.
17:18:51: Texture: sdk_logo.png: Loading 1 faces(PF_A8R8G8B8,128x64x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,128x64x1.
17:18:51: Texture: sdk_shade.png: Loading 1 faces(PF_A8R8G8B8,64x48x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,64x48x1.
17:18:51: Texture: sdk_frame.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
17:18:51: Texture: sdk_mini_text_box_over.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
17:18:51: Texture: sdk_pulse.png: Loading 1 faces(PF_R8G8B8,8x1x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,8x1x1.
17:18:51: Finished parsing scripts for resource group Essential
17:18:51: Parsing scripts for resource group General
17:18:51: Finished parsing scripts for resource group General
17:18:51: Parsing scripts for resource group Internal
17:18:51: Finished parsing scripts for resource group Internal
17:18:51: Parsing scripts for resource group Popular
17:18:52: Parsing script Examples.program
17:18:52: Parsing script StdQuad_vp.program
17:18:52: Parsing script deferred_post.program
17:18:52: Parsing script ShadowCaster.program
17:18:52: Parsing script ASCII.material
17:18:52: Parsing script ASMSwizzle.material
17:18:52: Compiler error: object unsupported by render system in ASMSwizzle.material(1)
17:18:52: Parsing script BlackAndWhite.material
17:18:52: Parsing script Bloom.material
17:18:52: Parsing script Bloom2.material
17:18:52: Parsing script CGSwizzle.material
17:18:52: Parsing script CompositorDemo.material
17:18:52: Parsing script DepthShadowmap.material
17:18:52: Parsing script Dither.material
17:18:52: Parsing script DOF.material
17:18:52: Parsing script Embossed.material
17:18:52: Parsing script Example-Water.material
17:18:52: Parsing script Examples-Advanced.material
17:18:53: Parsing script Examples-DynTex.material
17:18:53: Parsing script Examples-Water.material
17:18:53: Parsing script Examples.material
17:18:53: OGRE EXCEPTION(2:InvalidParametersException): Parameter called camObjPos does not exist. in GpuProgramParameters::_findNamedConstantDefinition at ..\..\..\..\OgreMain\src\OgreGpuProgramParams.cpp (line 1433)
17:18:53: Compiler error: invalid parameters in Examples.material(837): setting of constant failed
17:18:53: Parsing script facial.material
17:18:53: Parsing script Glass.material
17:18:53: Parsing script GLSLSwizzle.material
17:18:53: Parsing script Halftone.material
17:18:53: Parsing script hdr.material
17:18:53: Parsing script HeatVision.material
17:18:53: Parsing script Hurt.material
17:18:53: Parsing script instancing.material
17:18:53: Parsing script Invert.material
17:18:53: Parsing script IsoSurf.material
17:18:53: Parsing script Laplace.material
17:18:53: Parsing script MotionBlur.material
17:18:53: Parsing script MRTtest.material
17:18:53: Parsing script NightVision.material
17:18:53: Parsing script Ocean.material
17:18:54: Parsing script OffsetMapping.material
17:18:54: Parsing script Ogre.material
17:18:54: Parsing script OldMovie.material
17:18:54: Parsing script OldTV.material
17:18:54: Parsing script ParticleGS.material
17:18:54: OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/GenerateVS: CG ERROR : "The compile returned an error."
(0) : error C6015: Output 'POSITION' not completely written
in CgProgram::loadFromSource at ..\..\..\..\..\PlugIns\CgProgramManager\src\OgreCgProgramManagerDll.cpp (line 67)
17:18:54: High-level program Ogre/ParticleGS/GenerateVS encountered an error during loading and is thus not supported.
OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/GenerateVS: CG ERROR : "The compile returned an error."
(0) : error C6015: Output 'POSITION' not completely written
in CgProgram::loadFromSource at ..\..\..\..\..\PlugIns\CgProgramManager\src\OgreCgProgramManagerDll.cpp (line 67)
17:18:54: OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/DisplayVS: CG ERROR : "The compile returned an error."
(249) : warning C7050: "output.color" might be used before being initialized
(0) : error C6015: Output 'POSITION' not completely written
in CgProgram::loadFromSource at ..\..\..\..\..\PlugIns\CgProgramManager\src\OgreCgProgramManagerDll.cpp (line 67)
17:18:54: High-level program Ogre/ParticleGS/DisplayVS encountered an error during loading and is thus not supported.
OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/DisplayVS: CG ERROR : "The compile returned an error."
(249) : warning C7050: "output.color" might be used before being initialized
(0) : error C6015: Output 'POSITION' not completely written
in CgProgram::loadFromSource at ..\..\..\..\..\PlugIns\CgProgramManager\src\OgreCgProgramManagerDll.cpp (line 67)
17:18:54: OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/DisplayPS: CG ERROR : "The compile returned an error."
(323) : fatal error C9999: unexpected cast operation
in CgProgram::loadFromSource at ..\..\..\..\..\PlugIns\CgProgramManager\src\OgreCgProgramManagerDll.cpp (line 67)
17:18:54: High-level program Ogre/ParticleGS/DisplayPS encountered an error during loading and is thus not supported.
OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/DisplayPS: CG ERROR : "The compile returned an error."
(323) : fatal error C9999: unexpected cast operation
in CgProgram::loadFromSource at ..\..\..\..\..\PlugIns\CgProgramManager\src\OgreCgProgramManagerDll.cpp (line 67)
17:18:54: Parsing script Penguin.material
17:18:54: Parsing script Posterize.material
17:18:54: Parsing script pssm.material
17:18:54: Parsing script RadialBlur.material
17:18:54: Parsing script RZR-002.material
17:18:54: Parsing script ShaderSystem.material
17:18:54: Parsing script shadows.material
17:18:54: Parsing script SharpenEdges.material
17:18:54: Parsing script sibenik.material
17:18:54: Parsing script smoke.material
17:18:54: Parsing script Tiling.material
17:18:54: Parsing script VarianceShadowmap.material
17:18:54: Parsing script deferreddemo.material
17:18:54: Parsing script deferred_post.material
17:18:54: Parsing script deferred_post_minilight.material
17:18:54: Parsing script ShadowCaster.material
17:18:54: Parsing script ssao.material
17:18:54: Parsing script ROOM.material
17:18:54: Parsing script RTShaderSystem.material
17:18:54: Compiler error: unknown error in RTShaderSystem.material(23): token "rtshader_system" is not recognized
17:18:54: Compiler error: unknown error in RTShaderSystem.material(52): token "rtshader_system" is not recognized
17:18:54: Compiler error: unknown error in RTShaderSystem.material(81): token "rtshader_system" is not recognized
17:18:54: Compiler error: unknown error in RTShaderSystem.material(110): token "rtshader_system" is not recognized
17:18:54: Compiler error: unknown error in RTShaderSystem.material(146): token "rtshader_system" is not recognized
17:18:54: Compiler error: unknown error in RTShaderSystem.material(81): token "rtshader_system" is not recognized
17:18:54: Compiler error: unknown error in RTShaderSystem.material(162): token "rtshader_system" is not recognized
17:18:54: Compiler error: unknown error in RTShaderSystem.material(81): token "rtshader_system" is not recognized
17:18:54: Compiler error: unknown error in RTShaderSystem.material(110): token "rtshader_system" is not recognized
17:18:54: Parsing script RomanBath.material
17:18:54: Parsing script Sinbad.material
17:18:54: Parsing script emitted_emitter.particle
17:18:54: Parsing script Examples-Water.particle
17:18:54: Parsing script Examples.particle
17:18:55: Parsing script smoke.particle
17:18:55: Parsing script Examples.compositor
17:18:55: Parsing script deferred.compositor
17:18:55: Parsing script ssao.compositor
17:18:55: Parsing script sample.fontdef
17:18:55: Finished parsing scripts for resource group Popular
Das Programm stürzt ab.
Das liegt irgendwie an dieser Datei: ASMSwizzle.material(1)
Aber dazu wie man das löst habe ich nichts gefunden ?(

MfG
stoni

Thoran

Alter Hase

Beiträge: 520

Wohnort: Stuttgart

Beruf: Senior Software Engineer

  • Private Nachricht senden

5

19.03.2011, 14:24

Ehrlich gesagt glaube ich nicht, dass es an Ogre liegt, dass dein Programm abstürzt. In solchen Fällen findet man meist eine OGRE_EXCEPTION im Log, die einen Hinweis gibt. Du hast zwar auch solch eine Exception im Log aber die bezieht sich auf ein Material-Skript, das in diesem Fall halt nicht geladen wird. Ein F10-Debug-Stepping würde dir wahrscheinlich helfen das Problem einzugrenzen. Ich glaube auch nicht, dass es an dem ASMSwizzle liegt. Das Material wird bei dieser Fehlermeldung einfach nicht geladen und steht nicht zur Verfügung. Sollte es später von einem Mesh verwendet werden, würdes du einen entsprchenden Hinweis im Log sehen, z.B. "Mesh benutz Material A, Material A ist unbekannt, setze Default-material".

Thoran
Mein Entwicklertagebuch
Aktuelles Projekt: Universum Espionage
Eingestellt:Spieleengine SilverCore
Organisator "Spieleentwickler Stammtisch Stuttgart"

6

27.03.2011, 10:22

Nochmals danke,mit dem Debugger hab ich das Problem gelöst ;)
Auch die Standardeigenschaftsblätter haben sich geklärt.
Man muss Extras->Einstellungen->Erweiterte Einstellungen markieren, dann gibt es Ansicht->Eigenschaften-Manager

Noch eine Frage zu dem Framework:
Kann ich das theoretisch über die Tutorials hinaus weiter nutzen, oder brauche ich für Funktionen von Ogre eine andere Initialisierungsmethode?
Und wenn ja welche könnt ihr mir empfehlen?

MfG

//EDIT: Hat sich geklärt, am Anfang des 6.Tutorials kann man es nicht mehr nutzen

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »stoni« (27.03.2011, 11:52)


7

14.06.2011, 16:35

Nochmals danke,mit dem Debugger hab ich das Problem gelöst ;)
Hi,

ich hab gerade exakt das gleiche Problem .... komme aber mit dem Eclipse-Debugger nicht wirklich dem Problem auf die Spuren .... kannst du mir deine Lösung zufällig mitteilen ?

Puschie

Frischling

Beiträge: 25

Wohnort: Sachsen-Anhalt

  • Private Nachricht senden

8

29.01.2012, 21:39

würde auch gern wissen woran es liegt, wahrscheinlich an irgentwelchen compiler einstellungen, aber irgentwie sagen alle nur, habs gefunden und weg sind se
MFG Puschie

Werbeanzeige