Search found 52 matches

by hzsyber
Tue Feb 24, 2009 2:10 pm
Forum: Project Announcements
Topic: IrrPhysx 0.2 - Nvidia Physx 2.8.1 wrapper
Replies: 425
Views: 116416

hi,jp i have a question(problem?) i try example of cloth,i set device is d3d9, load texture can't show flag. look img 1. log say: Could not get lower surface level for mip map generation i change to default opengl, texture is good look img 2. why? my display card is 8600m img1: http://www.reqi.com/d...
by hzsyber
Tue Jan 06, 2009 3:44 pm
Forum: Beginners Help
Topic: i have a new question about xmlreaderutf16!
Replies: 0
Views: 282

i have a new question about xmlreaderutf16!

i will read a xml file,file encode is unicode 16le. i compile have error: 1>main.cpp 1>e:\code\project\xmltext\main.cpp(33) : error C2664: 'const irr::io::char16 *irr::io::IIrrXMLReader<char_type,super_class>::getAttributeValue(int) const' : cannot convert parameter 1 from 'const char [8]' to 'int' ...
by hzsyber
Tue Jan 06, 2009 4:42 am
Forum: Beginners Help
Topic: one question about position.
Replies: 12
Views: 973

maybe model design no position on world origin. i want know model and world origin length. someone can try my model. tell me how to know? my code: nodes[k] = smgr->addAnimatedMeshSceneNode(smgr->getMesh(modelfile.c_str())); // nodes[k]->setScale(StrToV3df(scale)); nodes[k]->setMaterialTexture(0, dri...
by hzsyber
Sun Jan 04, 2009 7:46 am
Forum: Beginners Help
Topic: one question about position.
Replies: 12
Views: 973

ObjNodes->getAbsolutePosition();

reutrn Position always (0,0,0).
not my want.
by hzsyber
Thu Jan 01, 2009 8:42 am
Forum: Beginners Help
Topic: Collision question
Replies: 1
Views: 364

Collision question

I load some meshs, one like a stick, other like ball.

i want take a stick to touch balls.

question:

how can i know which one ball is touch?

Code: Select all

if (smgr->getSceneCollisionManager()->getCollisionPoint(line, meta, intersection, tri)
i have a collision.
but i don't know stick touch ball is.....
by hzsyber
Wed Dec 31, 2008 3:55 pm
Forum: Beginners Help
Topic: one question about position.
Replies: 12
Views: 973

thanks nathanf534!

getAbsolutePosition is self origin or world origin?

and,i load a node, getAbsolutePosition and getPosition return value is equally.

how to i get a node position return from world origin?

because i load a node default position no in world origin(0,0,0).

thanks.
by hzsyber
Wed Dec 31, 2008 1:43 pm
Forum: Beginners Help
Topic: one question about position.
Replies: 12
Views: 973

one question about position.

getAbsolutePosition() and getPosition() return values difference.

thanks!
by hzsyber
Mon Dec 29, 2008 9:01 am
Forum: Beginners Help
Topic: gui checkbox problem
Replies: 4
Views: 410

Ion Dune wrote:Presuming that you know its a check box:

Code: Select all

((IGUICheckBox*)root->getElementFromId(postdb->CS32List[i], true)->)setChecked(...)
use IGUIElement::getType () to be certain.
yes!

thanks you!
by hzsyber
Mon Dec 29, 2008 7:38 am
Forum: Beginners Help
Topic: gui checkbox problem
Replies: 4
Views: 410

yes,i found irr API doc

root->getElementFromId(postdb->CS32List, true)->
no setChecked(bool) function.this function is under class IGUICheckBox

i no found function return is IGUICheckBox,except addCheckBox() :(.
by hzsyber
Mon Dec 29, 2008 6:09 am
Forum: Beginners Help
Topic: gui checkbox problem
Replies: 4
Views: 410

gui checkbox problem

i want reset a form, like web form's reset. code: void UIControl::ResetLoginForm(PostData* postdb) //Clear All EditBox & CheckBox values { IGUIElement* root = guienv->getRootGUIElement(); for (int i = 0; i < postdb->CS32Lenth; i++) if (root->getElementFromId(postdb->CS32List[i],true)->getType() ...
by hzsyber
Wed Dec 10, 2008 4:21 pm
Forum: Beginners Help
Topic: addButton problem.
Replies: 6
Views: 294

you should return false at the end of your event receiver if you haven't handled the event, that way it then gets passed onto things like cameras and the gui, otherwise they don't get it. So if you handle the event and don't want the rest of irrlicht to get it return true, otherwise return false. o...
by hzsyber
Wed Dec 10, 2008 3:20 pm
Forum: Beginners Help
Topic: addButton problem.
Replies: 6
Views: 294

yes,i sure i have a IEventReceiver in my code. when i click the button, no everything button event. only mouse event. And could we see your event receiver? of course! bool UIControl::OnEvent(const SEvent& event) { if (event.EventType == EET_KEY_INPUT_EVENT && event.KeyInput.Key == KEY_E...
by hzsyber
Wed Dec 10, 2008 1:32 pm
Forum: Beginners Help
Topic: addButton problem.
Replies: 6
Views: 294

yes,i sure i have a IEventReceiver in my code.

when i click the button, no everything button event.

only mouse event.
by hzsyber
Wed Dec 10, 2008 12:40 pm
Forum: Beginners Help
Topic: addButton problem.
Replies: 6
Views: 294

addButton problem.

i use guienv->addButton() create a new button. i can see but can't click it. why? if (stringw("Button") == xml->getNodeName()) { x = xml->getAttributeValueAsInt(L"x"); y = xml->getAttributeValueAsInt(L"y"); w = xml->getAttributeValueAsInt(L"w"); h = xml->getAt...
by hzsyber
Wed Nov 26, 2008 2:06 pm
Forum: Beginners Help
Topic: how to rotation a line to another line?
Replies: 2
Views: 343

why nobody answer me?