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.04.2011, 17:12

Ogre Terrain

Liebe Forenmitglieder,

ich habe nun ein bisschen mit Ogre gearbeitet und die Basic Tutorials durchgearbeitet. Nun möchte ich ein Übungsprogramm schreiben, dass sich etwas näher mit dem Terrain von Ogre beschäftigt. Nun wird das Terrain dort nicht wirklich gut erklärt und ich habe bisher auch keine Tutorials im Internet gefunden. Dank der Doku verstehe ich jetzt das Prinzip, aber das hilft mir noch nicht viel, weil Es immer zu Fehlern kommt.
Wäre nett, wenn jemand ein gutes(oder auch weniger gutes) Tutorial oder eine andere Möglichkeit vernünftig damit zu arbeiten kennt.

Bei uns im Forum habe ich diesen Thread gefunden. Das fand ich interessant,hat mir aber nicht geholfen:

Zitat

Ogre::Terrain *pOgreTerrain = new Ogre::Terrain(pSceneMgr);
Ogre::Terrain::ImportData imp;
imp.terrainSize = 513;
imp.worldSize = 2048;
imp.inputScale = 1.0;
imp.minBatchSize = 33;
imp.maxBatchSize = 65;

imp.layerList.resize(1);

// Grundtextur setzen
imp.layerList[0].worldSize = 100;
// Hier solltest du deine eigenen Texturen verwerden^^ Das erste ist die Textur und dann die Normal
imp.layerList[0].textureNames.push_back("kpx_nature_sand_02-texture.dds");
imp.layerList[0].textureNames.push_back("kpx_nature_sand_02-normal.dds");

pOgreTerrain->prepare(imp);
pOgreTerrain->load();
Es kommt eine Fehlermeldung: "r610 abort has been called" in prepare(imp)
Auch bei anderen Versuchen macht prepare Probleme

MfG
stoni

2

14.04.2011, 18:23

Das sieht ja ganz nach nem Beispiel-Code von mir aus :D

Was steht den im Ogre.log?

3

14.04.2011, 20:42

Ogre.log:

Zitat

19:11:56: Creating resource group General
19:11:56: Creating resource group Internal
19:11:56: Creating resource group Autodetect
19:11:56: SceneManagerFactory for type 'DefaultSceneManager' registered.
19:11:56: Registering ResourceManager for type Material
19:11:56: Registering ResourceManager for type Mesh
19:11:56: Registering ResourceManager for type Skeleton
19:11:56: MovableObjectFactory for type 'ParticleSystem' registered.
19:11:56: OverlayElementFactory for type Panel registered.
19:11:56: OverlayElementFactory for type BorderPanel registered.
19:11:56: OverlayElementFactory for type TextArea registered.
19:11:56: Registering ResourceManager for type Font
19:11:56: ArchiveFactory for archive type FileSystem registered.
19:11:56: ArchiveFactory for archive type Zip registered.
19:11:56: DDS codec registering
19:11:56: FreeImage version: 3.13.1
19:11:56: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
19:11: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
19:11:56: Registering ResourceManager for type HighLevelGpuProgram
19:11:56: Registering ResourceManager for type Compositor
19:11:56: MovableObjectFactory for type 'Entity' registered.
19:11:56: MovableObjectFactory for type 'Light' registered.
19:11:56: MovableObjectFactory for type 'BillboardSet' registered.
19:11:56: MovableObjectFactory for type 'ManualObject' registered.
19:11:56: MovableObjectFactory for type 'BillboardChain' registered.
19:11:56: MovableObjectFactory for type 'RibbonTrail' registered.
19:11:56: Loading library .\RenderSystem_Direct3D9_d
19:11:56: Installing plugin: D3D9 RenderSystem
19:11:56: D3D9 : Direct3D9 Rendering Subsystem created.
19:11:56: D3D9: Driver Detection Starts
19:11:56: D3D9: Driver Detection Ends
19:11:56: Plugin successfully installed
19:11:56: Loading library .\RenderSystem_GL_d
19:11:56: Installing plugin: GL RenderSystem
19:11:56: OpenGL Rendering Subsystem created.
19:11:57: Plugin successfully installed
19:11:57: Loading library .\Plugin_ParticleFX_d
19:11:57: Installing plugin: ParticleFX
19:11:57: Particle Emitter Type 'Point' registered
19:11:57: Particle Emitter Type 'Box' registered
19:11:57: Particle Emitter Type 'Ellipsoid' registered
19:11:57: Particle Emitter Type 'Cylinder' registered
19:11:57: Particle Emitter Type 'Ring' registered
19:11:57: Particle Emitter Type 'HollowEllipsoid' registered
19:11:57: Particle Affector Type 'LinearForce' registered
19:11:57: Particle Affector Type 'ColourFader' registered
19:11:57: Particle Affector Type 'ColourFader2' registered
19:11:57: Particle Affector Type 'ColourImage' registered
19:11:57: Particle Affector Type 'ColourInterpolator' registered
19:11:57: Particle Affector Type 'Scaler' registered
19:11:57: Particle Affector Type 'Rotator' registered
19:11:57: Particle Affector Type 'DirectionRandomiser' registered
19:11:57: Particle Affector Type 'DeflectorPlane' registered
19:11:57: Plugin successfully installed
19:11:57: Loading library .\Plugin_BSPSceneManager_d
19:11:57: Installing plugin: BSP Scene Manager
19:11:57: Plugin successfully installed
19:11:57: Loading library .\Plugin_CgProgramManager_d
19:11:57: Installing plugin: Cg Program Manager
19:11:57: Plugin successfully installed
19:11:57: Loading library .\Plugin_PCZSceneManager_d
19:11:58: Installing plugin: Portal Connected Zone Scene Manager
19:11:58: PCZone Factory Type 'ZoneType_Default' registered
19:11:58: Plugin successfully installed
19:11:58: Loading library .\Plugin_OctreeZone_d
19:11:58: Installing plugin: Octree Zone Factory
19:11:58: Plugin successfully installed
19:11:58: Loading library .\Plugin_OctreeSceneManager_d
19:11:58: Installing plugin: Octree & Terrain Scene Manager
19:11:58: Plugin successfully installed
19:11:58: *-*-* OGRE Initialising
19:11:58: *-*-* Version 1.7.2 (Cthugha)
19:11:58: Creating resource group Essential
19:11:58: Added resource location '../../media/thumbnails' of type 'FileSystem' to resource group 'Essential'
19:11:58: Added resource location '../../media/packs/SdkTrays.zip' of type 'Zip' to resource group 'Essential'
19:11:58: Added resource location '../../media' of type 'FileSystem' to resource group 'General'
19:11:58: Creating resource group Popular
19:11:58: Added resource location '../../media/fonts' of type 'FileSystem' to resource group 'Popular'
19:11:58: Added resource location '../../media/materials/programs' of type 'FileSystem' to resource group 'Popular'
19:11:58: Added resource location '../../media/materials/scripts' of type 'FileSystem' to resource group 'Popular'
19:11:58: Added resource location '../../media/materials/textures' of type 'FileSystem' to resource group 'Popular'
19:11:58: Added resource location '../../media/materials/textures/nvidia' of type 'FileSystem' to resource group 'Popular'
19:11:58: Added resource location '../../media/models' of type 'FileSystem' to resource group 'Popular'
19:11:58: Added resource location '../../media/particle' of type 'FileSystem' to resource group 'Popular'
19:11:58: Added resource location '../../media/DeferredShadingMedia' of type 'FileSystem' to resource group 'Popular'
19:11:58: Added resource location '../../media/PCZAppMedia' of type 'FileSystem' to resource group 'Popular'
19:11:58: Added resource location '../../media/RTShaderLib' of type 'FileSystem' to resource group 'Popular'
19:11:58: Added resource location '../../media/RTShaderLib/materials' of type 'FileSystem' to resource group 'Popular'
19:11:58: Added resource location '../../media/packs/cubemap.zip' of type 'Zip' to resource group 'Popular'
19:11:58: Added resource location '../../media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'Popular'
19:11:58: Added resource location '../../media/packs/dragon.zip' of type 'Zip' to resource group 'Popular'
19:11:58: Added resource location '../../media/packs/fresneldemo.zip' of type 'Zip' to resource group 'Popular'
19:11:58: Added resource location '../../media/packs/ogretestmap.zip' of type 'Zip' to resource group 'Popular'
19:11:58: Added resource location '../../media/packs/ogredance.zip' of type 'Zip' to resource group 'Popular'
19:11:58: Added resource location '../../media/packs/Sinbad.zip' of type 'Zip' to resource group 'Popular'
19:11:58: Added resource location '../../media/packs/skybox.zip' of type 'Zip' to resource group 'Popular'
19:11:58: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
19:11:58: D3D9 : RenderSystem Option: FSAA = 0
19:11:58: D3D9 : RenderSystem Option: Floating-point mode = Fastest
19:11:58: D3D9 : RenderSystem Option: Full Screen = No
19:11:58: D3D9 : RenderSystem Option: Rendering Device = Monitor-1-NVIDIA GeForce GT 420M
19:11:58: D3D9 : RenderSystem Option: Resource Creation Policy = Create on all devices
19:11:58: D3D9 : RenderSystem Option: VSync = No
19:11:58: D3D9 : RenderSystem Option: VSync Interval = 1
19:11:59: D3D9 : RenderSystem Option: Video Mode = 1152 x 864 @ 32-bit colour
19:11:59: D3D9 : RenderSystem Option: sRGB Gamma Conversion = No
19:11:59: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
19:11:59: D3D9 : RenderSystem Option: FSAA = 0
19:11:59: D3D9 : RenderSystem Option: Floating-point mode = Fastest
19:11:59: D3D9 : RenderSystem Option: Full Screen = No
19:11:59: D3D9 : RenderSystem Option: Rendering Device = Monitor-1-NVIDIA GeForce GT 420M
19:11:59: D3D9 : RenderSystem Option: Resource Creation Policy = Create on all devices
19:11:59: D3D9 : RenderSystem Option: VSync = No
19:11:59: D3D9 : RenderSystem Option: VSync Interval = 1
19:11:59: D3D9 : RenderSystem Option: Video Mode = 1152 x 864 @ 32-bit colour
19:11:59: D3D9 : RenderSystem Option: sRGB Gamma Conversion = No
19:12:01: CPU Identifier & Features
19:12:01: -------------------------
19:12:01: * CPU ID: GenuineIntel: Intel(R) Core(TM) i5 CPU M 460 @ 2.53GHz
19:12:01: * SSE: yes
19:12:01: * SSE2: yes
19:12:01: * SSE3: yes
19:12:01: * MMX: yes
19:12:01: * MMXEXT: yes
19:12:01: * 3DNOW: no
19:12:01: * 3DNOWEXT: no
19:12:01: * CMOV: yes
19:12:01: * TSC: yes
19:12:01: * FPU: yes
19:12:01: * PRO: yes
19:12:01: * HT: no
19:12:01: -------------------------
19:12:01: D3D9 : Subsystem Initialising
19:12:01: Registering ResourceManager for type Texture
19:12:01: Registering ResourceManager for type GpuProgram
19:12:01: D3D9RenderSystem::_createRenderWindow "Main RenderWindow", 1152x864 windowed miscParams: FSAA=0 FSAAHint= colourDepth=32 gamma=false monitorIndex=0 useNVPerfHUD=false vsync=false vsyncInterval=1
19:12:01: D3D9 : Created D3D9 Rendering Window 'Main RenderWindow' : 1152x864, 32bpp
19:12:01: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
19:12:01: D3D9: Vertex texture format supported - PF_A8R8G8B8
19:12:01: D3D9: Vertex texture format supported - PF_B8G8R8A8
19:12:01: D3D9: Vertex texture format supported - PF_FLOAT16_RGB
19:12:01: D3D9: Vertex texture format supported - PF_FLOAT16_RGBA
19:12:01: D3D9: Vertex texture format supported - PF_FLOAT32_RGB
19:12:01: D3D9: Vertex texture format supported - PF_FLOAT32_RGBA
19:12:01: D3D9: Vertex texture format supported - PF_R8G8B8A8
19:12:01: D3D9: Vertex texture format supported - PF_DEPTH
19:12:01: D3D9: Vertex texture format supported - PF_FLOAT16_R
19:12:01: D3D9: Vertex texture format supported - PF_FLOAT32_R
19:12:01: D3D9: Vertex texture format supported - PF_FLOAT16_GR
19:12:01: D3D9: Vertex texture format supported - PF_FLOAT32_GR
19:12:01: D3D9: Vertex texture format supported - PF_PVRTC_RGB2
19:12:01: D3D9: Vertex texture format supported - PF_PVRTC_RGBA2
19:12:01: D3D9: Vertex texture format supported - PF_PVRTC_RGB4
19:12:01: D3D9: Vertex texture format supported - PF_PVRTC_RGBA4
19:12:01: RenderSystem capabilities
19:12:01: -------------------------
19:12:01: RenderSystem Name: Direct3D9 Rendering Subsystem
19:12:01: GPU Vendor: nvidia
19:12:01: Device Name: Monitor-1-NVIDIA GeForce GT 420M
19:12:01: Driver Version: 8.17.12.5903
19:12:01: * Fixed function pipeline: yes
19:12:01: * Hardware generation of mipmaps: yes
19:12:01: * Texture blending: yes
19:12:01: * Anisotropic texture filtering: yes
19:12:01: * Dot product texture operation: yes
19:12:01: * Cube mapping: yes
19:12:01: * Hardware stencil buffer: yes
19:12:01: - Stencil depth: 8
19:12:01: - Two sided stencil support: yes
19:12:01: - Wrap stencil values: yes
19:12:01: * Hardware vertex / index buffers: yes
19:12:01: * Vertex programs: yes
19:12:01: * Number of floating-point constants for vertex programs: 256
19:12:01: * Number of integer constants for vertex programs: 16
19:12:01: * Number of boolean constants for vertex programs: 16
19:12:01: * Fragment programs: yes
19:12:01: * Number of floating-point constants for fragment programs: 224
19:12:01: * Number of integer constants for fragment programs: 16
19:12:01: * Number of boolean constants for fragment programs: 16
19:12:01: * Geometry programs: no
19:12:01: * Number of floating-point constants for geometry programs: 0
19:12:01: * Number of integer constants for geometry programs: 8
19:12:01: * Number of boolean constants for geometry programs: 0
19:12:01: * 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
19:12:01: * Texture Compression: yes
19:12:01: - DXT: yes
19:12:01: - VTC: no
19:12:01: - PVRTC: no
19:12:01: * Scissor Rectangle: yes
19:12:01: * Hardware Occlusion Query: yes
19:12:01: * User clip planes: yes
19:12:01: * VET_UBYTE4 vertex element type: yes
19:12:01: * Infinite far plane projection: yes
19:12:01: * Hardware render-to-texture: yes
19:12:01: * Floating point textures: yes
19:12:01: * Non-power-of-two textures: yes
19:12:01: * Volume textures: yes
19:12:01: * Multiple Render Targets: 4
19:12:01: - With different bit depths: yes
19:12:01: * Point Sprites: yes
19:12:01: * Extended point parameters: yes
19:12:01: * Max Point Size: 10
19:12:01: * Vertex texture fetch: yes
19:12:01: * Number of world matrices: 0
19:12:01: * Number of texture units: 8
19:12:01: * Stencil buffer depth: 8
19:12:01: * Number of vertex blend matrices: 0
19:12:01: - Max vertex textures: 4
19:12:01: - Vertex textures shared: no
19:12:01: * Render to Vertex Buffer : no
19:12:01: * DirectX per stage constants: yes
19:12:01: ***************************************
19:12:01: *** D3D9 : Subsystem Initialised OK ***
19:12:01: ***************************************
19:12:01: DefaultWorkQueue('Root') initialising on thread 0016D920.
19:12:01: DefaultWorkQueue('Root')::WorkerFunc - thread 001A68C0 starting.
19:12:01: DefaultWorkQueue('Root')::WorkerFunc - thread 001A6920 starting.
19:12:01: DefaultWorkQueue('Root')::WorkerFunc - thread 001A68F0 starting.
19:12:01: DefaultWorkQueue('Root')::WorkerFunc - thread 001A6950 starting.
19:12:01: Particle Renderer Type 'billboard' registered
19:12:01: SceneManagerFactory for type 'BspSceneManager' registered.
19:12:01: Registering ResourceManager for type BspLevel
19:12:01: SceneManagerFactory for type 'PCZSceneManager' registered.
19:12:01: MovableObjectFactory for type 'PCZLight' registered.
19:12:01: MovableObjectFactory for type 'Portal' registered.
19:12:01: MovableObjectFactory for type 'AntiPortal' registered.
19:12:01: PCZone Factory Type 'ZoneType_Octree' registered
19:12:01: PCZone Factory Type 'ZoneType_Terrain' registered
19:12:01: SceneManagerFactory for type 'OctreeSceneManager' registered.
19:12:01: SceneManagerFactory for type 'TerrainSceneManager' registered.
19:12:01: Parsing scripts for resource group Autodetect
19:12:01: Finished parsing scripts for resource group Autodetect
19:12:01: Parsing scripts for resource group Essential
19:12:01: Parsing script SdkTrays.material
19:12:01: Parsing script SdkTrays.fontdef
19:12:01: Parsing script SdkTrays.overlay
19:12:01: Bad element attribute line: '# you can offset the image to change the cursor "hotspot"' for element SdkTrays/Cursor in overlay
19:12:01: Texture: sdk_cursor.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
19:12:01: Texture: sdk_tray.png: Loading 1 faces(PF_A8R8G8B8,64x64x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,64x64x1.
19:12:01: Texture: sdk_button_up.png: Loading 1 faces(PF_A8R8G8B8,128x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,128x32x1.
19:12:01: Texture: sdk_text_box.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
19:12:01: Texture: sdk_mini_tray.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
19:12:01: Texture: sdk_track.png: Loading 1 faces(PF_A8R8G8B8,16x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,16x32x1.
19:12:01: Texture: sdk_handle.png: Loading 1 faces(PF_A8R8G8B8,16x16x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,16x16x1.
19:12:01: Texture: sdk_mini_text_box.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
19:12:01: Texture: sdk_label.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
19:12:01: Texture: sdk_separator.png: Loading 1 faces(PF_A8R8G8B8,64x16x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,64x16x1.
19:12:01: Texture: sdk_logo.png: Loading 1 faces(PF_A8R8G8B8,128x64x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,128x64x1.
19:12:01: Texture: sdk_shade.png: Loading 1 faces(PF_A8R8G8B8,64x48x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,64x48x1.
19:12:01: Texture: sdk_frame.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
19:12:01: 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.
19:12:01: Texture: sdk_pulse.png: Loading 1 faces(PF_R8G8B8,8x1x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,8x1x1.
19:12:01: Finished parsing scripts for resource group Essential
19:12:01: Parsing scripts for resource group General
19:12:01: Finished parsing scripts for resource group General
19:12:01: Parsing scripts for resource group Internal
19:12:01: Finished parsing scripts for resource group Internal
19:12:01: Parsing scripts for resource group Popular
19:12:01: Parsing script Examples.program
19:12:02: Parsing script StdQuad_vp.program
19:12:02: Parsing script deferred_post.program
19:12:02: Parsing script ShadowCaster.program
19:12:02: Parsing script ASCII.material
19:12:02: Parsing script ASMSwizzle.material
19:12:02: Compiler error: object unsupported by render system in ASMSwizzle.material(1)
19:12:02: Parsing script BlackAndWhite.material
19:12:02: Parsing script Bloom.material
19:12:02: Parsing script Bloom2.material
19:12:02: Parsing script CGSwizzle.material
19:12:02: Parsing script CompositorDemo.material
19:12:02: Parsing script DepthShadowmap.material
19:12:02: Parsing script Dither.material
19:12:02: Parsing script DOF.material
19:12:02: Parsing script Embossed.material
19:12:02: Parsing script Example-Water.material
19:12:02: Parsing script Examples-Advanced.material
19:12:02: Parsing script Examples-DynTex.material
19:12:02: Parsing script Examples-Water.material
19:12:02: Parsing script Examples.material
19:12:03: OGRE EXCEPTION(2:InvalidParametersException): Parameter called camObjPos does not exist. in GpuProgramParameters::_findNamedConstantDefinition at ..\..\..\..\OgreMain\src\OgreGpuProgramParams.cpp (line 1433)
19:12:03: Compiler error: invalid parameters in Examples.material(837): setting of constant failed
19:12:03: Parsing script facial.material
19:12:03: Parsing script Glass.material
19:12:03: Parsing script GLSLSwizzle.material
19:12:03: Parsing script Halftone.material
19:12:03: Parsing script hdr.material
19:12:03: Parsing script HeatVision.material
19:12:03: Parsing script Hurt.material
19:12:03: Parsing script instancing.material
19:12:03: Parsing script Invert.material
19:12:03: Parsing script IsoSurf.material
19:12:03: Parsing script Laplace.material
19:12:03: Parsing script MotionBlur.material
19:12:03: Parsing script MRTtest.material
19:12:03: Parsing script NightVision.material
19:12:03: Parsing script Ocean.material
19:12:04: Parsing script OffsetMapping.material
19:12:04: Parsing script Ogre.material
19:12:04: Parsing script OldMovie.material
19:12:04: Parsing script OldTV.material
19:12:04: Parsing script ParticleGS.material
19:12:04: 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)
19:12:04: 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)
19:12:04: 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)
19:12:04: 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)
19:12:04: 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)
19:12:04: 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)
19:12:04: Parsing script Penguin.material
19:12:04: Parsing script Posterize.material
19:12:04: Parsing script pssm.material
19:12:04: Parsing script RadialBlur.material
19:12:04: Parsing script RZR-002.material
19:12:04: Parsing script ShaderSystem.material
19:12:04: Parsing script shadows.material
19:12:04: Parsing script SharpenEdges.material
19:12:04: Parsing script sibenik.material
19:12:04: Parsing script smoke.material
19:12:04: Parsing script Tiling.material
19:12:04: Parsing script VarianceShadowmap.material
19:12:04: Parsing script deferreddemo.material
19:12:04: Parsing script deferred_post.material
19:12:05: Parsing script deferred_post_minilight.material
19:12:05: Parsing script ShadowCaster.material
19:12:05: Parsing script ssao.material
19:12:05: Parsing script ROOM.material
19:12:05: Parsing script RTShaderSystem.material
19:12:05: Compiler error: unknown error in RTShaderSystem.material(23): token "rtshader_system" is not recognized
19:12:05: Compiler error: unknown error in RTShaderSystem.material(52): token "rtshader_system" is not recognized
19:12:05: Compiler error: unknown error in RTShaderSystem.material(81): token "rtshader_system" is not recognized
19:12:05: Compiler error: unknown error in RTShaderSystem.material(110): token "rtshader_system" is not recognized
19:12:05: Compiler error: unknown error in RTShaderSystem.material(146): token "rtshader_system" is not recognized
19:12:05: Compiler error: unknown error in RTShaderSystem.material(81): token "rtshader_system" is not recognized
19:12:05: Compiler error: unknown error in RTShaderSystem.material(162): token "rtshader_system" is not recognized
19:12:05: Compiler error: unknown error in RTShaderSystem.material(81): token "rtshader_system" is not recognized
19:12:05: Compiler error: unknown error in RTShaderSystem.material(110): token "rtshader_system" is not recognized
19:12:05: Parsing script RomanBath.material
19:12:05: Parsing script Sinbad.material
19:12:05: Parsing script emitted_emitter.particle
19:12:05: Parsing script Examples-Water.particle
19:12:05: Parsing script Examples.particle
19:12:05: Parsing script smoke.particle
19:12:05: Parsing script Examples.compositor
19:12:05: Parsing script deferred.compositor
19:12:05: Parsing script ssao.compositor
19:12:05: Parsing script sample.fontdef
19:12:05: Finished parsing scripts for resource group Popular
19:12:05: *** Initializing OIS ***
19:12:06: Mesh: Loading ninja.mesh.
19:12:06: Skeleton: Loading ninja.skeleton
19:12:06: Texture: nskingr.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
Folgendes steht noch in der Konsole, was nicht im Log steht:

Zitat

Assertion failed: ms_Singleton, file ..\..\..\..\..\Components\Terrain\src\OgreTerrain.cpp, line 88
Hab mich noch nicht viel mit dieser Meldung beschäftigt, vielleicht sagt Google noch etwas.

MfG

4

14.04.2011, 22:09

Ja da hat sich noch was geändert.

Mach mal ganz am Anfang noch:

C-/C++-Quelltext

1
Ogre::TerrainGlobalOptions *pTerrainGlobalOptions = new Ogre::TerrainGlobalOptions();

5

15.04.2011, 12:46

Gut danke, man braucht also die Globals.
Das Terrain sieht man auch schon,dummerweise stürzt das Programm beim beenden ab.
Verzichte ich auf OGRE_DELETE kommt die selbe fehlermeldung wie oben, nehme ich es dazu meldet sich das Programm nicht mehr. Warte ich dann noch, kommt die Fehlermeldung irgendwann.
Mit dem normalen new und delete ist es identisch.

6

15.04.2011, 15:21

Wenn du was löscht? Wann löscht du den die TerrainGlobals?
Nach dem Terrain?

7

15.04.2011, 16:08

in meiner destroy-funktion (natürlich erst nach der Schleife). Laut dem Tutorial erfordert OGRE_NEW auch OGRE_DELETE, deshalb werden globals und Terrain gelöscht.

8

15.04.2011, 16:23

Also du löscht aber erst das Terrain, dann die Globals und dann den Rest von Ogre?

Ja wenn du OGRE_NEW nimmst, solltest du auch OGRE_DELETE nutzen, ist halt für deren Memory-Manager ;) Aber normales delete müsste trotzdem ohne Probleme gehen^^

9

15.04.2011, 16:47

Mit der normalen TerainGroup und den Globals vom OgreTut ging das löschen ohne Probleme. Aber in diesem Fall machen OGRE_DELETE und delete keinen Unterschied, der Fehler kommt in jedem Fall

10

15.04.2011, 17:17

Zeig mal einfach deinen Code von deiner Destroy-Funktion.

Werbeanzeige