Mesh as Texture to Paint with ?

Ok I am a scripter ( not unity yet ) and my artists / modeler wanted me to make a script that would allwo him to use mesh’s as a texture to paint with , my question is can it be done with out a script and then my nexxt question is it possable with a script?

Heres my modelrs question: " I need to be able to have unity treat an imported mesh as a terrain object so I can paint trees and plants and textures on it"

Terrain features only work on the in-built terrains, which is a shame. I would have liked an option to have painted grass/trees onto an imported mesh (without the performance hit of hiding a proxy terrain)

the problem is the hit would still be there as the checking for what to hide and what to change in detail level is not remotely free either
the terrain just hides it as it has to do various of those things too for its own working

I guess i’ll look into making a plugin or a script to solve this

Did you get anywhere with this? I really want to be able to paint textures on arbitrary meshes.

Something like this? http://www.youtube.com/watch?v=FpcJh-Rd-ko The terrain is actually a bunch of imported meshes. The original question was actually referring to painting grass/trees/detail meshes onto the terrain though.

Yes! Is such a thing available, or just the domain of wizards?

I may release it at some point. Still working on optimizing the shaders though.

This is a very good option though: http://forum.unity3d.com/threads/59599-Vertex-Painter/page8

It works differently than mine, but can give very nice results.

Thanks. I’ll look into it.

Hello All,
Seen this ? http://forum.unity3d.com/threads/68649-How-to-script-terrain-painter
Pixelstudio Terrain Paint, Resume - Start Bootstrap Theme, the video demo is realing exciting…
But I could never make it work, neither with U2.6 or U3.1… :°(
All the source files posted on github, please let us know if some of you can improve it, or some part of it.

Personnaly I don’t like the built in Terrain editor, because of its ennoying lightmap, because it is a pain in the ass to edit it accurately, and it’s memory consuming compared to a low res mesh, where you have details just when needed. But eventually it can be facilitated by the object to terrain, to match an imported mesh (http://www.unifycommunity.com/wiki/index.php?title=Object2Terrain)

I’d like to share another nice scripts :

  • Grass on mesh generator : seen there http://forum.unity3d.com/threads/8659-nature-pack
    This works well but needs some shader fixing in U3.x. You also have to be sure that your cam is correctly set up, because the billboards may pop up downwards, so you can’t see them. With it’s color control map / light map / distribution map I found it much more elegant than Terrain grass.
    This scripts does the job first asked by jchase, but for plants only.

I guess this script could be improved as well, as to mass place trees/objects as well, just from a click and a control map…
I wish you could code it myself…
Come on guy, dream is only a click away!