Search found 8 matches

by AMAZINGAHMED
Sun May 15, 2005 1:08 pm
Forum: Advanced Help
Topic: Mouse picking
Replies: 11
Views: 1219

it works just fine with me and i get no errors.
maybe you're using an eventhandler that forces something wrong.
check your code.
by AMAZINGAHMED
Sun May 15, 2005 10:45 am
Forum: Advanced Help
Topic: Mouse picking
Replies: 11
Views: 1219

note that for every selectable node, you must assign an id
i.e. id of health=1, id of ammo=2... etc.

or at least for every group, assign an id.

eg:
node_health = smgr->addAnimatedMeshSceneNode(mesh_health,NULL,0);
node_ammo = smgr->addAnimatedMeshSceneNode(mesh_ammo,NULL,1);
...etc
by AMAZINGAHMED
Sun May 15, 2005 8:29 am
Forum: Advanced Help
Topic: Mouse picking
Replies: 11
Views: 1219

if you want to select a complete node by the mouse then here's the solution: first of all when you add the scene nodes, give each node an id (other than -1) and give your camera also an id. use this code to detect collision: void CheckCollision(int nodetID) { position2d<s32> cursor_position=device->...
by AMAZINGAHMED
Thu May 12, 2005 3:56 pm
Forum: Beginners Help
Topic: 16 bit vs 32 bit ??
Replies: 0
Views: 150

16 bit vs 32 bit ??

hi i have a little problem. when i initialize my device lke this: device=createDevice(EDT_DIRECTX8,dimension2d<s32>(resolutionX,resolutionY),16,true,true,true,&receiver); i get darker colors than normal but the textures become smooth. and when i do this: device=createDevice(EDT_DIRECTX8,dimensio...
by AMAZINGAHMED
Tue May 10, 2005 5:22 am
Forum: Beginners Help
Topic: Color without texture?
Replies: 2
Views: 222

material.DiffuseColor=SColor(255,0,255,0); //green color
i thought this should do but it acted like you said.
But when i changed my device to OPENGL instead of DIRECTX9 it worked.
by AMAZINGAHMED
Mon May 09, 2005 4:13 pm
Forum: Beginners Help
Topic: disable window close button
Replies: 3
Views: 239

thnx very much :wink:
and about disabling dragging i think i should check for the position of the window inside the game loop and if it is changed i should set its position back to the first position. :?:
by AMAZINGAHMED
Mon May 09, 2005 2:40 pm
Forum: Beginners Help
Topic: disable window close button
Replies: 3
Views: 239

disable window close button

Hi there,
can anyone help me? i want to disable the close button of the gui window, and i also want the window to stay in a fixed position (disable moving)
thanks
by AMAZINGAHMED
Thu May 05, 2005 7:36 am
Forum: Advanced Help
Topic: faceted reflection
Replies: 2
Views: 336

faceted reflection

hi there i have a little problem that when i use the reflection material, the mesh becomes faceted. here is my code: material_stainless.Texture1 = driver->getTexture("../../media/lake3.jpg"); material_stainless.Texture2 = driver->getTexture("../../media/galvplat.jpg"); material_s...