Search found 16 matches

by mqrk
Mon Dec 24, 2007 7:50 am
Forum: Beginners Help
Topic: Only getting Grey models from MakeHuman
Replies: 11
Views: 899

Try it with a texture that is not a solid color. When it is selected, no lighting is calculated (as part of the tutorial), so you won't see any depth.

EDIT: I just tested this and was able to reproduce exactly the phenomenon you described.
by mqrk
Mon Dec 24, 2007 7:34 am
Forum: Beginners Help
Topic: Only getting Grey models from MakeHuman
Replies: 11
Views: 899

I just went through this myself. Try adding

Code: Select all

 node->setMaterialFlag(video::EMF_NORMALIZE_NORMALS, true); 
Make sure you apply the material before calling this.
by mqrk
Mon Dec 24, 2007 2:34 am
Forum: Beginners Help
Topic: Irritant question... but i realy wanna know
Replies: 5
Views: 401

@Master Absolutely! Just add water.
by mqrk
Mon Dec 24, 2007 2:32 am
Forum: Beginners Help
Topic: has no member...
Replies: 2
Views: 369

Which version of irrlicht are you using? It looks like that function was added in version 1.3
by mqrk
Mon Dec 24, 2007 2:13 am
Forum: Beginners Help
Topic: Distance from ground?
Replies: 5
Views: 711

what is "MAX_CONCEIVABLE_DISTANCE_FROM_GROUND"? That would be the length of the line you are using to check where the ground is. If the line is 10 units long, then you won't "find" the ground if you are further than 10 units away. Basically, you just want to replace that with a ...
by mqrk
Sun Dec 23, 2007 12:28 am
Forum: Beginners Help
Topic: Distance from ground?
Replies: 5
Views: 711

Here's an idea

I'm not familiar enough with the Irrlicht API to write the actual code, but hopefully you can get the idea from this pseudocode: //Create a line going straight down from the camera line.start = line.end = camera->getPosition(); line.end.y -= MAX_CONCEIVABLE_DISTANCE_FROM_GROUND; //See where it colli...
by mqrk
Sat Dec 22, 2007 11:25 am
Forum: Beginners Help
Topic: Keyboard input
Replies: 7
Views: 507

then make debuginput global (global variables are declared outside of any function)
by mqrk
Fri Dec 21, 2007 10:22 am
Forum: Beginners Help
Topic: Confused about the use of "Drop" in Collision tuto
Replies: 2
Views: 254

Confused about the use of "Drop" in Collision tuto

First the selector is initialized: scene::ITriangleSelector* selector = 0; if (q3node) { q3node->setPosition(core::vector3df(-1350,-130,-1400)); selector = smgr->createOctTreeTriangleSelector(q3levelmesh->getMesh(0), q3node, 128); q3node->setTriangleSelector(selector); } Then it is used to add colli...
by mqrk
Fri Dec 21, 2007 8:30 am
Forum: Beginners Help
Topic: Some C++ Class questions...
Replies: 32
Views: 2535

What is a singleton? Here is how it is outlined in Design Patterns by Gamma, Helm, Johnson, and Vlissides (the "Gang of Four"): class GameInfo { public: static GameInfo* Instance(); virtual void DoSomething(); //Public members here protected: GameInfo(); //Protected members here private: ...
by mqrk
Fri Dec 21, 2007 7:16 am
Forum: Beginners Help
Topic: help please, saying pointer is undeclared when it was!!??
Replies: 1
Views: 188

You can't declare a variable inside a code block and then use it outside of the block (it's out of scope). Think about it this way: What if the condition of the if statement is false? Declare the variable before you enter the if block.
by mqrk
Thu Dec 20, 2007 8:22 am
Forum: FAQs, Tutorials, Howtos, and external tool lists
Topic: bullet irrlicht demo
Replies: 33
Views: 33191

Get this put on the tutorial page!

This should be on the tutorial page because there are samples for other physics engines but I didn't see one for Bullet.
by mqrk
Thu Dec 20, 2007 4:30 am
Forum: Beginners Help
Topic: about fps camera
Replies: 13
Views: 897

I think this has already been covered but I just wanted to clarify that the up-vector is not handled by the fpscamera to suit your needs. I played around with it a bit and it looks like moving your mouse up rotates the camera in the original "up" direction (what would now be "left&quo...
by mqrk
Sat Dec 15, 2007 2:20 am
Forum: Beginners Help
Topic: question about level creation
Replies: 7
Views: 520

maybe you can add properties under the logic tab (f4) (in Blender) and export the data using a python script. I don't know if this is possible or not but I just thought I'd throw it out there.
by mqrk
Fri Dec 14, 2007 11:38 pm
Forum: Beginners Help
Topic: Some C++ Class questions...
Replies: 32
Views: 2535

Do a search for "Singelton pattern". Basically, you will probably only ever want one instance of your gamedata and can guarantee this programatically and not worry about when it is instantiated. Basically, you'll want a public static Instance() function and a private static pointer to the ...
by mqrk
Mon Dec 10, 2007 3:07 pm
Forum: Code Snippets
Topic: (C++) WoW style custom controls with camera and more
Replies: 36
Views: 27272

I got the error about MyEventHandler being an abstract class as well. I changed //EventReceiver.h virtual bool OnEvent(SEvent event) to virtual bool OnEvent(const SEvent& event) Which seemed to fix the problem. I also had to remove the line: //3rdPersonCam.cpp case 'e': driverType = video::EDT_S...