Search found 79 matches

by Lideln
Tue Nov 14, 2006 11:14 am
Forum: Beginners Help
Topic: mysterious segfaults
Replies: 4
Views: 244

Hi, Always use DBC (Design By Contract, google if u never heard about it) when you code, or at least use assert ! Maybe the error comes from the engine... But maybe not ! So, each time you use a pointer, check it first with assert. Also, always initialize your variables, etc etc (for example pointer...
by Lideln
Sat Nov 11, 2006 10:11 pm
Forum: Beginners Help
Topic: first game
Replies: 22
Views: 1370

What Omar says is not false.

If you ONLY want to use 2D, then you should use a 2D engine, not a 3D one.

For example, SDL is not bad. But there should be other engines.
by Lideln
Sat Nov 11, 2006 9:55 pm
Forum: Beginners Help
Topic: first game
Replies: 22
Views: 1370

For rotation, in the thread I gave you the link, a person advises to use a mesh with only one face (one face = 2 triangles), and put the texture on that face. Then, just rotate the face thanks to the 3D mesh rotation functions, and you're done ! :) For the collision, it should not be that difficult....
by Lideln
Sat Nov 11, 2006 6:50 pm
Forum: Beginners Help
Topic: first game
Replies: 22
Views: 1370

Of course not :)

In the thread, the man posting those links said something like :
"it's for SDL, but you can use the idea to make it work for irrlicht"

:)
by Lideln
Sat Nov 11, 2006 5:38 pm
Forum: Beginners Help
Topic: first game
Replies: 22
Views: 1370

Hi, For maps, its a good idea to use tiles-based maps (less heavy than drawing a whole level in one single texture...) For collisions, here is a useful link found in the forums : http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=13029 For rotations, it has also been asked on the forums, so here...
by Lideln
Fri Nov 10, 2006 6:00 pm
Forum: Beginners Help
Topic: 2 questions :) (white color ? and... origin unwanted change)
Replies: 10
Views: 392

Hi Vitek ! Indeed, it was the problem ! Calling the "setTransform" function before drawing my origin or my bounding box solves the issue, it is now nice :D Thanks again ! :) Lideln PS : I have still the issue with the white colour. I have : const SColor COLOR_BOUNDING_BOX = SColor(255, 255...
by Lideln
Fri Nov 10, 2006 5:51 pm
Forum: Beginners Help
Topic: strange problem
Replies: 5
Views: 283

Hi,

Just in case... Are you sure this file exists, and have you set up the project paths properly ? (so it can get the file in the include dir)
by Lideln
Fri Nov 10, 2006 1:40 pm
Forum: Beginners Help
Topic: 2 questions :) (white color ? and... origin unwanted change)
Replies: 10
Views: 392

Thank you Travis for this answer !

I'll try to have a look at it when I'm back home this evening.
I'll keep you informed, thanks again :)

Lideln
by Lideln
Fri Nov 10, 2006 9:06 am
Forum: Beginners Help
Topic: 2 questions :) (white color ? and... origin unwanted change)
Replies: 10
Views: 392

Hi Vitek, Thanks for the answer : That's normal. Have a look at CFPSCounter::registerFrame(). But as I wrote : it takes 1 or 2 seconds before computing the first FPS (I think its quite normal... Smile ) I know this is normal. What I find abnormal are the 2 questions I asked, and thats what I was pra...
by Lideln
Fri Nov 10, 2006 8:08 am
Forum: Beginners Help
Topic: 2 questions :) (white color ? and... origin unwanted change)
Replies: 10
Views: 392

I know, I know, it has just been one day but...

up ! :D
by Lideln
Thu Nov 09, 2006 5:57 pm
Forum: Beginners Help
Topic: Need a bit of help in Normal Mapping.
Replies: 5
Views: 337

I was wondering if it was possible to do normal mapping in Irrlicht (but did not ask the question neither searched the forums atm because this is a detail for me in the time being). If you say that it doesnt work, then it should be the case... :cry: I would have loved to see a normal mapped mesh, to...
by Lideln
Thu Nov 09, 2006 2:54 pm
Forum: Beginners Help
Topic: breakable object
Replies: 5
Views: 607

Hi ! Im a noob, but waiting for another answer... Here is mine. A simple idea could be to model the object you wish to "explode". Then, seperate it in several objects (in your 3D modeler), export each object, and then in the game, lets say you have a function to draw your object. If the ob...
by Lideln
Thu Nov 09, 2006 2:47 pm
Forum: Beginners Help
Topic: Need a bit of help in Normal Mapping.
Replies: 5
Views: 337

Hi As-12 ! I'm really a noob in 3D, but what I can tell you is that heightmap has nothing in common with normal map (except that this is a "texture"). The heightmap is generally used to create outdoor levels (it creates holes or mountains, depending on the color of each pixel). The whiter,...
by Lideln
Thu Nov 09, 2006 8:22 am
Forum: Beginners Help
Topic: 2 questions :) (white color ? and... origin unwanted change)
Replies: 10
Views: 392

PS : I forgot two small things : 1) When I use the addMeshSceneNode or the addOctTreeSceneNode , the origin change happens (even with the Quadtree as I said earlier) 2) Something weird : I draw the FPS in the window titlebar (like in some tuts), but you know that when you launch the engine, it takes...
by Lideln
Thu Nov 09, 2006 8:18 am
Forum: Beginners Help
Topic: 2 questions :) (white color ? and... origin unwanted change)
Replies: 10
Views: 392

Hi Bitplane ! :) (I thank you to having told me about that QuadTree node :) But I have still quesitons about it, I'll tell you about that later if you do accept ) 1) For the color, I use : const SColor COLOR_AXIS_X = SColor(255, 255, 0, 0); const SColor COLOR_AXIS_Y = SColor(255, 0, 255, 0); const S...