Search found 6 matches

by LE_Shatai
Wed Jul 11, 2007 8:09 am
Forum: Beginners Help
Topic: Mouse event
Replies: 7
Views: 483

You are using the same name twice. Rename the secand added box to box2, or something like this. scene::ISceneNode *box = smgr->addCubeSceneNode(1,0,-1,core::vector3df(10,10,10),core::vector3df(0,0,0),core::vector3df(100,10,100)); [...] scene::ISceneNode *box = smgr->addCubeSceneNode(1,0,-1,core::vec...
by LE_Shatai
Tue Jul 10, 2007 12:29 pm
Forum: Beginners Help
Topic: Mouse event
Replies: 7
Views: 483

You also have typos in your eventhandler. Try this: switch (event->MouseInput.Event) { case EMIE_LMOUSE_LEFT_UP: cout << "LCLICKED: box clicked\n"; return true; break; case EMIE_RMOUSE_LEFT_UP: cout << "RCLICKED: box clicked\n"; return true; break; } flush(cout); return false;
by LE_Shatai
Tue Jul 10, 2007 12:10 pm
Forum: Beginners Help
Topic: Mouse event
Replies: 7
Views: 483

Hi

I am not sure, but I guess the problem is
the

Code: Select all

   selector->drop(); 
.
Does it work without this line?
by LE_Shatai
Fri Jul 06, 2007 9:35 am
Forum: Beginners Help
Topic: Textures
Replies: 4
Views: 551

I exported just a plain cube from blender into 3ds format, without any textures.
(I also tried obj-format, but the same result)
Ok, i did not make any texture coords. and I guess this is the problem.
I need to have a look in blender how to create those coords.
Thanks so far. :)
by LE_Shatai
Fri Jul 06, 2007 8:09 am
Forum: Beginners Help
Topic: Textures
Replies: 4
Views: 551

Ok, thanks for the fast reply. So I don't understand why my texture is not drwan correctly, or I can't see it. I see a brown cube instead of a black one, so the texture is apllied. But what I expected to see are the stones from the picture. This is the code: ISceneNode *node = scenemgr->addAnimatedM...
by LE_Shatai
Fri Jul 06, 2007 7:09 am
Forum: Beginners Help
Topic: Textures
Replies: 4
Views: 551

Textures

Hi @all. I'm new to irrLicht, so I have some questions on it. When loading an ordinary box form a mesh file and assigning a texture, how has the texture look a like. I mean has the texture to be an U/V Map with the unwrapped cube, or is a plain picture enough. How do I know in which size to scale th...