[SOLVED] parseScene Scaling and Disappearance Problem

oddrose

13-07-2007 16:41:32

Hi there,

I have all my "world objects" attached to a node called "worldNode".

When I send worldNode through parseScene the different objects collisionbodies all are placed at origo. The objects (nodes) have the right positions, just not the collision bodies.

It's either the position that is wrong or the collision bodies aren't there at all. As it seems now, only 1 of the bodies actually exist.

Need help,

pra

13-07-2007 17:01:05

do you have OgreNewt from CVS?

if yes, you have to attach the node to the body (that's right, there should be only one) and then position it, and not the node.

this is the reason I was not sure if i should submit this patch or not... I think i asked about this, too...
I thought this would be the best solution, since you can just position the body, and someone might have multiple nodes he want to be able to re-posotion afterwards...

oddrose

13-07-2007 17:19:20

yeah, I'd do that if I didn't use parseScene...

because that uses a parent node, and wheter I move that or not doesn't change a thing (relatively speaking)


I discovered now that this occurs only for certain meshes...It's really strange...I'll have to check out more...

and btw, the collision bodies aren't badly positioned...they don't exist

walaber

13-07-2007 17:37:46

let me know what you find!

oddrose

13-07-2007 17:40:52

I will...

and this is what I've come up with:

(I am using the latest OgreNewt...think it's mid-June something?)

It seems to work with most meshes, except for a mesh that is a box...and when you put a box on the parent node...the entities created afterwards don't get any collision bodies...

seems really strange....

and btw, the collision bodies don't scale down either...?

oddrose

13-07-2007 18:20:28

well...don't know how this happened...

but the mesh file seemed to be the issue...'cause a new box-like mesh file got it working...

still can't get scaling to work though...

Is the parseScene suppposed to work with scaled childNodes?

walaber

13-07-2007 18:29:40

yes, it should, if you have the latest version of OgreNewt.

oddrose

13-07-2007 18:54:51

I use the one that is downloadable from your website...source files from 15th of June


EDIT: Found on CVS, everything works, your the man:)

walaber

13-07-2007 21:18:22

hmmm.. maybe I need to update the binary on my website again.