Search found 97 matches

by Weng
Fri Oct 15, 2010 6:04 pm
Forum: Beginners Help
Topic: What does core::GRAD_PI and GRAD_PI2 represent?
Replies: 1
Views: 258

What does core::GRAD_PI and GRAD_PI2 represent?

I cam across some irrlicht code belonging to the older versions in the ODE & irrlicht tutorial. In the methods which converts quaternions to euler and vice versa, there were core::GRAD_PI and core::GRAD_PI2. I am currently using version 1.7.1 and there isn't any constant which matches the 2 abov...
by Weng
Sat Mar 20, 2010 1:53 am
Forum: Beginners Help
Topic: Billboard scene nodes with a viewing problem
Replies: 1
Views: 255

Billboard scene nodes with a viewing problem

I am currently using a quake 3 map as my irrlicht scene (the same quake 3 map used in the quake3 map and collision irrlicht tutorials). I also added some bill board scene nodes to represent navigation path nodes. A strange thing happens such that even if the camera is right in front of a wall or pil...
by Weng
Tue Oct 20, 2009 6:16 pm
Forum: Beginners Help
Topic: Converting from wchar_t* to char* from Irrlicht's EditBox
Replies: 4
Views: 990

Converting from wchar_t* to char* from Irrlicht's EditBox

I am trying to display and use the text which is input into an EditBox. The text has to be converted from a wchar_t* to a char* in order to be used. What I did is this: const wchar_t* startIndex = editBox1->getText(); char* start = new char[wcslen(startIndex) + 1]; cout<<wcslen(startIndex)<<endl; wc...
by Weng
Mon Oct 19, 2009 5:32 am
Forum: Beginners Help
Topic: Possible to access a gui control from IGUIEnvironment?
Replies: 1
Views: 207

Possible to access a gui control from IGUIEnvironment?

I added an irrlicht IGUIEditBox via the IGUIEnvironment pointer using the addEditBox method.

The addEditBox method returns a pointer to the IGUIEditBox for access. However, is it possible to access the edit box using the IGUIEnvironment pointer instead (like via the gui control's id) ?



:?:
by Weng
Tue Jan 20, 2009 4:16 pm
Forum: Beginners Help
Topic: How to rotate a scene node towards a point?
Replies: 2
Views: 461

How to rotate a scene node towards a point?

I would like to rotate a fairie node towards a point where the player right clicked. According to some maths formula I've read, the approach seems to be like this: 1. Find the vector where the node is facing 2. Find the vector from the node's position to the position where the player clicked 3. Norm...
by Weng
Tue Sep 30, 2008 5:36 am
Forum: Game Programming
Topic: Nvidia Physx drivers out
Replies: 20
Views: 6636

Its a little off topic but here goes.... If I plan to use to physX sdk for a 3D game, is it necessary to have a graphics card with certain capabilities? My current system is uses a few years old Nvidia FX graphics card. I'm planning to get a mac which runs an ATI radeon card. Will the physX sdk work...
by Weng
Tue Sep 30, 2008 2:58 am
Forum: Game Programming
Topic: Ageia PhysX Tutorials (cloth, grass, ragdoll, etc.)
Replies: 34
Views: 37028

bump! Great tutorial :D

Could there be tutorials on how to do collision detection in physX?
:oops:
by Weng
Sun Sep 21, 2008 11:28 am
Forum: Open Discussion and Dev Announcements
Topic: Comparison of Physics Engines with Irrlicht
Replies: 20
Views: 4640

Looks like Bullet is a popular physics engine.

How about physX or newton or ODE? Do they have a steeper learning curve or a less active online community?
by Weng
Sat Sep 20, 2008 4:19 pm
Forum: Open Discussion and Dev Announcements
Topic: Comparison of Physics Engines with Irrlicht
Replies: 20
Views: 4640

Comparison of Physics Engines with Irrlicht

I am exploring on using a physics engine with irrlicht. So far, the more popular and free ones are PhysX, Newton and ODE. I have visited their websites and their screenshots look pretty impressive. As this is the first time using a physics engine, I would prefer one which has a gentler learning curv...
by Weng
Mon Feb 11, 2008 1:38 am
Forum: Beginners Help
Topic: How to display animated 2D graphics?
Replies: 7
Views: 546

How to display animated 2D graphics?

I would like to create a 2D game with animated animals. But it seems like Irrlicht does not support the gif format as the program crashes when I tried it out.

Is there other way to display animated 2D images? :?
by Weng
Mon Jan 14, 2008 4:11 pm
Forum: Beginners Help
Topic: How to create a text scrolling effect?
Replies: 2
Views: 350

How to create a text scrolling effect?

I would like to create a scrolling line of text going from bottom to up. e.g credits at the end of the game.

How do I do that in irrlicht?
by Weng
Thu Dec 27, 2007 4:01 pm
Forum: Beginners Help
Topic: Unable to draw 2D rectangle on the screen
Replies: 1
Views: 185

Unable to draw 2D rectangle on the screen

I'm trying to draw a grey 2D rectangle of size 640x480 which will appear when the game comes to an end. I did this: driver->draw2DRectangle(video::SColor(100,204,0,255),core::rect<s32>(10,10,200,180),0); However, nothing appears. Even when I changed the alpha value and changed the position of the re...
by Weng
Fri Nov 02, 2007 11:25 am
Forum: Beginners Help
Topic: Waiting for a specific amount of time
Replies: 6
Views: 726

For my case, I use the time() method.

e.g

Code: Select all

#include <time.h>

time_t start;
time_t end;

time(&start);
time(&end);

if(start - end > 5)
  //do some shooting action
Note that the smallest unit of the time function is 1 second. Hope it helps :)
by Weng
Fri Nov 02, 2007 11:20 am
Forum: Beginners Help
Topic: How to insert a new line using SetText or addStaticText?
Replies: 2
Views: 550

I added '\n' and it works.....thanks~ :D
by Weng
Wed Oct 31, 2007 4:14 am
Forum: Beginners Help
Topic: How to insert a new line using SetText or addStaticText?
Replies: 2
Views: 550

How to insert a new line using SetText or addStaticText?

When setting text for the IGUIStaticText gui element, how do I insert a new line of text using addStatiText or setText methods?