Search found 140 matches

by Iyad
Sun Apr 03, 2011 8:32 pm
Forum: Beginners Help
Topic: Packing up ressources
Replies: 6
Views: 387

Its ok, I fixed this up... I recompiled irrlicht and added cheshirekow code in filesystem, the problem was that I was calling Device->getFileSystem()->addFileArchive(f); Instead of Device->getFileSystem()->addFileArchive(f, true, true, true, ""); It was an overloaded function and without a...
by Iyad
Sat Apr 02, 2011 8:29 pm
Forum: Beginners Help
Topic: Packing up ressources
Replies: 6
Views: 387

I tried the file to header converter, and its seems ok. I got my archive file in a header, but I have a problem when I try to load it : IReadFile *f = createEmbeddedFile(Device->getFileSystem(), "test.zip"); Device->getFileSystem()->addFileArchive(f); Errors (in irrstring.h) : ..\include\i...
by Iyad
Wed Mar 30, 2011 3:54 am
Forum: Beginners Help
Topic: Proper way to change scenes within game
Replies: 10
Views: 1254

Dont drop the device only for changing the scene! Only try to program a efficient way to manage your scene meshes in both views. I would suggest that you save all elements from the world view when changing to battle view, then reloaded them back when the battle is ended. Or you can simply change the...
by Iyad
Mon Mar 28, 2011 3:35 pm
Forum: Beginners Help
Topic: Packing up ressources
Replies: 6
Views: 387

Unless you have a very minimalistic game I wouldn't integrate any assets in an executable Irrlicht is not only for games you know, I need my project in only 1 exe, ready to be distributed. For other purposes we have the binary to header converter somewhere in the Irrlicht repository. bitplane added...
by Iyad
Mon Mar 28, 2011 3:00 pm
Forum: Beginners Help
Topic: Packing up ressources
Replies: 6
Views: 387

Packing up ressources

Hi everyone,
I tried to search on the forum but I didnt find a good solution (using code::blocks) about how to integrate my media files in my exe and load them using irrlicht.
Does anyone have a working code for this?
Thanks for your suggestions.
by Iyad
Sun Mar 13, 2011 5:35 am
Forum: Advanced Help
Topic: Adding a bump map to an animated scene node?
Replies: 9
Views: 2343

I mean, you should calculate the tangent mesh for every frame, then apply the normal map. This would not be efficient, check out this, it is using shaders : http://irrlicht.sourceforge.net/phpBB2/ ... mated+mesh
by Iyad
Sun Mar 13, 2011 2:24 am
Forum: Advanced Help
Topic: Adding a bump map to an animated scene node?
Replies: 9
Views: 2343

You need to use tangents for adding normal maps to animated mesh, check out the forum's code snippet section, i know that someone already wrote a shader for this.
by Iyad
Sun Feb 13, 2011 1:39 am
Forum: Beginners Help
Topic: templates
Replies: 1
Views: 171

typedef pow<u32> powU32;
by Iyad
Thu Jan 20, 2011 12:55 am
Forum: Beginners Help
Topic: irr::core::list
Replies: 1
Views: 195

There is no popback function like in stl::vector or in irrlicht array. To delete the last element of the list, just use the iterator and get the last element, then delete it. list<T*>::Iterator i = MyList.end(); delete (*i); MyList.erase(i); Delete simply remove the pointed value from the iterator, ...
by Iyad
Thu Jan 20, 2011 12:31 am
Forum: Beginners Help
Topic: linker error
Replies: 5
Views: 292

Maybe its occuring due to circular dependency, be sure that your files does not include themselfs more than once, use include guards or rework on your code. Sometimes, if 2 classes or more are interdependant, you can try to use a forward declaration, then redefine your declaration in another file.
by Iyad
Tue Jan 11, 2011 4:03 am
Forum: Beginners Help
Topic: build in collision::Collision laggs behind
Replies: 2
Views: 269

No one knows how do you detect collision in your game. If you could give some specification about it, we could help. I used Irrlichts collision animator and I didnt had this problem, neither with any physic engine i tryed. I bet your problem is in the character control, the force applied from your c...
by Iyad
Tue Jan 11, 2011 3:43 am
Forum: Off-topic
Topic: Physics engine and Irrlicht
Replies: 5
Views: 3338

You can use any physic library, i personaly use bullet because its open source + very fast and good for games. A wrapper is a kind of package which combine the different libraries, making it more easy to use them. There are many wrappers on this forum (newton, bullet, PhysX, ODE,...), search for the...
by Iyad
Sun Jan 09, 2011 7:31 pm
Forum: Beginners Help
Topic: Bounding Box of ISceneNode
Replies: 3
Views: 235

I think you should use :

Code: Select all

virtual const core::aabbox3d< f32 >  getTransformedBoundingBox () const  
Get the axis aligned, transformed and animated absolute bounding box of this node.
by Iyad
Wed Jan 05, 2011 4:56 pm
Forum: Code Snippets
Topic: SoA - Source code [stopped]
Replies: 9
Views: 4953

I dont know why you talking about this guys... I only wanted to post some code... --------OFF TOPIC------------- shooting at things and people gives you an entirely different feeling I'd say. Yes your right...Still, violent video games affect the brain. I dont need to argue on this, there are alread...
by Iyad
Wed Jan 05, 2011 2:23 am
Forum: Code Snippets
Topic: SoA - Source code [stopped]
Replies: 9
Views: 4953

(POST REMOVED BY IYAD)