Search found 148 matches

by wsw1231
Thu Mar 31, 2011 9:26 am
Forum: Beginners Help
Topic: How to stop the scene while handling GUI events?
Replies: 10
Views: 551

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...
by wsw1231
Wed Mar 30, 2011 4:48 am
Forum: Beginners Help
Topic: How to stop the scene while handling GUI events?
Replies: 10
Views: 551

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...
by wsw1231
Tue Mar 29, 2011 2:53 pm
Forum: Beginners Help
Topic: How to stop the scene while handling GUI events?
Replies: 10
Views: 551

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 ...
by wsw1231
Tue Mar 29, 2011 12:37 pm
Forum: Beginners Help
Topic: How to stop the scene while handling GUI events?
Replies: 10
Views: 551

Also, another problem is that if I click on the GUI element, the object in the scene (at the back) will be selected.

How to solve that :(
by wsw1231
Tue Mar 29, 2011 12:35 pm
Forum: Beginners Help
Topic: How to stop the scene while handling GUI events?
Replies: 10
Views: 551

hybrid wrote:You can either switch to modes (i.e. when GUI is open don't set rotate) or check if a GUI element has focus and send the event there.
How can I check if the GUI element is focused?
Which API should be used?

guielement -> isEnabled()?
by wsw1231
Tue Mar 29, 2011 12:28 pm
Forum: Beginners Help
Topic: How to stop the scene while handling GUI events?
Replies: 10
Views: 551

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 ...
by wsw1231
Mon Mar 07, 2011 9:51 am
Forum: Beginners Help
Topic: Button border question
Replies: 5
Views: 363

how to apply the skin to the IGUIButton?
by wsw1231
Mon Mar 07, 2011 7:27 am
Forum: Beginners Help
Topic: Button border question
Replies: 5
Views: 363

Button border question

Can I add a border with a certain thickness around the button when it is clicked using Irrlicht?
by wsw1231
Sat Mar 05, 2011 7:41 pm
Forum: Beginners Help
Topic: How to build walls?
Replies: 8
Views: 689

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...
by wsw1231
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: 265

How to set the length, height and width of a cube?

Code: Select all

cubeNode = smgr->addCubeSceneNode();
The cubeNode buttom has y-value 0 by default.

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?
by wsw1231
Sat Mar 05, 2011 8:53 am
Forum: Beginners Help
Topic: How to build walls?
Replies: 8
Views: 689

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...
by wsw1231
Sat Mar 05, 2011 7:21 am
Forum: Beginners Help
Topic: How to build walls?
Replies: 8
Views: 689

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...
by wsw1231
Tue Mar 01, 2011 9:06 am
Forum: Beginners Help
Topic: How to build walls?
Replies: 8
Views: 689

The rectangle in the above picture is in XY plane.
How can I change it to XZ plane when the user drags and drops the mouse?
by wsw1231
Tue Mar 01, 2011 8:56 am
Forum: Beginners Help
Topic: How to build walls?
Replies: 8
Views: 689

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...
by wsw1231
Mon Feb 28, 2011 11:28 am
Forum: Beginners Help
Topic: Free 3D models site
Replies: 5
Views: 678

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...