Search found 8 matches

by irr::Dave
Thu Jul 24, 2014 3:47 pm
Forum: Beginners Help
Topic: How to access filesystem without device?
Replies: 2
Views: 652

Re: How to access filesystem without device?

Okay, I will create a NULL device then,
thank you
by irr::Dave
Thu Jul 24, 2014 12:26 pm
Forum: Beginners Help
Topic: How to access filesystem without device?
Replies: 2
Views: 652

How to access filesystem without device?

Hello,
is it possible to access the filesystem via Irrlicht without setting up a device?
This is what I have atm:
irr::video::E_DRIVER_TYPE driverType = irr::driverChoiceConsole();
if (driverType == irr::video::EDT_COUNT) return 1;
irr::IrrlichtDevice *device = irr::createDevice(driverType, irr ...
by irr::Dave
Fri Jul 18, 2014 6:41 pm
Forum: Beginners Help
Topic: How to use a custom mesh loader?
Replies: 6
Views: 1120

Re: How to use a custom mesh loader?

Right now I have exactly one meshLoader->drop() call, which is after adding him to the ScenerManager with .addExternalMeshLoader(meshLoader) and
together with the changes mentioned in my previous post it works well. But I actually tried that too, calling drop once, never or only at the end of my ...
by irr::Dave
Thu Jul 17, 2014 4:40 pm
Forum: Beginners Help
Topic: How to use a custom mesh loader?
Replies: 6
Views: 1120

Re: How to use a custom mesh loader?

Problem solved :D

I made my class variables pointing to heap memory:
class MyMeshLoader : public irr::scene::IMeshLoader {
private:
irr::scene::SAnimatedMesh *animatedMesh;
irr::scene::SMesh *mesh;
irr::scene::SMeshBuffer *meshBuffer;
irr::core::aabbox3d<irr::f32> *box;
irr::video::S3DVertex ...
by irr::Dave
Thu Jul 17, 2014 3:42 pm
Forum: Beginners Help
Topic: How to use a custom mesh loader?
Replies: 6
Views: 1120

Re: How to use a custom mesh loader?

Hi again,

Debugging says there was an access violation reading some memory location and points
to the 'delete this;' line:

bool drop() const {
// someone is doing bad reference counting.
_IRR_DEBUG_BREAK_IF(ReferenceCounter <= 0)

--ReferenceCounter;
if (!ReferenceCounter)
{
delete this ...
by irr::Dave
Wed Jul 16, 2014 7:10 pm
Forum: Beginners Help
Topic: IAnimatedSceneNode->remove() crash
Replies: 5
Views: 769

Re: IAnimatedSceneNode->remove() crash

I tried the following:

irr::scene::IAnimatedMeshSceneNode *node = smgr->addAnimatedMeshSceneNode(animatedMesh, NULL, -1,
irr::core::vector3df(0,0,0), irr::core::vector3df(0,0,0), irr::core::vector3df(1.0f,1.0f,1.0f));
//node->drop();
node->remove();

when I call remove on my node there is no ...
by irr::Dave
Wed Jul 16, 2014 6:25 pm
Forum: Beginners Help
Topic: IAnimatedSceneNode->remove() crash
Replies: 5
Views: 769

Re: IAnimatedSceneNode->remove() crash

Hi

Do you initialize MyHat with 0?
Or do you remove the Hat elsewhere (via another variable) and don't set the above MyHat variable to 0?

Regards
by irr::Dave
Wed Jul 16, 2014 5:20 pm
Forum: Beginners Help
Topic: How to use a custom mesh loader?
Replies: 6
Views: 1120

How to use a custom mesh loader?

Hello everyone,
a few days ago I started programming with the Irrlicht Engine. I did some tutorials and read on the forums and in the API...

What I want to do is a terrain with loading a heightmap-file and texturing it later.
Since I cannot ensure map-sizes of (2^n+1) I couldn't use the ...