Ambiera ForumDiscussions, Help and Support. |
|
| [ 1 2 ] Page 2 of 2 |
|
|||||
|
Use the c_str method: irrstring.cstr() |
||||
|
You should get used to looking stuff up in the headers or documentation. If you don't you'll spend a lot of time begging for people to answer your questions... You can get a character array [const c8*] from a stringc with c_str(). Travis |
||||
|
Hello, can any body help me? My program crashes everytime I run this program. Heres the source code. smgr->loadScene("media/room1.irr");thats the part where i try to get the mesh out of the file, and put collision response on it. I get a debugging error saying "An Access violation(Segmentation Fault) raised in your program", at the line: node= smgr->addOctTreeSceneNode(level->getMesh(0)); can anybody help me out please?thanks |
||||
|
[quote=Kennypu (Guest)]Hello, can any body help me? My program crashes everytime I run this program. Heres the source code. smgr->loadScene("media/room1.irr");thats the part where i try to get the mesh out of the file, and put collision response on it. I get a debugging error saying "An Access violation(Segmentation Fault) raised in your program", at the line: node= smgr->addOctTreeSceneNode(level->getMesh(0)); can anybody help me out please?thanks [/quote] Here:
You are attempting to cast a scene node to a mesh, which does not work. 'level' ends up equalling 0, which causes the seg fault. You need to use the getMesh function (remember also it returns a ptr to a IMesh, not an IAnimatedMesh.) |
||||
|
Hi ! (sorry but, I writh badly the english) So, with the new version, I would use IrrEdit. I try all method on this topic, but I doesn't arriv.... Nobody have a small soft & code where we can use .irr with cameraFPS & collision ? Thank for your help |
||||
|
Hey I tell you what I did for C# (using irrlicht .net cp) I made the name of the nodes that I wanted to be collidable with be formed like this: "C_nameofmesh.extension" that way the C_ lets it know that it needs to be put in the metatriangleselector, and the name of the mesh is so you can load the file with GetMesh(). Then after you load the scene, you can use the RootSceneNode property and then get the children, and check their names. More work on the editing side, but it works until theres a better solution... (another option would be to parse the irr file... but i'm not that hardcore) Louki http://code.google.com/p/altworldporpg/ |
||||
|
Hello, Is there any way to apply the collision animator to the entire .irr scene? To use the function createCollisionResponseAnimator() I need a selector and to use createOctTreeTriangleSelector() I need a mesh. Is there any way around to get a selector without accesing single meshes? Why does not work option collisionResponse in irrEdit? How to get it working properly? Regards Adam |
||||
| [ 1 2 ] Page 2 of 2 |
|
|