Search found 148 matches
- Thu Mar 31, 2011 9:26 am
- Forum: Beginners Help
- Topic: How to stop the scene while handling GUI events?
- Replies: 10
- Views: 626
sorry.....I still do not get it.... Could you please give me some sample code? If I click on the GUI element (not root), it will be focused. That means EGET_ELEMENT_FOCUSED will be checked. But....by clicking the GUI element, that means EMIE_LMOUSE_PRESSED_DOWN will also be checked. How to disable t...
- Wed Mar 30, 2011 4:48 am
- Forum: Beginners Help
- Topic: How to stop the scene while handling GUI events?
- Replies: 10
- Views: 626
With env->getRootGUIElement()->getElementFromPoint you can check which element is below the mouse. If it is anything but the RootGUIElement itself then you are probably over a gui-element and don't want to handle those mouse-events for 3D selection. How to check if env->getRootGUIElement()->getElem...
- Tue Mar 29, 2011 2:53 pm
- Forum: Beginners Help
- Topic: How to stop the scene while handling GUI events?
- Replies: 10
- Views: 626
how to ignore the things in the background when the GUI element is focused? case EGET_ELEMENT_FOCUSED: { //what to do? }break; Also, if the element is focused, that means the user clicks the left mouse button on the element meaning that EMIE_LMOUSE_PRESSED_DOWN is also triggered. How to handle this ...
- Tue Mar 29, 2011 12:37 pm
- Forum: Beginners Help
- Topic: How to stop the scene while handling GUI events?
- Replies: 10
- Views: 626
- Tue Mar 29, 2011 12:35 pm
- Forum: Beginners Help
- Topic: How to stop the scene while handling GUI events?
- Replies: 10
- Views: 626
- Tue Mar 29, 2011 12:28 pm
- Forum: Beginners Help
- Topic: How to stop the scene while handling GUI events?
- Replies: 10
- Views: 626
How to stop the scene while handling GUI events?
http://img.photobucket.com/albums/v252/wongsiwai/ScreenHunter_08Mar292022.jpg My program has an operating mode called MODE_ROTATE to rotate objects. This operating mode is triggered when the user presses 'r' key. Now, the problem is, as you can see in the above picture, the user would like to save ...
- Mon Mar 07, 2011 9:51 am
- Forum: Beginners Help
- Topic: Button border question
- Replies: 5
- Views: 387
- Mon Mar 07, 2011 7:27 am
- Forum: Beginners Help
- Topic: Button border question
- Replies: 5
- Views: 387
Button border question
Can I add a border with a certain thickness around the button when it is clicked using Irrlicht?
- Sat Mar 05, 2011 7:41 pm
- Forum: Beginners Help
- Topic: How to build walls?
- Replies: 8
- Views: 704
Yes, better choice. This code draw rectangle, sorry for python device = createDevice(EDT_OPENGL, dimension2du(640, 480)) driver = device.getVideoDriver() smgr = device.getSceneManager() camera = smgr.addCameraSceneNodeFPS() camera.setPosition(vector3df(50,200,50)) m = SMaterial() m.Lighting = False...
- Sat Mar 05, 2011 10:21 am
- Forum: Beginners Help
- Topic: How to set the length, height and width of a cube?
- Replies: 4
- Views: 282
How to set the length, height and width of a cube?
Code: Select all
cubeNode = smgr->addCubeSceneNode();
Now, what I want to do is set the height to a certain value, say 100, then the cube should be of height 100 with its bottom y-value unchanged (i.e. still be 0)
How to solve that?
- Sat Mar 05, 2011 8:53 am
- Forum: Beginners Help
- Topic: How to build walls?
- Replies: 8
- Views: 704
But how are the lines drawn? How to represent the rectangle? Which API should be used? IVideoDriver->draw3DLine(vector3d<f32> start, vector3d<f32> end) see my link above IVideoDriver->draw2DRectangle(SColor, rect<s32>(X1, Y1, X2, Y2)) from 2DGraphics example 6 Would draw3DBox() be better? Because i...
- Sat Mar 05, 2011 7:21 am
- Forum: Beginners Help
- Topic: How to build walls?
- Replies: 8
- Views: 704
You can use ISceneCollisionManager ::getRayFromScreenCoordinates to create a ray which you can then collide against a plane to get a point in 3D. The plane basically sets the height at which you want that ray to collide so in your case it will probably have normal vector pointing upwards and a d va...
- Tue Mar 01, 2011 9:06 am
- Forum: Beginners Help
- Topic: How to build walls?
- Replies: 8
- Views: 704
- Tue Mar 01, 2011 8:56 am
- Forum: Beginners Help
- Topic: How to build walls?
- Replies: 8
- Views: 704
How to build walls?
I am wondering if Irrlicht engine can handle the case in which the user clicks the left-mouse button and drags and drops to create a rectangular selection. For example, http://img.photobucket.com/albums/v252/wongsiwai/ScreenHunter_01Mar011654.jpg My question is how I can draw this rectangular select...
- Mon Feb 28, 2011 11:28 am
- Forum: Beginners Help
- Topic: Free 3D models site
- Replies: 5
- Views: 706
well turbosquid is one of the biggest. i think this one you know: http://www.3dmodelfree.com/3dmodel/list468-1.htm btw you also could convert 3d models to another file format or import them into free tools. Anyway usualy someone who has the money to buy 3DS max should be able to pay a price for a 3...