Search found 148 matches

by wsw1231
Sun Feb 06, 2011 9:43 am
Forum: Beginners Help
Topic: [SOLVED]Rotation about the center of a mesh
Replies: 5
Views: 740

[SOLVED]Rotation about the center of a mesh

How to set rotation of an object about its center or about one specific point?
by wsw1231
Sun Feb 06, 2011 7:16 am
Forum: Beginners Help
Topic: [SOLVED]arrowMesh question
Replies: 1
Views: 252

[SOLVED]arrowMesh question

Code: Select all

IAnimatedMesh *arrX = smgr->addArrowMesh("arrowX", SColor(255, 100, 0, 0), SColor(255, 100, 0, 0),4,8,1.0f,0.6f,0.05f,0.2f);
I use this code to create an arrow mesh.
Now, I would like to change its color, but I cannot find any API to do that.
What should I do?
by wsw1231
Sat Feb 05, 2011 4:30 pm
Forum: Beginners Help
Topic: Translation and rotation
Replies: 39
Views: 4601

Now I can do this http://img.photobucket.com/albums/v252/wongsiwai/ScreenHunter_01Feb060028.jpg But now, the problem for me to handle is to let the program now I am clicking on one of the arrows to perform object translation about one of the axes. I think I need to add another collision manager for ...
by wsw1231
Sat Feb 05, 2011 3:40 pm
Forum: Beginners Help
Topic: Translation and rotation
Replies: 39
Views: 4601

Code: Select all

arrowX->setMaterialFlag(video::EMF_LIGHTING, false); 
This can solve!!!
by wsw1231
Sat Feb 05, 2011 3:16 pm
Forum: Beginners Help
Topic: Translation and rotation
Replies: 39
Views: 4601

Hey!!! It seems the arrow is in front of the cube now:D But......I still dont know why the texture cannot be loaded in smgr2 =,= #include <irrlicht.h> using namespace irr; using namespace core; using namespace scene; using namespace video; using namespace io; using namespace gui; #ifdef _IRR_WINDOWS...
by wsw1231
Sat Feb 05, 2011 2:58 pm
Forum: Beginners Help
Topic: Translation and rotation
Replies: 39
Views: 4601

Anthony,
have you run the code?

Do you know why the texture cannot be loaded in smgr2.....?
by wsw1231
Sat Feb 05, 2011 2:27 pm
Forum: Beginners Help
Topic: Translation and rotation
Replies: 39
Views: 4601

I think using separate scene manager may not do the job. Using 2 scene managers means there should be 2 cameras. So confused -,- #include <irrlicht.h> using namespace irr; using namespace core; using namespace scene; using namespace video; using namespace io; using namespace gui; #ifdef _IRR_WINDOWS...
by wsw1231
Sat Feb 05, 2011 1:39 pm
Forum: Beginners Help
Topic: Translation and rotation
Replies: 39
Views: 4601

You need to render the arrows last (maybe using a separate scene manager) and disable zbuffer test :shock: It seems complicated..... Should I use the code below to use a separate scene manager? smgr2 = smgr1->createNewSceneManager() Is that what you mean by disabling zbuffer for the arrow? ISceneNo...
by wsw1231
Sat Feb 05, 2011 1:36 pm
Forum: Beginners Help
Topic: Translation and rotation
Replies: 39
Views: 4601

If you call drawMeshbuffer or draw3dVertexPrimitiveList instead it should also work. When setting the viewport to the whole screen (or a rather huge part of it) you won't notice too much change. That call is not necessary for your purpose, so simply skip it. Sorry....in fact, I havent solved this p...
by wsw1231
Sat Feb 05, 2011 7:27 am
Forum: Beginners Help
Topic: How to render this kind of 3D model?
Replies: 4
Views: 313

How to render this kind of 3D model?

http://www.3dmodelfree.com/3dmodel/list403-1.htm I have downloaded a 3d model from this site. And then I open the model in 3ds max, then export it to .3DS format. After loading the .3ds in Irrlicht, the object looks strange http://img.photobucket.com/albums/v252/wongsiwai/ScreenHunter_01Feb051526.jp...
by wsw1231
Thu Feb 03, 2011 3:13 pm
Forum: Beginners Help
Topic: setImage problem
Replies: 3
Views: 192

I notice that img->setImage(texture); will not take into effect if the 1st parameter in addImage() is a null pointer.

Dont know why = =
by wsw1231
Thu Feb 03, 2011 2:35 pm
Forum: Beginners Help
Topic: setImage problem
Replies: 3
Views: 192

setImage problem

I can see the image using this code. ITexture *texture = driver->getTexture("../../media/fire.bmp"); IGUIImage *img = guienv->addImage(texture, core::vector2d<s32>(300,300), false); But I can't see the image using that code ITexture *texture = driver->getTexture("../../media/fire.bmp&...
by wsw1231
Thu Feb 03, 2011 1:35 pm
Forum: Beginners Help
Topic: How to make this kind of window?
Replies: 6
Views: 464

if (listBox->getListItem(listBox->getSelected()) == L"ABC") Device->closeDevice(); In a list box, I have added an item called "ABC" So, if I select "ABC", the device should be closed but it is not the case.... Is there something wrong in the if statement?
by wsw1231
Thu Feb 03, 2011 9:45 am
Forum: Beginners Help
Topic: [SOLVED]AddButton question
Replies: 1
Views: 198

[SOLVED]AddButton question

If the button is added in a toolbar, I can apply an image to it.
But if the button is added by the gui environment, I can't do that.

How to solve that problem?
by wsw1231
Thu Feb 03, 2011 8:47 am
Forum: Beginners Help
Topic: How to make this kind of window?
Replies: 6
Views: 464

But example 5 does not show how to get the option that the user chose.
There are 2 possible options in the list box in example 5, which are "File open" and "Window created".

If the user clicks on window created, how can I know?
What should I do in the event receiver?