Search found 148 matches
- 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?
- 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);
Now, I would like to change its color, but I cannot find any API to do that.
What should I do?
- 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 ...
- 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);
- 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...
- Sat Feb 05, 2011 2:58 pm
- Forum: Beginners Help
- Topic: Translation and rotation
- Replies: 39
- Views: 4601
- 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...
- 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...
- 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...
- 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...
- Thu Feb 03, 2011 3:13 pm
- Forum: Beginners Help
- Topic: setImage problem
- Replies: 3
- Views: 192
- 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&...
- Thu Feb 03, 2011 1:35 pm
- Forum: Beginners Help
- Topic: How to make this kind of window?
- Replies: 6
- Views: 464
- 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?
But if the button is added by the gui environment, I can't do that.
How to solve that problem?
- Thu Feb 03, 2011 8:47 am
- Forum: Beginners Help
- Topic: How to make this kind of window?
- Replies: 6
- Views: 464