This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
es:orx:tutorials:scrolling [2012/03/03 11:41 (13 years ago)] – [Sumario] zera | es:orx:tutorials:scrolling [2020/08/19 21:14 (5 years ago)] (current) – Old content sausage | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Tutorial de Desplazamiento ====== | ||
- | |||
- | |||
- | |||
- | ===== Sumario ===== | ||
- | |||
- | See previous [[main# | ||
- | |||
- | This tutorial shows how to display a [[wp> | ||
- | |||
- | As you can see, there' | ||
- | Actually, orx's default 2D render plugin will take care of this for you, depending on how you set the objects' | ||
- | |||
- | By default, in this tutorial, the attribute '' | ||
- | This means a [[wp> | ||
- | You can try to set this value to x, y or even to remove it. | ||
- | |||
- | Along the '' | ||
- | This attribute is used to automatically adjust the objects' | ||
- | The smaller the camera frustum is, the faster this autoscale will apply.\\ | ||
- | You can try to play with object positionning and camera near & far planes to achieve the desired scrolling and depth scale rates you want. | ||
- | |||
- | You can change the scrolling speed (ie. the camera move speed) in the config file. As usual, you can modify its value in real time and ask for a config history reload. | ||
- | |||
- | As you can see, our update code simply moves the camera in the 3D space.\\ | ||
- | Pressing arrows will move it along X and Y axis, and pressing control & alt keys will move it along the Z one.\\ | ||
- | As told before, all the [[wp> | ||
- | Your code merely needs to move your camera in your scenery, without having to bother about any scrolling effect.\\ | ||
- | This gives you a full control about how many scrolling planes you want, and which objects should be affected by it.\\ | ||
- | |||
- | The last point concerns the sky.\\ | ||
- | As seen in the [[frame|frame tutorial]], we set the sky object' | ||
- | This means the position set for the sky object in the config file will always be relative to the camera one.\\ | ||
- | In other words, the sky will always follow the camera.\\ | ||
- | As we put it, by default, at a depth of 1000 (ie. the same value as the camera far frustum plane), it'll stay in the background. | ||
- | |||
- | ===== Detalles ===== | ||
- | |||
- | |||
- | |||
- | ===== Recursos ===== | ||