why is my converted .nxs file is zero kb size

dosip2php

28-11-2010 14:08:00

Hello,
i used flour 0.4.7 and converted flower file into nxs,but it get a 0 kb size file
what does it result from?

the size of flower file is 118kb
is any problem with flower file?

later i make a flower file like this

# Cube
type convex
vertices -100.0,100.0,-100.0 #0
vertices 100.0,100.0,-100.0 #1
vertices 100.0,-100.0,-100.0 #2
vertices -100.0,-100.0,-100.0 #3
vertices -100.0,100.0,100.0 #4
vertices 100.0,100.0,100.0 #5
vertices 100.0,-100.0,100.0 #6
vertices -100.0,-100.0,100.0 #7

indexes 0,2,3 0,1,2, 1,6,2, 1,5,6, 4,6,5, 4,7,6, 0,7,4, 0,3,7, 0,5,1, 0,4,5, 2,7,3, 2,6,7



converted by flour and nxs file still be 0 kb
can anyone tell me what is the meaning and solution of it ?

Thanks!

betajaen

28-11-2010 14:39:50

There is a missing comma after the first 3 on the indexes line

dosip2php

29-11-2010 09:10:18

There is a missing comma after the first 3 on the indexes line

thanks betajaen!
the cube.nxs is working

but my mesh file still unavailable
it convert to zero kb nxs file all the same

where does the error come from?
and what can i do about that?

when i convert ogrehead.xml to ogrehead.flower with ruby script,there is a warning
============================================
[Warning] Triangle limit is more than 255.

what does it means?

thanks a lot!

betajaen

29-11-2010 10:12:34

Convex meshes can only have upto 255 triangles, the Ogre head mesh has considerably more than that. I should point out that the OgreHead isn't a convex shape, it's concave(ish).

dosip2php

29-11-2010 12:16:24

so...cant i convert convex morethan 255 triangles?

if not,can i convert triangle shape more than 255 triangles?

betajaen

29-11-2010 12:28:52

Yes.

Please read up on the intricacies of the meshes in the PhysX documentation. It explains their limits and what shapes you can use them in.

dosip2php

29-11-2010 12:49:32

Yes.

Please read up on the intricacies of the meshes in the PhysX documentation. It explains their limits and what shapes you can use them in.


thank you very much! :D

pauline

16-04-2012 16:05:02

Hello,
I would like to have a convex nxs file with more than 255 triangle, it's possible ?
If not, how do I obtain a dynamic body with a complex mesh ? For example an airplane ?

Indeed I have an airplane with a lot of vertex in 3dsmax, I want to use this mesh in Ogre and NxOgre like dynamic body (Subject to gravity, add force ...)
I try to convert with Flour but it's too big.
How do I do ?

Thanks for your answer

betajaen

16-04-2012 21:44:44

Convex shapes have a hard limit. They won't work over that amount.

pauline

17-04-2012 14:50:53

The limit of 255 triangle is for graphical mesh or physical mesh ?
I have a teapot in 3dsmax with 530 vertex for graphical mesh and 48 vertex for physical mesh

I export physical mesh in nxb file with tool MassFXRigidBody, after I use flour to convert in nxs file but the size is 0 octet
It's normal ?

If I export in .mesh and I use OgreXmlConverter and OgrexmltoFlower and flour, it's the same result. The size is 0.

betajaen

18-04-2012 22:34:05

Physical mesh.

nxb is a collada physx specific fileformat, that NxOgre doesn't support. You can export directly to nxs, or indirectly through a flower fileformat, then into flour to a nxs. Essentially, your end target filename is a 'nxs'.

However; You need to look up what a convex mesh actually is, a teapot isn't a convex shape.

pauline

03-05-2012 15:37:33

Ok thanks for your answer.

So is it possible to convert a not convex shape into a dynamic body for nxogre ?