tutorial error: particle

booger

09-07-2006 23:47:57

Hi

first off I want to thank the makers of PyOgre (and Ogre too). It's a great thing.

I d/led pyogre for python 2.4 (yes, I have python 2.4). I also d/l pscyo. I have swig but have not installed it.

When i first tried to run the tutorial i got a can't find module error. So I installed the DX9 dlls. However now i get a

ExceptionPtr: ..\src\OgreBillboardParticleRenderer.cpp(222): ogre error
4: Invalid billboard_type 'perpendicular_common'

here's the huge error log. I cut out what seemed relevant and apologize for the length. What would you suggest i do? I'm running windows xp SP2



***************************************
*** D3D9 : Subsystem Initialised OK ***
***************************************
ResourceBackgroundQueue - threading disabled
Particle Renderer Type 'billboard' registered
Creating viewport on target 'OGRE Render Window', rendering from camera 'PlayerCam', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
Viewport for camera 'PlayerCam', actual dimensions L: 0 T: 0 W: 800 H: 600
Parsing scripts for resource group Bootstrap
Parsing script OgreCore.material
Parsing script OgreProfiler.material
Parsing script Ogre.fontdef
Parsing script OgreDebugPanel.overlay
Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8B8G8R8,256x128x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8B8G8R8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8B8G8R8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
Font BlueHighwayusing texture size 512x512
Info: Freetype returned null for character 127 in font BlueHighway
Info: Freetype returned null for character 128 in font BlueHighway
Info: Freetype returned null for character 129 in font BlueHighway
Info: Freetype returned null for character 130 in font BlueHighway
Info: Freetype returned null for character 131 in font BlueHighway
Info: Freetype returned null for character 132 in font BlueHighway
Info: Freetype returned null for character 133 in font BlueHighway
Info: Freetype returned null for character 134 in font BlueHighway
Info: Freetype returned null for character 135 in font BlueHighway
Info: Freetype returned null for character 136 in font BlueHighway
Info: Freetype returned null for character 137 in font BlueHighway
Info: Freetype returned null for character 138 in font BlueHighway
Info: Freetype returned null for character 139 in font BlueHighway
Info: Freetype returned null for character 140 in font BlueHighway
Info: Freetype returned null for character 141 in font BlueHighway
Info: Freetype returned null for character 142 in font BlueHighway
Info: Freetype returned null for character 143 in font BlueHighway
Info: Freetype returned null for character 144 in font BlueHighway
Info: Freetype returned null for character 145 in font BlueHighway
Info: Freetype returned null for character 146 in font BlueHighway
Info: Freetype returned null for character 147 in font BlueHighway
Info: Freetype returned null for character 148 in font BlueHighway
Info: Freetype returned null for character 149 in font BlueHighway
Info: Freetype returned null for character 150 in font BlueHighway
Info: Freetype returned null for character 151 in font BlueHighway
Info: Freetype returned null for character 152 in font BlueHighway
Info: Freetype returned null for character 153 in font BlueHighway
Info: Freetype returned null for character 154 in font BlueHighway
Info: Freetype returned null for character 155 in font BlueHighway
Info: Freetype returned null for character 156 in font BlueHighway
Info: Freetype returned null for character 157 in font BlueHighway
Info: Freetype returned null for character 158 in font BlueHighway
Info: Freetype returned null for character 159 in font BlueHighway
Info: Freetype returned null for character 160 in font BlueHighway
Texture: BlueHighwayTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
Texture: ogretext.png: Loading 1 faces(PF_A8B8G8R8,256x128x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
Parsing script OgreLoadingPanel.overlay
Finished parsing scripts for resource group Bootstrap
Parsing scripts for resource group General
Parsing script Examples.program
Error at line 68 of Examples.program: Error in program Ogre/HardwareMorphAnimation parameter includes_morph_animation is not valid.
Error at line 68 of Examples.program: Invalid param_named_auto attribute - animation_parametric
Error at line 82 of Examples.program: Error in program Ogre/HardwarePoseAnimation parameter includes_pose_animation is not valid.
Error at line 82 of Examples.program: Invalid param_named_auto attribute - animation_parametric
Parsing script StdQuad_vp.program
Parsing script BlackAndWhite.material
Parsing script Bloom.material
Parsing script DOF.material
Error in material Ogre/Compositor/DOF_Blur1 : Ogre/Compositor/DOF_Blur0 at line 55 of DOF.material: Invalid fragment_program_ref entry - fragment program has not been defined.
Parsing script Embossed.material
Parsing script Example-DynTex.material
Parsing script Example-Water.material
Parsing script Example.material
Error in material Examples/MorningSkyBox at line 204 of Example.material: Unrecognised command: scheme
Error in material Examples/MorningCubeMap at line 254 of Example.material: Unrecognised command: scheme
Error in material Examples/FlarePointSprite at line 520 of Example.material: Unrecognised command: point_sprites
Error in material Examples/FlarePointSprite at line 521 of Example.material: Unrecognised command: point_size
Error in material Examples/FlarePointSprite at line 522 of Example.material: Unrecognised command: point_size_attenuation
Parsing script Examples-Advanced.material
Error in material Examples/Athene/NormalMapped at line 828 of Examples-Advanced.material: Unrecognised command: shadow_receiver_fragment_program_ref
Error in material Examples/Athene/NormalMapped at line 829 of Examples-Advanced.material: Unrecognised command: {
Error in material Examples/Athene/NormalMapped at line 830 of Examples-Advanced.material: Unrecognised command: param_named_auto
Error in material Examples/Athene/NormalMapped at line 834 of Examples-Advanced.material: Unrecognised command: texture_unit
Error in material Examples/Athene/NormalMapped at line 835 of Examples-Advanced.material: Unrecognised command: {
Error in material Examples/Athene/NormalMapped at line 836 of Examples-Advanced.material: Unrecognised command: texture
Error in material Examples/Athene/NormalMapped at line 837 of Examples-Advanced.material: Unrecognised command: colour_op
Error in material Examples/Athene/NormalMapped at line 840 of Examples-Advanced.material: Unrecognised command: texture_unit
Error in material Examples/Athene/NormalMapped at line 841 of Examples-Advanced.material: Unrecognised command: {
Error in material Examples/Athene/NormalMapped at line 842 of Examples-Advanced.material: Unrecognised command: cubic_texture
Error in material Examples/Athene/NormalMapped at line 843 of Examples-Advanced.material: Unrecognised command: tex_coord_set
Error in material Examples/Athene/NormalMapped at line 844 of Examples-Advanced.material: Unrecognised command: tex_address_mode
Error at line 846 of Examples-Advanced.material: Unexpected terminating brace.
Error at line 849 of Examples-Advanced.material: Unrecognised command: pass
Error at line 850 of Examples-Advanced.material: Unrecognised command: {
Error at line 853 of Examples-Advanced.material: Unrecognised command: lighting
Error at line 858 of Examples-Advanced.material: Unrecognised command: vertex_program_ref
Error at line 859 of Examples-Advanced.material: Unrecognised command: {
Error at line 860 of Examples-Advanced.material: Unrecognised command: param_named_auto
Error at line 861 of Examples-Advanced.material: Unrecognised command: param_named
Error at line 862 of Examples-Advanced.material: Unexpected terminating brace.
Error at line 863 of Examples-Advanced.material: Unrecognised command: scene_blend
Error at line 864 of Examples-Advanced.material: Unrecognised command: texture_unit
Error at line 865 of Examples-Advanced.material: Unrecognised command: {
Error at line 866 of Examples-Advanced.material: Unrecognised command: texture
Error at line 867 of Examples-Advanced.material: Unexpected terminating brace.
Error at line 869 of Examples-Advanced.material: Unexpected terminating brace.
Error at line 870 of Examples-Advanced.material: Unexpected terminating brace.
Error at line 875 of Examples-Advanced.material: Unrecognised command: technique
Error at line 876 of Examples-Advanced.material: Unrecognised command: {
Error at line 878 of Examples-Advanced.material: Unrecognised command: pass
Error at line 879 of Examples-Advanced.material: Unrecognised command: {
Error at line 882 of Examples-Advanced.material: Unrecognised command: ambient
Error at line 883 of Examples-Advanced.material: Unrecognised command: diffuse
Error at line 884 of Examples-Advanced.material: Unrecognised command: specular
Error at line 889 of Examples-Advanced.material: Unrecognised command: vertex_program_ref
Error at line 890 of Examples-Advanced.material: Unrecognised command: {
Error at line 891 of Examples-Advanced.material: Unrecognised command: param_named_auto
Error at line 892 of Examples-Advanced.material: Unrecognised command: param_named_auto
Error at line 893 of Examples-Advanced.material: Unexpected terminating brace.
Error at line 895 of Examples-Advanced.material: Unexpected terminating brace.
Error at line 898 of Examples-Advanced.material: Unrecognised command: pass
Error at line 899 of Examples-Advanced.material: Unrecognised command: {
Error at line 902 of Examples-Advanced.material: Unrecognised command: ambient
Error at line 904 of Examples-Advanced.material: Unrecognised command: iteration
Error at line 907 of Examples-Advanced.material: Unrecognised command: scene_blend
Error at line 910 of Examples-Advanced.material: Unrecognised command: vertex_program_ref
Error at line 911 of Examples-Advanced.material: Unrecognised command: {
Error at line 912 of Examples-Advanced.material: Unrecognised command: param_named_auto
Error at line 913 of Examples-Advanced.material: Unrecognised command: param_named_auto
Error at line 914 of Examples-Advanced.material: Unexpected terminating brace.
Error at line 917 of Examples-Advanced.material: Unrecognised command: texture_unit
Error at line 918 of Examples-Advanced.material: Unrecognised command: {
Error at line 919 of Examples-Advanced.material: Unrecognised command: texture
Error at line 920 of Examples-Advanced.material: Unrecognised command: colour_op
Error at line 921 of Examples-Advanced.material: Unexpected terminating brace.
Error at line 923 of Examples-Advanced.material: Unrecognised command: texture_unit
Error at line 924 of Examples-Advanced.material: Unrecognised command: {
Error at line 925 of Examples-Advanced.material: Unrecognised command: cubic_texture
Error at line 926 of Examples-Advanced.material: Unrecognised command: tex_coord_set
Error at line 927 of Examples-Advanced.material: Unrecognised command: tex_address_mode
Error at line 928 of Examples-Advanced.material: Unrecognised command: colour_op_ex
Error at line 929 of Examples-Advanced.material: Unrecognised command: colour_op_multipass_fallback
Error at line 930 of Examples-Advanced.material: Unexpected terminating brace.
Error at line 931 of Examples-Advanced.material: Unexpected terminating brace.
Error at line 934 of Examples-Advanced.material: Unrecognised command: pass
Error at line 935 of Examples-Advanced.material: Unrecognised command: {
Error at line 936 of Examples-Advanced.material: Unrecognised command: lighting
Error at line 941 of Examples-Advanced.material: Unrecognised command: vertex_program_ref
Error at line 942 of Examples-Advanced.material: Unrecognised command: {
Error at line 943 of Examples-Advanced.material: Unrecognised command: param_named_auto
Error at line 944 of Examples-Advanced.material: Unrecognised command: param_named
Error at line 945 of Examples-Advanced.material: Unexpected terminating brace.
Error at line 946 of Examples-Advanced.material: Unrecognised command: scene_blend
Error at line 947 of Examples-Advanced.material: Unrecognised command: texture_unit
Error at line 948 of Examples-Advanced.material: Unrecognised command: {
Error at line 949 of Examples-Advanced.material: Unrecognised command: texture
Error at line 950 of Examples-Advanced.material: Unexpected terminating brace.
Error at line 952 of Examples-Advanced.material: Unexpected terminating brace.
Error at line 954 of Examples-Advanced.material: Unexpected terminating brace.
Error at line 955 of Examples-Advanced.material: Unexpected terminating brace.
Parsing script facial.material
Parsing script Glass.material
Parsing script hdr.material
Parsing script HeatVision.material
Error at line 92 of HeatVision.material: Invalid param_named_auto attribute - render_target_flipping
Error at line 170 of HeatVision.material: Invalid param_named_auto attribute - render_target_flipping
Parsing script Hurt.material
Parsing script Invert.material
Parsing script Laplace.material
Parsing script MotionBlur.material
Parsing script Ocean.material
Parsing script OffsetMapping.material
Parsing script Ogre.material
Parsing script OldMovie.material
Parsing script OldTV.material
Parsing script Posterize.material
Parsing script RZR-002.material
Parsing script SharpenEdges.material
Parsing script smoke.material
Parsing script Tiling.material
Parsing script fresnelenviron.material
Parsing script sample.fontdef
Parsing script Example-Water.particle
Parsing script Example.particle
Bad particle system attribute line: 'point_rendering true' in Examples/GreenyNimbus (tried renderer)
Traceback (most recent call last):
File "C:\Program Files\ActiveState Komodo 3.5\lib\support\dbgp\bin\pydbgp.py", line 221, in __main__
sys.exit( main(sys.argv) )
File "C:\Program Files\ActiveState Komodo 3.5\lib\support\dbgp\bin\pydbgp.py", line 201, in main
dbgp.client.runWithoutDebug(args, interactive, host, port, idekey, logLevel)
File "C:\Program Files\ActiveState Komodo 3.5\lib\support\dbgp\pythonlib\dbgp\client.py", line 3347, in runWithoutDebug
h_execfile(debug_args[0], debug_args, module=main)
File "C:\Program Files\ActiveState Komodo 3.5\lib\support\dbgp\pythonlib\dbgp\client.py", line 590, in __init__
execfile(file, globals, locals)
File "C:\Python24\pyogre\tutorials\beginner_1.py", line 72, in __main__
ta.go()
File "C:\Python24\pyogre\tutorials\SampleFramework.py", line 23, in go
if not self._setUp():
File "C:\Python24\pyogre\tutorials\SampleFramework.py", line 46, in _setUp
self._loadResources()
File "C:\Python24\pyogre\tutorials\SampleFramework.py", line 68, in _loadResources
ogre.ResourceGroupManager.getSingleton().initialiseAllResourceGroups()
File "C:\Python24\Lib\site-packages\pyogre\ogre.py", line 7266, in initialiseAllResourceGroups
return _ogre.ResourceGroupManager_initialiseAllResourceGroups(*args)
ExceptionPtr: ..\src\OgreBillboardParticleRenderer.cpp(222): ogre error 4: Invalid billboard_type 'perpendicular_common'

booger

11-07-2006 17:07:09

I installed swig but that was no help.

it looks like the error starts at " Examples.program." from what i can tell, it's a c++ file made python callable by swig. But whoever released it made had bad syntax. Any clues?

dermont

11-07-2006 18:02:42

What version of pyOgre are you using?. At a guess it looks like you may be using the resource files from Dagon (1.2.x) and running pyogre 1.0.6. See this thread:
http://www.ogre3d.org/phpBB2/viewtopic. ... ularcommon

Have you tried Istari's build(1.2.0):

- http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=1413

booger

12-07-2006 19:31:46

that works.

Now, however, when it tries to get the scene manager I get a type error. Specifically:

self.sceneManager = self.root.getSceneManager(ogre.ST_GENERIC)
TypeError: in method 'Root_getSceneManager', argument 2 of type 'Ogre::String const &'

I searched the boards but i can't do quoted seraches on Ogre::String const &. I was using the demos which used older (dagon) libraries.

Since it's a type error I must be using the wrong Ogre version (I figure). Does this mean i have to use an older version of ogre in order to run and work with the demos?

dermont

12-07-2006 20:16:57

Sorry my mistake. I assumed that that Istari's build included the media, it doesn't. As you suggest your using pyOgre1.2.0 dll's / Ogre1.2.x's SDK media and pyOgre1.0.6.0 demos. Two choices really:


1) pyOgre1.0.6.0:
http://developer.berlios.de/project/sho ... up_id=3464

  1. a) installer : pyogre-1.0.6.0.py.exe
    b) media : demo_media.zip
    c) vcredist_x86.exe (only use if you encounter missing dll's problems)
    [/list:u]
    2) pyOgre1.2.0:

    1. a) installer (manual as you'e already done) : http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=1413

      b) Demos:
      You'll need the demos from the dev-1.2.0/demos branch:
      svn checkout http://svn.berlios.de/svnroot/repos/pyo ... /dev-1.2.0
      ( broswe online http://svn.berlios.de/wsvn/pyogre/branc ... rev=0&sc=0)

      c) Media (assuming your using ogre1.2.x's SDK media):
      i) use your current ogre1.2.x's SDK media
      ii) To run the cegui demos you'll need to:

      1. - download (1b)
        - rename ogre1.2.x's SDK current media directory ..\Media\gui to ..\Media\gui2
        - From demo_media.zip copy across the media\gui dir to ogre's current media directory
        [/list:u]
        [/list:u]
        (1) would be easiest, if you encounter any problems let us know.

booger

13-07-2006 03:56:31

took route 1, because I'm using pyogre 1.06 anyway. Uninstalled everything.

Installed pyogre-1.0.6.0.py24.exe

unzipped demo_media.zip and replaced contents in python24/pyogre/media/ directory

ran beginner1.py

Recieved application configuration error.

Then installed vcredist_x86

Re-ran beginner1.py

Got past DirectX initalization ... and then stopped:

font BlueHighway.ttf not found

Searched my media directory... there's a file called BlueHigh.ttf. I renamed it (the file, not the internal document) and that didn't work.

I think I'm almost there but... :)

EDIT -- after that i installed the Ogre 2.0.6 demo (windows), copied the media directory and replaced what i had. THen I got a particle error, similar to what i had before. So i guess the installable demo was built off an older version.

The demo media on the server doesn't even have a BlueHighway.ttf file in it's font directory, interstingly enough.

The demo media folder i used above was from http://www.ogre3d.org/index.php?option= ... t=category

dermont

13-07-2006 04:26:07

For 1.0.6 there shouldn't be a file called BlueHigh.ttf. Sounds like your media directory has remnants of 1.2.0. Try deleting the media directory and unzipping demo_media.zip again.

booger

14-07-2006 00:05:24

I uninstalled everything, d/led the demo_media.zip, and pyogre 1.0.6 for a good measure. I then installed pyogre 1.0.6 and unzipped the demo_media and pasted the media contents over the python24/pyogre/media directory. However the same error occurs (can't find BlueHighway.ttf).

I don't know if it matters but this occurs with both the tutorials and demos.

dermont

14-07-2006 07:54:33

Did you delete the contents of C:\Python24\pyogre\Media prior to installing the media zip file?.

a) Check C:\Python24\pyogre\Media\overlays for Compositor.overlay
b) Check Ogre.cfg for the error message is it something like this:

13:57:30: Parsing script Compositor.overlay
13:57:30: An exception has been thrown!
-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: TextAreaOverlayElement::setFontName
Description: Could not find font BlueHighway.
File: ..\src\OgreTextAreaOverlayElement.cpp
Line: 337


if (a) exists or an error similar to (b) is encountered it suggests that you didn't.

If you have some overriding reason for not clearing out the current media dir you could either remove Compositor.overlay or edit it and replace occurances of "font_name BlueHighway" with "font_name TrebuchetMSBold". Note mixing the 1.0.6 and 1.2.0 media dirs will only cause problems later on.

Otherwise post your Ogre log file.

booger

14-07-2006 18:20:42

hmm it looks like i made the false assumption that pasting over the media directory would replace everything. I will delete everything (after uninstalling it) related to pyogre, ensure there's no Compositor.overlay and try it again.

I have no overriding reason to use 1.2.0 content. I just want to use pyogre with Ogre. I'll use C++ if i have to (and it might be better in someways).

booger

14-07-2006 20:16:36

it works.

The problem was that i needed to delete the directorys, not paste over them.

Thanks for your help.

dermont

14-07-2006 20:34:45

You're welcome. If you can use both pyOgre and C++. pyOgre is great for prototyping and you should be able to quickly convert your pyOgre code to C++.