A couple of questions.
A couple of questions.
Q1: How can i set fog.
Q2: How can i change the speed of the camera?
Thanks
Q2: How can i change the speed of the camera?
Thanks
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).
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
Life of a programmer == Const abuse
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.
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.
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
Really?
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) {}
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
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
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
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.
driver->makeColorKeyTexture(crosshair, core::position2d<s32>(0,0));
But that hasnt worked the background just stays black.
-
- Posts: 368
- Joined: Tue Aug 21, 2007 1:43 am
- Location: The Middle of Nowhere