A couple of questions.

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Mad-Mazda
Posts: 20
Joined: Mon Oct 20, 2008 5:44 am

A couple of questions.

Post by Mad-Mazda »

Q1: How can i set fog.
Q2: How can i change the speed of the camera?

Thanks
MasterM
Posts: 128
Joined: Sat Oct 20, 2007 2:38 am
Location: netherlands antilles, Curacao

Post by MasterM »

I am not an expert but ill try to answer your questions :
Q1 : DONT KNOW
Q2 : by making a costum camera, and then you can define speed or change the fps camera source(never did it before).
C++ is not the Magdalena...it takes patience...shes like the well aged prostitute, it takes years to learn her tricks! she is cruel...laughs at you when you are naked...
Life of a programmer == Const abuse
Ion Dune
Posts: 453
Joined: Mon Nov 12, 2007 8:29 pm
Location: California, USA
Contact:

Post by Ion Dune »

Q1: See tutorial/example 11.
Q2: Presumably you mean changing the speed of an FPS camera after it has been created. Like MasterM said, you could make a custom one or alter the source of the FPS camera. Alternatively, you could get a copy of the SVN, which uses an FPS Camera scene node animator which you could get a hold of from ISceneNode::getAnimators() and change the speed through.
Mad-Mazda
Posts: 20
Joined: Mon Oct 20, 2008 5:44 am

Post by Mad-Mazda »

Q1: Thanks for that.
Q2: Might wait awhile before i try that. Pretty new to Irrlicht
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Well, you can also wait some more days and use Irrlicht 1.5, which will makes those features into an official release :)
Mad-Mazda
Posts: 20
Joined: Mon Oct 20, 2008 5:44 am

Post by Mad-Mazda »

Oh ok awsome.
Mad-Mazda
Posts: 20
Joined: Mon Oct 20, 2008 5:44 am

Post by Mad-Mazda »

Also instead of making a new topic for such a small thing i'll ask here. Can somebody please explain the parametres of core::rect<s32>(....)
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Really?

Code: Select all

		rect(T x, T y, T x2, T y2)
			: UpperLeftCorner(x,y), LowerRightCorner(x2,y2) {}

		rect(const position2d<T>& upperLeft, const position2d<T>& lowerRight)
			: UpperLeftCorner(upperLeft), LowerRightCorner(lowerRight) {}

		rect(const position2d<T>& pos, const dimension2d<T>& size)
			: UpperLeftCorner(pos), LowerRightCorner(pos.X + size.Width, pos.Y + size.Height) {}
Really? ;)
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Mad-Mazda
Posts: 20
Joined: Mon Oct 20, 2008 5:44 am

Post by Mad-Mazda »

Ok thanks i can see how to use this now.
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Note that the simplest IVideoDriver::draw2DImage() methods just needs a destination position, not a source or destination rectangle.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Mad-Mazda
Posts: 20
Joined: Mon Oct 20, 2008 5:44 am

Post by Mad-Mazda »

Ok thanks for the tip, i have another question about 2D images....Trasnparecny. How can i achieve transparency in images. Ive tryed making the image background transparent using

driver->makeColorKeyTexture(crosshair, core::position2d<s32>(0,0));

But that hasnt worked the background just stays black.
B@z
Posts: 876
Joined: Thu Jan 31, 2008 5:05 pm
Location: Hungary

Post by B@z »

you have to give it as a parameter to use alpha channel.

see the drawImage()'s parameters
Image
Image
Dark_Kilauea
Posts: 368
Joined: Tue Aug 21, 2007 1:43 am
Location: The Middle of Nowhere

Post by Dark_Kilauea »

Here: Your new best friend

Read it, use it, bookmark it.
rogerborg wrote:Every time someone learns to use a debugger, an angel gets their wings.
Post Reply