Manual Object trouble

Gonsor

03-12-2008 23:08:38

Hi,

first of all: Python-Ogre is really, really cool! Finally I can code in my favourite language but still use the power of Ogre. :D
The installation was really enjoyable, good job@devs!

Well, I got a problem though and I already tried for hours to solve it.
I want to create a simple ManualObject, so I tried it with Wiki Code, by reading API docs etc and it didn't work.
So i put it to the test and used the code I found in this forum (the code from an OgreNewt demo I think).
## setup 3D line node.
self.DragLineNode = self.sceneManager.getRootSceneNode().createChildSceneNode()
self.DragLine = ogre.ManualObject( "__DRAG_LINES__" )


and calling every frameStarted:

start = ogre.Vector3(-100,0,0)
end = ogre.Vector3 ( 10,20,30 )
self.DragLineNode.detachAllObjects()
self.DragLine.clear()
## draw a 3D line between these points for visual effect :)
self.DragLine.begin("BaseWhiteNoLighting", ogre.RenderOperation.OT_LINE_LIST )
self.DragLine.position( start )
self.DragLine.position( end )
self.DragLine.end()
self.DragLineNode.attachObject( self.DragLine )


But I always get the error at execution: "Aborted"
(Is there a good way to get more debugging info out of the underlying c++ libraries btw?^^)

I investigated more and found out that "self.DragLine.clear()" causes the crash. (and I think the following calls from the self.DragLine object cause a crash also)
So I tried exchanging "self.DragLine = ManualObject( ..." with "self.DragLine = self.sceneManager.createManualObject(", still no change :(
Printing out the object after initialisation, shows "<ogre.renderer.OGRE._ogre_.ManualObject object at 0x944393c>" and it's the same that is used in the frameStarted method. Seems ok to me.

Well, this is the first problem I encountered which I'm really stuck with.

I hope, you can help me. ;(

Gonsor

Gonsor

04-12-2008 13:51:04

Ok, I tried it with a really simple example using the SampleApplication framework and I still get a crash at "self.DragLine.clear()"
import ogre.renderer.OGRE as ogre
import ogre.io.OIS as ois
import SampleFramework as sf

class TestListener(sf.FrameListener):

def __init__(self, renderWindow, camera, sceneManager):
sf.FrameListener.__init__(self, renderWindow, camera)

self.sceneManager = sceneManager
## setup 3D line node.
self.DragLineNode = self.sceneManager.getRootSceneNode() \
.createChildSceneNode()
self.DragLine = ogre.ManualObject( "__DRAG_LINES__" )

def frameStarted(self, evt):
self.Keyboard.capture()

# draw manual object
start = ogre.Vector3(-100,0,0)
end = ogre.Vector3 ( 10,20,30 )
self.DragLineNode.detachAllObjects()
self.DragLine.clear()
self.DragLine.begin("BaseWhiteNoLighting", ogre.RenderOperation.OT_LINE_LIST )
self.DragLine.position( start )
self.DragLine.position( end )
self.DragLine.end()
self.DragLineNode.attachObject( self.DragLine )

return not self.Keyboard.isKeyDown(ois.KC_ESCAPE)


class Application(sf.Application):

def _createScene(self):
self.sceneManager.ambientLight = 1.0, 1.0, 1.0
self.camNode = self.sceneManager.getRootSceneNode() \
.createChildSceneNode("CamNode", (-400, 200, 400))
self.camNode.attachObject(self.camera)

def _createCamera(self):
self.camera = self.sceneManager.createCamera("Cam")
self.camera.nearClipDistance = 5
self.camera.lookAt(0, 0, 0)

def _createFrameListener(self):
self.frameListener = TestListener(self.renderWindow, self.camera,
self.sceneManager)
self.root.addFrameListener(self.frameListener)


if __name__ == "__main__":
try:
a = Application()
a.go()
except ogre.OgreException, e:
print e

Is there a major mistake in this code? If not, please try executing it and tell me, if it works for you.

Gonsor

andy

04-12-2008 14:13:28

What version of PythonOgre are you using and on what system (graphics card etc) ? The following works fine for me (you had the camera set so it wouldn't show the line)
import ogre.renderer.OGRE as ogre
import ogre.io.OIS as ois
import SampleFramework as sf

class TestListener(sf.FrameListener):

def __init__(self, renderWindow, camera, sceneManager):
sf.FrameListener.__init__(self, renderWindow, camera)
self.sceneManager = sceneManager
## setup 3D line node.
self.DragLineNode = self.sceneManager.getRootSceneNode().createChildSceneNode()
self.DragLine = ogre.ManualObject( "__DRAG_LINES__" )

def frameStarted(self, evt):
# draw manual object
start = ogre.Vector3(-100,0,0)
end = ogre.Vector3 ( 10,20,30 )
self.DragLineNode.detachAllObjects()
self.DragLine.clear()
self.DragLine.begin("BaseWhiteNoLighting", ogre.RenderOperation.OT_LINE_LIST )
self.DragLine.position( start )
self.DragLine.position( end )
self.DragLine.end()
self.DragLineNode.attachObject( self.DragLine )
return sf.FrameListener.frameStarted(self,evt)


class Application(sf.Application):

def _createScene(self):
sceneManager = self.sceneManager
camera = self.camera

sceneManager.AmbientLight = ogre.ColourValue(0.5, 0.5, 0.5)

self.camNode = self.sceneManager.getRootSceneNode().createChildSceneNode("CamNode", (-400, 200, 400))
self.camNode.attachObject(self.camera)

def _createFrameListener(self):
self.frameListener = TestListener(self.renderWindow, self.camera,self.sceneManager)
self.root.addFrameListener(self.frameListener)


if __name__ == "__main__":
try:
a = Application()
a.go()
except ogre.OgreException, e:
print e


Regards
Andy

Gonsor

04-12-2008 14:42:43

No, your code also leads to a crash for me. :(

My python-ogre SVN-Revision is 822, checked out at thursday, 27.novembre.
I installed it by using the wiki (but skipped installing cegui, since I don't like it)
Graphics card is a NVIDIA 8600M GT with an up-to-date driver (177.80) and I use Ubuntu 8.10.

Until now, everything worked completely fine (did all the tutorials again).

Moreover, I get some errors when using the example framework in Ogre.log; I don't know, if they're important, since I don't get them in my current project (which obviously doesn't use the SampleFramework).

Well i just post my Ogre.log, which shows more detailed info:
15:39:18: Creating resource group General
15:39:18: Creating resource group Internal
15:39:18: Creating resource group Autodetect
15:39:18: SceneManagerFactory for type 'DefaultSceneManager' registered.
15:39:18: Registering ResourceManager for type Material
15:39:18: Registering ResourceManager for type Mesh
15:39:18: Registering ResourceManager for type Skeleton
15:39:18: MovableObjectFactory for type 'ParticleSystem' registered.
15:39:18: OverlayElementFactory for type Panel registered.
15:39:18: OverlayElementFactory for type BorderPanel registered.
15:39:18: OverlayElementFactory for type TextArea registered.
15:39:18: Registering ResourceManager for type Font
15:39:18: ArchiveFactory for archive type FileSystem registered.
15:39:18: ArchiveFactory for archive type Zip registered.
15:39:18: FreeImage version: 3.11.0
15:39:18: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
15:39:18: 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
15:39:18: DDS codec registering
15:39:18: Registering ResourceManager for type HighLevelGpuProgram
15:39:18: Registering ResourceManager for type Compositor
15:39:18: MovableObjectFactory for type 'Entity' registered.
15:39:18: MovableObjectFactory for type 'Light' registered.
15:39:18: MovableObjectFactory for type 'BillboardSet' registered.
15:39:18: MovableObjectFactory for type 'ManualObject' registered.
15:39:18: MovableObjectFactory for type 'BillboardChain' registered.
15:39:18: MovableObjectFactory for type 'RibbonTrail' registered.
15:39:18: Loading library /home/daniel/development/root/usr/lib/OGRE/RenderSystem_GL.so
15:39:18: Installing plugin: GL RenderSystem
15:39:18: OpenGL Rendering Subsystem created.
15:39:18: Plugin successfully installed
15:39:18: Loading library /home/daniel/development/root/usr/lib/OGRE/Plugin_ParticleFX.so
15:39:18: Installing plugin: ParticleFX
15:39:18: Particle Emitter Type 'Point' registered
15:39:18: Particle Emitter Type 'Box' registered
15:39:18: Particle Emitter Type 'Ellipsoid' registered
15:39:18: Particle Emitter Type 'Cylinder' registered
15:39:18: Particle Emitter Type 'Ring' registered
15:39:18: Particle Emitter Type 'HollowEllipsoid' registered
15:39:18: Particle Affector Type 'LinearForce' registered
15:39:18: Particle Affector Type 'ColourFader' registered
15:39:18: Particle Affector Type 'ColourFader2' registered
15:39:18: Particle Affector Type 'ColourImage' registered
15:39:18: Particle Affector Type 'ColourInterpolator' registered
15:39:18: Particle Affector Type 'Scaler' registered
15:39:18: Particle Affector Type 'Rotator' registered
15:39:18: Particle Affector Type 'DirectionRandomiser' registered
15:39:18: Particle Affector Type 'DeflectorPlane' registered
15:39:18: Plugin successfully installed
15:39:18: Loading library /home/daniel/development/root/usr/lib/OGRE/Plugin_BSPSceneManager.so
15:39:18: Installing plugin: BSP Scene Manager
15:39:18: Plugin successfully installed
15:39:18: Loading library /home/daniel/development/root/usr/lib/OGRE/Plugin_OctreeSceneManager.so
15:39:18: Installing plugin: Octree & Terrain Scene Manager
15:39:18: Plugin successfully installed
15:39:18: Loading library /home/daniel/development/root/usr/lib/OGRE/Plugin_CgProgramManager.so
15:39:18: Installing plugin: Cg Program Manager
15:39:19: Plugin successfully installed
15:39:19: *-*-* OGRE Initialising
15:39:19: *-*-* Version 1.6.0 (Shoggoth)
15:39:19: Creating resource group Bootstrap
15:39:19: Added resource location 'media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
15:39:19: Added resource location 'media' of type 'FileSystem' to resource group 'General'
15:39:19: Added resource location 'media/fonts' of type 'FileSystem' to resource group 'General'
15:39:19: Added resource location 'media/sounds' of type 'FileSystem' to resource group 'General'
15:39:19: Added resource location 'media/Audio' of type 'FileSystem' to resource group 'General'
15:39:19: Added resource location 'media/materials/programs' of type 'FileSystem' to resource group 'General'
15:39:19: Added resource location 'media/materials/scripts' of type 'FileSystem' to resource group 'General'
15:39:19: Added resource location 'media/materials/textures' of type 'FileSystem' to resource group 'General'
15:39:19: Added resource location 'media/models' of type 'FileSystem' to resource group 'General'
15:39:19: Added resource location 'media/overlays' of type 'FileSystem' to resource group 'General'
15:39:19: Added resource location 'media/particle' of type 'FileSystem' to resource group 'General'
15:39:19: Added resource location 'media/gui' of type 'FileSystem' to resource group 'General'
15:39:19: Added resource location 'media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
15:39:19: Added resource location 'media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
15:39:19: Added resource location 'media/packs/dragon.zip' of type 'Zip' to resource group 'General'
15:39:19: Added resource location 'media/packs/fresneldemo.zip' of type 'Zip' to resource group 'General'
15:39:19: Added resource location 'media/packs/ogretestmap.zip' of type 'Zip' to resource group 'General'
15:39:19: Added resource location 'media/packs/skybox.zip' of type 'Zip' to resource group 'General'
15:39:21: CPU Identifier & Features
15:39:21: -------------------------
15:39:21: * CPU ID: GenuineIntel: Intel(R) Core(TM)2 Duo CPU T7100 @ 1.80GHz
15:39:21: * SSE: yes
15:39:21: * SSE2: yes
15:39:21: * SSE3: yes
15:39:21: * MMX: yes
15:39:21: * MMXEXT: yes
15:39:21: * 3DNOW: no
15:39:21: * 3DNOWEXT: no
15:39:21: * CMOV: yes
15:39:21: * TSC: yes
15:39:21: * FPU: yes
15:39:21: * PRO: yes
15:39:21: * HT: no
15:39:21: -------------------------
15:39:21: ******************************
*** Starting GLX Subsystem ***
******************************
15:39:21: GLRenderSystem::_createRenderWindow "/home/daniel/Projekte/python-ogre/test.py", 800x600 windowed miscParams: FSAA=0 displayFrequency=54 MHz gamma=No vsync=No
15:39:21: GLXWindow::create used FBConfigID = 117
15:39:21: GL_VERSION = 2.1.2 NVIDIA 177.80
15:39:21: GL_VENDOR = NVIDIA Corporation
15:39:21: GL_RENDERER = GeForce 8600M GT/PCI/SSE2
15:39:21: GL_EXTENSIONS = GL_ARB_color_buffer_float GL_ARB_depth_texture GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_half_float_pixel GL_ARB_imaging GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_shadow GL_ARB_shader_objects GL_ARB_shading_language_100 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_float GL_ARB_texture_mirrored_repeat GL_ARB_texture_non_power_of_two GL_ARB_texture_rectangle GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_window_pos GL_ATI_draw_buffers GL_ATI_texture_float GL_ATI_texture_mirror_once GL_S3_s3tc GL_EXT_texture_env_add GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_Cg_shader GL_EXT_bindable_uniform GL_EXT_depth_bounds_test GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_framebuffer_object GL_EXTX_framebuffer_mixed_formats GL_EXT_framebuffer_sRGB GL_EXT_geometry_shader4 GL_EXT_gpu_program_parameters GL_EXT_gpu_shader4 GL_EXT_multi_draw_arrays GL_EXT_packed_depth_stencil GL_EXT_packed_float GL_EXT_packed_pixels GL_EXT_pixel_buffer_object GL_EXT_point_parameters 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_texture3D GL_EXT_texture_array GL_EXT_texture_buffer_object GL_EXT_texture_compression_latc GL_EXT_texture_compression_rgtc GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_integer GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_texture_mirror_clamp GL_EXT_texture_object GL_EXT_texture_sRGB GL_EXT_texture_shared_exponent GL_EXT_timer_query GL_EXT_vertex_array GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_copy_depth_to_color GL_NV_depth_buffer_float GL_NV_conditional_render GL_NV_depth_clamp GL_NV_fence GL_NV_float_buffer GL_NV_fog_distance GL_NV_fragment_program GL_NV_fragment_program_option GL_NV_fragment_program2 GL_NV_framebuffer_multisample_coverage GL_NV_geometry_shader4 GL_NV_gpu_program4 GL_NV_half_float GL_NV_light_max_exponent GL_NV_multisample_coverage GL_NV_multisample_filter_hint GL_NV_occlusion_query GL_NV_packed_depth_stencil GL_NV_parameter_buffer_object GL_NV_pixel_data_range GL_NV_point_sprite GL_NV_primitive_restart GL_NV_register_combiners GL_NV_register_combiners2 GL_NV_texgen_reflection GL_NV_texture_compression_vtc GL_NV_texture_env_combine4 GL_NV_texture_expand_normal GL_NV_texture_rectangle GL_NV_texture_shader GL_NV_texture_shader2 GL_NV_texture_shader3 GL_NV_transform_feedback GL_NV_vertex_array_range GL_NV_vertex_array_range2 GL_NV_vertex_program GL_NV_vertex_program1_1 GL_NV_vertex_program2 GL_NV_vertex_program2_option GL_NV_vertex_program3 GL_NVX_conditional_render GL_SGIS_generate_mipmap GL_SGIS_texture_lod GL_SGIX_depth_texture GL_SGIX_shadow GL_SUN_slice_accum
15:39:21: Supported GLX extensions: GLX_EXT_visual_info GLX_EXT_visual_rating GLX_SGIX_fbconfig GLX_SGIX_pbuffer GLX_SGI_video_sync GLX_SGI_swap_control GLX_EXT_texture_from_pixmap GLX_ARB_multisample GLX_NV_float_buffer GLX_ARB_fbconfig_float GLX_EXT_framebuffer_sRGB GLX_ARB_get_proc_address
15:39:21: ***************************
15:39:21: *** GL Renderer Started ***
15:39:21: ***************************
15:39:21: Registering ResourceManager for type GpuProgram
15:39:21: GLSL support detected
15:39:21: GL: Using GL_EXT_framebuffer_object for rendering to textures (best)
15:39:21: FBO PF_UNKNOWN depth/stencil support: D16S0 D24S0 D32S0 Packed-D24S8
15:39:21: FBO PF_L8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
15:39:21: FBO PF_A8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
15:39:22: FBO PF_A4L4 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
15:39:22: FBO PF_BYTE_LA depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
15:39:22: FBO PF_R5G6B5 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
15:39:22: FBO PF_B5G6R5 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
15:39:22: FBO PF_A1R5G5B5 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
15:39:22: FBO PF_R8G8B8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
15:39:22: FBO PF_B8G8R8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
15:39:22: FBO PF_A8R8G8B8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
15:39:23: FBO PF_B8G8R8A8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
15:39:23: FBO PF_A2R10G10B10 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
15:39:23: FBO PF_A2B10G10R10 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
15:39:23: FBO PF_FLOAT16_RGB depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
15:39:23: FBO PF_FLOAT16_RGBA depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
15:39:23: FBO PF_FLOAT32_RGB depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
15:39:23: FBO PF_FLOAT32_RGBA depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
15:39:24: FBO PF_X8R8G8B8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
15:39:24: FBO PF_X8B8G8R8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
15:39:24: FBO PF_SHORT_RGBA depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
15:39:24: FBO PF_R3G3B2 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
15:39:24: FBO PF_FLOAT16_R depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
15:39:24: FBO PF_FLOAT32_R depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
15:39:24: FBO PF_FLOAT16_GR depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
15:39:24: FBO PF_FLOAT32_GR depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
15:39:24: FBO PF_SHORT_RGB depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
15:39:24: [GL] : Valid FBO targets PF_UNKNOWN PF_L8 PF_A8 PF_A4L4 PF_BYTE_LA PF_R5G6B5 PF_B5G6R5 PF_A1R5G5B5 PF_R8G8B8 PF_B8G8R8 PF_A8R8G8B8 PF_B8G8R8A8 PF_A2R10G10B10 PF_A2B10G10R10 PF_FLOAT16_RGB PF_FLOAT16_RGBA PF_FLOAT32_RGB PF_FLOAT32_RGBA PF_X8R8G8B8 PF_X8B8G8R8 PF_SHORT_RGBA PF_R3G3B2 PF_FLOAT16_R PF_FLOAT32_R PF_FLOAT16_GR PF_FLOAT32_GR PF_SHORT_RGB
15:39:24: RenderSystem capabilities
15:39:24: -------------------------
15:39:24: RenderSystem Name: OpenGL Rendering Subsystem
15:39:24: GPU Vendor: nvidia
15:39:24: Device Name: GeForce 8600M GT/PCI/SSE2
15:39:24: Driver Version: 2.1.2.0
15:39:24: * Fixed function pipeline: yes
15:39:24: * Hardware generation of mipmaps: yes
15:39:24: * Texture blending: yes
15:39:24: * Anisotropic texture filtering: yes
15:39:24: * Dot product texture operation: yes
15:39:24: * Cube mapping: yes
15:39:24: * Hardware stencil buffer: yes
15:39:24: - Stencil depth: 8
15:39:24: - Two sided stencil support: yes
15:39:24: - Wrap stencil values: yes
15:39:24: * Hardware vertex / index buffers: yes
15:39:24: * Vertex programs: yes
15:39:24: * Fragment programs: yes
15:39:24: * Geometry programs: yes
15:39:24: * Supported Shader Profiles: arbfp1 arbvp1 fp20 fp30 fp40 glsl gp4gp gpu_gp nvgp4 vp30 vp40
15:39:24: * Texture Compression: yes
15:39:24: - DXT: yes
15:39:24: - VTC: yes
15:39:24: * Scissor Rectangle: yes
15:39:24: * Hardware Occlusion Query: yes
15:39:24: * User clip planes: yes
15:39:24: * VET_UBYTE4 vertex element type: yes
15:39:24: * Infinite far plane projection: yes
15:39:24: * Hardware render-to-texture: yes
15:39:24: * Floating point textures: yes
15:39:24: * Non-power-of-two textures: yes
15:39:24: * Volume textures: yes
15:39:24: * Multiple Render Targets: 8
15:39:24: - With different bit depths: yes
15:39:24: * Point Sprites: yes
15:39:24: * Extended point parameters: yes
15:39:24: * Max Point Size: 63.375
15:39:24: * Vertex texture fetch: yes
15:39:24: - Max vertex textures: 32
15:39:24: - Vertex textures shared: yes
15:39:24: * Render to Vertex Buffer : yes
15:39:24: * GL 1.5 without VBO workaround: no
15:39:24: * Frame Buffer objects: yes
15:39:24: * Frame Buffer objects (ARB extension): no
15:39:24: * Frame Buffer objects (ATI extension): no
15:39:24: * PBuffer suppport: no
15:39:24: * GL 1.5 without HW-occlusion workaround: no
15:39:24: Registering ResourceManager for type Texture
15:39:24: ResourceBackgroundQueue - threading disabled
15:39:24: Particle Renderer Type 'billboard' registered
15:39:24: SceneManagerFactory for type 'BspSceneManager' registered.
15:39:24: Registering ResourceManager for type BspLevel
15:39:24: SceneManagerFactory for type 'OctreeSceneManager' registered.
15:39:24: SceneManagerFactory for type 'TerrainSceneManager' registered.
15:39:24: Parsing scripts for resource group Autodetect
15:39:24: Finished parsing scripts for resource group Autodetect
15:39:24: Parsing scripts for resource group Bootstrap
15:39:24: Parsing script OgreCore.material
15:39:24: Parsing script OgreProfiler.material
15:39:24: Parsing script Ogre.fontdef
15:39:24: Parsing script OgreDebugPanel.overlay
15:39:24: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
15:39:24: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
15:39:24: Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
15:39:24: Font BlueHighwayusing texture size 512x512
15:39:24: Info: Freetype returned null for character 127 in font BlueHighway
15:39:24: Info: Freetype returned null for character 128 in font BlueHighway
15:39:24: Info: Freetype returned null for character 129 in font BlueHighway
15:39:24: Info: Freetype returned null for character 130 in font BlueHighway
15:39:24: Info: Freetype returned null for character 131 in font BlueHighway
15:39:24: Info: Freetype returned null for character 132 in font BlueHighway
15:39:24: Info: Freetype returned null for character 133 in font BlueHighway
15:39:24: Info: Freetype returned null for character 134 in font BlueHighway
15:39:24: Info: Freetype returned null for character 135 in font BlueHighway
15:39:24: Info: Freetype returned null for character 136 in font BlueHighway
15:39:24: Info: Freetype returned null for character 137 in font BlueHighway
15:39:24: Info: Freetype returned null for character 138 in font BlueHighway
15:39:24: Info: Freetype returned null for character 139 in font BlueHighway
15:39:24: Info: Freetype returned null for character 140 in font BlueHighway
15:39:24: Info: Freetype returned null for character 141 in font BlueHighway
15:39:25: Info: Freetype returned null for character 142 in font BlueHighway
15:39:25: Info: Freetype returned null for character 143 in font BlueHighway
15:39:25: Info: Freetype returned null for character 144 in font BlueHighway
15:39:25: Info: Freetype returned null for character 145 in font BlueHighway
15:39:25: Info: Freetype returned null for character 146 in font BlueHighway
15:39:25: Info: Freetype returned null for character 147 in font BlueHighway
15:39:25: Info: Freetype returned null for character 148 in font BlueHighway
15:39:25: Info: Freetype returned null for character 149 in font BlueHighway
15:39:25: Info: Freetype returned null for character 150 in font BlueHighway
15:39:25: Info: Freetype returned null for character 151 in font BlueHighway
15:39:25: Info: Freetype returned null for character 152 in font BlueHighway
15:39:25: Info: Freetype returned null for character 153 in font BlueHighway
15:39:25: Info: Freetype returned null for character 154 in font BlueHighway
15:39:25: Info: Freetype returned null for character 155 in font BlueHighway
15:39:25: Info: Freetype returned null for character 156 in font BlueHighway
15:39:25: Info: Freetype returned null for character 157 in font BlueHighway
15:39:25: Info: Freetype returned null for character 158 in font BlueHighway
15:39:25: Info: Freetype returned null for character 159 in font BlueHighway
15:39:25: Info: Freetype returned null for character 160 in font BlueHighway
15:39:25: Texture: BlueHighwayTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
15:39:25: Texture: ogretext.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
15:39:25: Parsing script OgreLoadingPanel.overlay
15:39:25: Finished parsing scripts for resource group Bootstrap
15:39:25: Parsing scripts for resource group General
15:39:25: Parsing script StdQuad_vp.program
15:39:25: Parsing script Examples.program
15:39:25: GLSL compiling: Ogre/BasicVertexPrograms/AmbientOneTextureGLSL
15:39:25: GLSL compiled : Ogre/BasicVertexPrograms/AmbientOneTextureGLSL
15:39:25: GLSL compiling: Ogre/HardwareSkinningTwoWeightsGLSL
15:39:25: GLSL compiled : Ogre/HardwareSkinningTwoWeightsGLSL
15:39:25: Parsing script Halftone.material
15:39:25: Parsing script OldTV.material
15:39:25: Parsing script Bloom.material
15:39:25: GLSL compiling: Blur_ps_glsl
15:39:25: GLSL compiled : Blur_ps_glsl
15:39:25: GLSL compiling: Blur0_vs_glsl
15:39:25: GLSL compiled : Blur0_vs_glsl
15:39:25: GLSL compiling: Blur1_vs_glsl
15:39:25: GLSL compiled : Blur1_vs_glsl
15:39:25: Parsing script Posterize.material
15:39:25: Parsing script ParticleGS.material
15:39:25: Parsing script OldMovie.material
15:39:25: Parsing script GLSLSwizzle.material
15:39:25: GLSL compiling: Ogre/GPTest/Swizzle_GP_GLSL
15:39:25: GLSL compiled : Ogre/GPTest/Swizzle_GP_GLSL
15:39:25: GLSL compiling: Ogre/GPTest/Passthrough_VP_GLSL
15:39:25: GLSL compiled : Ogre/GPTest/Passthrough_VP_GLSL
15:39:25: Parsing script Glass.material
15:39:25: Parsing script MRTtest.material
15:39:25: GLSL compiling: Ogre/MRTtest/scenefp/GLSL
15:39:25: GLSL compiled : Ogre/MRTtest/scenefp/GLSL
15:39:25: GLSL compiling: Ogre/MRTtest/quadfp/GLSL
15:39:25: GLSL compiled : Ogre/MRTtest/quadfp/GLSL
15:39:25: GLSL compiling: Ogre/Compositor/StdQuad_GLSL_vp
15:39:25: GLSL compiled : Ogre/Compositor/StdQuad_GLSL_vp
15:39:25: Parsing script facial.material
15:39:25: Parsing script ASMSwizzle.material
15:39:25: Parsing script Laplace.material
15:39:25: Parsing script Bloom2.material
15:39:25: GLSL compiling: Bloom2_ps20_glsl
15:39:25: GLSL compiled : Bloom2_ps20_glsl
15:39:25: Parsing script NightVision.material
15:39:25: Parsing script Invert.material
15:39:25: Parsing script smoke.material
15:39:25: Parsing script Ogre.material
15:39:25: Parsing script OffsetMapping.material
15:39:25: Compiler error: object unsupported by render system in OffsetMapping.material(18)
15:39:25: GLSL compiling: Examples/OffsetMappingIntegratedShadowsFPglsl
15:39:25: GLSL compiled : Examples/OffsetMappingIntegratedShadowsFPglsl
15:39:25: GLSL compiling: Examples/OffsetMappingIntegratedShadowsVPglsl
15:39:25: GLSL compiled : Examples/OffsetMappingIntegratedShadowsVPglsl
15:39:25: Parsing script Example-Water.material
15:39:25: Parsing script Examples-Advanced.material
15:39:25: Compiler error: object unsupported by render system in Examples-Advanced.material(381)
15:39:25: Parsing script Tiling.material
15:39:25: Parsing script hdr.material
15:39:25: GLSL compiling: Ogre/Compositor/HDR/downscale2x2LuminenceGLSL_fp
15:39:25: GLSL compiled : Ogre/Compositor/HDR/downscale2x2LuminenceGLSL_fp
15:39:25: GLSL compiling: Ogre/Compositor/HDR/downscale3x3GLSL_fp
15:39:25: GLSL compiled : Ogre/Compositor/HDR/downscale3x3GLSL_fp
15:39:25: GLSL compiling: Ogre/Compositor/HDR/utils_fp
15:39:25: GLSL compiled : Ogre/Compositor/HDR/utils_fp
15:39:25: GLSL compiling: Ogre/Compositor/HDR/downscale3x3brightpassGLSL_fp
15:39:25: GLSL compiled : Ogre/Compositor/HDR/downscale3x3brightpassGLSL_fp
15:39:25: GLSL compiling: Ogre/Compositor/HDR/bloomGLSL_fp
15:39:25: GLSL compiled : Ogre/Compositor/HDR/bloomGLSL_fp
15:39:25: GLSL compiling: Ogre/Compositor/HDR/utils_fp
15:39:25: GLSL compiled : Ogre/Compositor/HDR/utils_fp
15:39:25: GLSL compiling: Ogre/Compositor/HDR/finaltonemappingGLSL_fp
15:39:25: GLSL compiled : Ogre/Compositor/HDR/finaltonemappingGLSL_fp
15:39:25: Parsing script RadialBlur.material
15:39:25: Parsing script HeatVision.material
15:39:25: Parsing script BlackAndWhite.material
15:39:25: Parsing script SharpenEdges.material
15:39:25: Parsing script IsoSurf.material
15:39:25: Problem parsing the following Cg Uniform: '@TMP1' in file Ogre/IsoSurf/TessellateTetrahedraGS
15:39:25: Parsing script Hurt.material
15:39:25: Parsing script RZR-002.material
15:39:25: Parsing script CGSwizzle.material
15:39:25: Parsing script Embossed.material
15:39:25: Parsing script Example.material
15:39:25: GLSL compiling: Ogre/HardwareSkinningTwoWeightsShadowCasterGLSL
15:39:25: GLSL compiled : Ogre/HardwareSkinningTwoWeightsShadowCasterGLSL
15:39:25: Parsing script Example-DynTex.material
15:39:25: Parsing script ASCII.material
15:39:25: Parsing script instancing.material
15:39:25: GLSL compiling: InstancingGLSL
15:39:25: GLSL compiled : InstancingGLSL
15:39:25: GLSL compiling: InstancingShadowCasterGLSL
15:39:25: GLSL compiled : InstancingShadowCasterGLSL
15:39:25: GLSL compiling: CrowdGLSL
15:39:25: GLSL compiled : CrowdGLSL
15:39:25: GLSL compiling: CrowdShadowCasterGLSL
15:39:25: GLSL compiled : CrowdShadowCasterGLSL
15:39:25: Parsing script Dither.material
15:39:25: Parsing script Ocean.material
15:39:25: GLSL compiling: GLSL/OceanVS
15:39:25: GLSL compiled : GLSL/OceanVS
15:39:25: GLSL compiling: GLSL/OceanFS
15:39:25: GLSL compiled : GLSL/OceanFS
15:39:25: GLSL compiling: GLSL/Ocean2VS
15:39:25: GLSL compiled : GLSL/Ocean2VS
15:39:25: GLSL compiling: GLSL/Ocean2FS
15:39:25: GLSL compiled : GLSL/Ocean2FS
15:39:25: Parsing script pssm.material
15:39:25: Parsing script DOF.material
15:39:25: Parsing script VarianceShadowmap.material
15:39:26: Parsing script MotionBlur.material
15:39:26: Parsing script DepthShadowmap.material
15:39:26: GLSL compiling: Ogre/DepthShadowmap/CasterVP_GLSL
15:39:26: GLSL compiled : Ogre/DepthShadowmap/CasterVP_GLSL
15:39:26: GLSL compiling: Ogre/DepthShadowmap/CasterFP_GLSL
15:39:26: GLSL compiled : Ogre/DepthShadowmap/CasterFP_GLSL
15:39:26: GLSL compiling: Ogre/DepthShadowmap/ReceiverVP_GLSL
15:39:26: GLSL compiled : Ogre/DepthShadowmap/ReceiverVP_GLSL
15:39:26: GLSL compiling: Ogre/DepthShadowmap/ReceiverFP_GLSL
15:39:26: GLSL compiled : Ogre/DepthShadowmap/ReceiverFP_GLSL
15:39:26: GLSL compiling: Ogre/DepthShadowmap/ReceiverFPPCF_GLSL
15:39:26: GLSL compiled : Ogre/DepthShadowmap/ReceiverFPPCF_GLSL
15:39:26: GLSL compiling: Ogre/DepthShadowmap/NormalMapReceiverVP_GLSL
15:39:26: GLSL compiled : Ogre/DepthShadowmap/NormalMapReceiverVP_GLSL
15:39:26: GLSL compiling: Ogre/DepthShadowmap/NormalMapReceiverFP_GLSL
15:39:26: GLSL compiled : Ogre/DepthShadowmap/NormalMapReceiverFP_GLSL
15:39:26: GLSL compiling: Ogre/DepthShadowmap/NormalMapReceiverFPPCF_GLSL
15:39:26: GLSL compiled : Ogre/DepthShadowmap/NormalMapReceiverFPPCF_GLSL
15:39:26: Parsing script PythonOgreDebugPanel.material
15:39:26: Parsing script RomanBath.material
15:39:26: Parsing script smoke.particle
15:39:26: Parsing script Example.particle
15:39:26: Parsing script emitted_emitter.particle
15:39:26: Parsing script Example-Water.particle
15:39:26: Parsing script Examples.compositor
15:39:26: Parsing script sample.fontdef
15:39:26: Parsing script DP3.overlay
15:39:26: Parsing script Example-Water.overlay
15:39:26: Parsing script Shadows.overlay
15:39:26: Parsing script PythonOgreDebugPanel.overlay
15:39:26: Texture: popanel.png: Loading 1 faces(PF_A8R8G8B8,638x90x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,638x90x1.
15:39:26: Parsing script Compositor.overlay
15:39:26: Parsing script Example-CubeMapping.overlay
15:39:26: Parsing script Example-DynTex.overlay
15:39:26: Finished parsing scripts for resource group General
15:39:26: Parsing scripts for resource group Internal
15:39:26: Finished parsing scripts for resource group Internal


Gonsor

Gonsor

04-12-2008 22:24:48

Ya I did it!
So I tried 8 hours gettings this to work. Reinstalled everything twice, no change.
Then I tried it with C++ code to check whether it's an ogre or python-ogre related problem.
In the beginning, I had always the same crash, but then I luckily found it out.
ManualObject works for me ONLY, when specifically defining each vertex index, like this:
def _createScene(self):
sceneManager = self.sceneManager
camera = self.camera

sceneManager.AmbientLight = ogre.ColourValue(0.5, 0.5, 0.5)

self.camNode = self.sceneManager.getRootSceneNode().createChildSceneNode("CamNode", (-400, 200, 400))
self.camNode.attachObject(self.camera)

self.manual = self.sceneManager.createManualObject("manual")
self.manual.begin("BaseWhiteNoLighting", ogre.RenderOperation.OT_LINE_STRIP)

self.manual.position(-100.0, -100.0, 0.0);
self.manual.position( 100.0, -100.0, 0.0);
self.manual.position( 100.0, 100.0, 0.0);
self.manual.position(-100.0, 100.0, 0.0);

self.manual.index(0)
self.manual.index(1)
self.manual.index(2)
self.manual.index(3)
self.manual.index(0)

self.manual.end()
self.sceneManager.getRootSceneNode().createChildSceneNode().attachObject(self.manual)

I need AT LEAST one call to self.manual.index(). Without the index positions, it always crashes. I really don't know, why it worked for you without it, though.

Still exhausted but finally happy, =)
Gonsor

Edit: Ah and sorry for wasting your time with a non python related problem, andy. Next time, I'll first try with c++ to confirm whether it is really python-ogre related or not. ;(