scale doesn't works

anjay

05-12-2005 21:16:37

I'm new to PyOgre.
I want to scale my SceneNode, it will not work if I write: node.scaleBy(1, 1, 1) or node.scale = 1, 1, 1
what is wrong?

another question: is there any API for PyOgre?

thank you in advance,
anjay

totalknowledge

05-12-2005 21:54:25

If that is the exact code you are using you are scaling by one which does nothing.

Try scaling by:

node.scale = 0.5, 1, 2

or

node.scaleBy(0.5, 1, 2)

anjay

06-12-2005 15:53:27

no, I mean SceneNode member scale or method scaleBy cause an error and exception.. other transformation method work pretty good, but not scaleBy. what could be the problem?

Srekel

06-12-2005 16:11:05

Check http://www.ogre3d.org/phpBB2addons/view ... ight=scale (although it looks right).

Try this too:

sceneNode.scale = ogre.Vector3(2,3,4)

viblo2

07-12-2005 09:29:05

You can build some PyOgre documentation by yourself, see this thread for details:
http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=40

anjay

07-12-2005 17:34:47

thank you viblo2!

Srekel, sceneNode.scale = ogre.Vector3(2,3,4) works good, thank you too!
:)

Andzej