x


Is it possible to paint an animated texture onto a terrain?

I love the underwater effect seen here: http://forum.unity3d.com/viewtopic.php?t=43733&postdays=0&postorder=asc&start=0. But I'm still too new to Unity to figure out how it works.

I thought I'd start with something more simple (I think) by painting an animated texture on the ocean floor rather then having it projected from a camera. Is that even possible?

Any tips would be greatly appreciated!

more ▼

asked Mar 03 '10 at 10:26 PM

Jessi gravatar image

Jessi
1 1 1 2

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

4 answers: sort voted first

hey, u can also add

"IgnoreProjector" = "true"

to the water shader instead of ignoring layers ^_^

more ▼

answered May 05 '10 at 11:29 AM

danielsig gravatar image

danielsig
11 1

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

I would point out that the splat maps are accessible in the Project view, which means that there is some possibility of modifying those splats directly to cause texture animation. The downside is that it is likely that the texture may have to be a Texture2D, meaning that replacing it with a Render Texture would not be possible. Working with a Texture2D will hav e much higher CPU overhead as I found when I tried a similar trick with the Light Maps so that I could have Light Mapped day/night cycles.

more ▼

answered Aug 11 '10 at 04:14 PM

JonManatee gravatar image

JonManatee
251 7 8 18

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

Unity terrain engine doesn't support 'decals' so, unless you're very good in shader programming I don't think you can. A way to fake it more or less would be to convert the terrain to a mesh, extracting the part of the mesh that needs the decal/underwater texture and place this over the terrain with the right texture and shader offset modified to be painted above the floor.

Using a projector would probably be the simplest solution, besides making the right texture for the projector it isn't much more difficult than placing a camera. The only thing to watch is having stuff in the right layers, you probably don't want the texture be projected on the water surface so the water should be in a layer excluded from the projector.

more ▼

answered Mar 04 '10 at 12:04 AM

Jaap Kreijkamp gravatar image

Jaap Kreijkamp
6.5k 20 27 71

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

why dont you bring in an object already painted how you want it

more ▼

answered Mar 04 '10 at 12:40 AM

user-1431 (google) gravatar image

user-1431 (google)
49 8 9 10

(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:

x1521
x59
x18

asked: Mar 03 '10 at 10:26 PM

Seen: 3112 times

Last Updated: Mar 03 '10 at 10:26 PM