Thrakbad
26-02-2010 01:17:25
I'm trying to load a convex mesh, which I previously generated using flour. I'm using version 0.3.2 since I was unable to get the 0.4 GIT version to compile.
So far I have converted multiple meshes and some of them work, but some of them cause a heap corruption during loading. However flour test says they all are okay. Also I have converted the same models, that crash now, before and it worked back then. Any recommendations?
dgoldaraz
20-04-2010 11:00:49
Hi i'm having the same problem as you.
I have Flour 4.0 (I recently upgrade Ogre to 1.7 and I think that i can't use other versions)
I convert my model to triangles and everything goes right,but when i load the .nxs file
NxOgre::ResourceSystem::getSingleton()->openArchive("Nx", "file:C:\\Work\\VisualDany\\VisualDany\\Nx");
//Lab Node
NxOgre::Mesh* triangle = NxOgre::MeshManager::getSingleton()->load("Nx:Lab4.nxs");
I have a HEAP CORRUPTED DETECTED after Normal block...
CRT detected that the apliccation wrote to memory after end of heap buffer
If i ignore the error apears my model but without physics (not collision, etc..)
The debug point to this metod in class NxOgreSharedStringStream.cpp
SharedStringStream::~SharedStringStream(void)
{
if (_References)
{
--(*_References);
if ((*_References) == 0)
{
NxOgre_Unallocate(_References);
NxOgre_Unallocate(_Buffer->_String);<-------------------Here is the debug point
NxOgre_Unallocate(_Buffer);
}
}
}
Can anyone help me??
I'm doing something wrong?
I use cupcake and the file load correctly
Thanks!
Xakiru
14-05-2010 09:44:55
same problem here , even if i use the monkey.nxs that come with the zipped flour 0.4, i tryed an nxs that i found named test.nxs(posted by a member here in the forum around) ,it worked just fine that mean i don't have problem in my Ogre1.7 , or nxOgre , but it's coming from the .nxs file , does anybody have a way to get nxs files from Ogre1.7's mesh or from 3DS . i'm in big confusion , and i'm thinking about changing to an other engine if there are no solution for making nxs files... ?
caifie
14-05-2010 11:34:21
same problem here , even if i use the monkey.nxs that come with the zipped flour 0.4, i tryed an nxs that i found named test.nxs(posted by a member here in the forum around) ,it worked just fine that mean i don't have problem in my Ogre1.7 , or nxOgre , but it's coming from the .nxs file , does anybody have a way to get nxs files from Ogre1.7's mesh or from 3DS . i'm in big confusion , and i'm thinking about changing to an other engine if there are no solution for making nxs files... ?
check this post, the last will tell you how to
http://www.ogre3d.org/addonforums/viewtopic.php?f=6&t=12564
betajaen
14-05-2010 11:41:15
You guys should upgrade to Detritus with Critter, it's far more stable than Bloody Mess, and you shouldn't get stupid crashes like that any more.
Xakiru
14-05-2010 16:22:11
It's very helpful in my case .. i'm going to convert mesh to xmlOgre mesh , then use the rb converterMesh to flower , then use the flour0.4 to get the .nxs files , a long chain to get the .nxs but what i hope for now is getting the successfull results. well how about moving to Detritus with Critter, is there big diferance ?
i thought that BloodyMess was the stable release after the Bleeding isn't it ?
Status Quo
The most recent copies of NxOgre will be nightly Git versions but as they are untested and usually released in micro-updates. The stable version of NxOgre is called BloodyMess (1.5.5+) which is released in bi-monthly updates. An older but still used version of NxOgre is called Bleeding (1.0.22+) but the API is very different from BloodyMess and Git Versions.
betajaen
14-05-2010 17:06:37
Tis.
But Detritus has had so much work on it now, that Bloody Mess is ancient compared to it.
Also; there is a Blender flower exporter if that helps, and the Flower schema is very open and easy to make an exporter for.
Xakiru
17-05-2010 09:39:23
Thanks Betajean, it works like a charm.
here is what i've done :
i'm using [bloodymess1.5.5 , Ogre1.7 ]
From studioMax saving to -> taru.mesh / taru. material
Converted the mesh using OgreXMLConverter_d.exe to get -> taru.mesh.xml
i used ogrexmltoflower.rb to get-> taru.mesh.xml.flower
used flour to get -> test.nxs
In my app i use the code :
NxOgre::ResourceSystem::getSingleton()->openArchive("resources", "file:C:\\OgreSDK\\media");
NxOgre::Mesh* triangleMesh = NxOgre::MeshManager::getSingleton()->load("resources:taru.nxs");
NxOgre::Shape* trienglee=new NxOgre::TriangleGeometry(triangleMesh);
NxOgre::RigidBodyDescription TaruDescription;
TaruDescription.mMass =10;
myKeni= mRenderSystem->createBody(trienglee ,NxOgre::Vec3(0,1000,0),"taru.mesh",TaruDescription);
seems it's working fine . still testing ...
Edit: i'm thinking about warping my work to Detritus , but i dunno if i can find enough documentation about it , i'm afraid i don't find information about using it ...