x


moving background

i want to make background that moves, camera does not move. so what is the best way to achive this? plane with uvs moving, or plane moving, looping somehow or something else?

thanks!

more ▼

asked Dec 25 '11 at 07:22 PM

pretender gravatar image

pretender
497 121 134 145

(comments are locked)
10|3000 characters needed characters left

1 answer: sort newest

The easiest way is moving the main texture offset.

var scrollSpeed : float = 0.5;

function Update() {
var offset : float = Time.time * scrollSpeed;
renderer.material.mainTextureOffset = Vector2 (offset, 0);
}
more ▼

answered Dec 25 '11 at 08:19 PM

ramonfr gravatar image

ramonfr
93 11 20 24

(comments are locked)
10|3000 characters needed characters left

You could make the plane in a modelling program and set an animation .

more ▼

answered Dec 25 '11 at 08:10 PM

cube gravatar image

cube
1 2 2 2

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2209
x167
x1

asked: Dec 25 '11 at 07:22 PM

Seen: 1540 times

Last Updated: Dec 25 '11 at 08:19 PM