Jump to content


Photo

Unity Splatmaps.....


  • Please log in to reply
26 replies to this topic

#1 Brucey Mc

Brucey Mc

    Advanced Member

  • Members
  • PipPipPip
  • 438 posts
  • LocationTeesside, UK #UTB

Posted 14 March 2014 - 02:58 PM

If you are like me and find the terrain painter in Unity a pain in the you know what when painting large areas I have been messing about with editing the Splatmaps externally and then re-importing into Unity.  Forget the actual example textures used and it needs a fair bit of touching up but I think generally it works pretty well.  There is a little bit of normalisation around some of the objects (the bright bits) but these can be cleared up with a little gentle brushing.

ScreenShot2014-03-14at143232.png

ScreenShot2014-03-14at143404.png

ScreenShot2014-03-14at143115.png


  • Kablammo11 likes this

#2 Kablammo11

Kablammo11

    Obscure Person

  • Members
  • PipPipPip
  • 3,953 posts

Posted 14 March 2014 - 04:19 PM

Quite ingenious, Brucey. But CF Shapes (green, fairways, semi, roughs etc) are a separate thing entirely and will not be governed by splatmaps. So in the long run, splatmapping will only be viable for the more distant terrain shapes. And it's still useful, of course, for quickly laying out a golf course and allocating textures to the topography for later upgrades.

I still recommend you try and get comfortable with the terrain painter. It can be quite irritating at times, but that's mostly becaue it takes a little bit of getting used to - and it most certainly will give you a lot more control over many texture details once you've made your peace with it. The textures look very nice, btw.

 

We all could easily think of a dozen or more features of Unity where we'd wish that there were a quick fix, an elegant and effortless way to gets things done more easily… alas, there isn't. Sometimes some Unity stuff simply ...sucks. Don't fight it, don't shirk from it neither, and it will get a lot easier a lot quicker. Just a matter of mileage. :) 


>>>>>>> Ka-Boom!





• Mulligan Municipal • Willow Heath • Pommeroy • Karen • Five Sisters • Xaxnax Borealis • Aroha • Prison Puttˆ

• The Upchuck   The Shogun  • Black Swan (•)

 

<<<<<


#3 Brucey Mc

Brucey Mc

    Advanced Member

  • Members
  • PipPipPip
  • 438 posts
  • LocationTeesside, UK #UTB

Posted 14 March 2014 - 04:27 PM

Thanks K, I know that the CF shapes are different but I am just trying to create a base terrain that can be used as a marker for my shapes.  All good fun.  I have used the terrain painter and I am ok with it in general but trying to create larger areas I prefer this way of doing it.



#4 Brucey Mc

Brucey Mc

    Advanced Member

  • Members
  • PipPipPip
  • 438 posts
  • LocationTeesside, UK #UTB

Posted 14 March 2014 - 05:57 PM

After all that hard work, I'm off for a short break.  Might just make it a busman's holiday......  :)

ScreenShot2014-03-14at174643.png


  • highfade likes this

#5 shimonko

shimonko

    Advanced Member

  • Members
  • PipPipPip
  • 1,718 posts

Posted 14 March 2014 - 06:57 PM

I've being doing the same Bruce and agree, it's the large areas which the real time-saving comes in, such as painting in all the rough.


I would have loved to do this for all my terrain painting but couldn't replicate Unity's ability to automatically do the normalization (to avoid the bright spots). Well I could for the first three terrain textures but I wanted to mix up to 8 (two splat maps).



#6 Brucey Mc

Brucey Mc

    Advanced Member

  • Members
  • PipPipPip
  • 438 posts
  • LocationTeesside, UK #UTB

Posted 14 March 2014 - 07:35 PM

I'm using 4 splatmaps so far, the trick is to have one photoshop (or equivalent file) with each terrain a different colour,  then select each layer by colour and make as a red layer, blue layer or green layer for each splatmap file.  I use a texture that will only be used for touching up for the alpha layer as I couldn't work out how to use the alpha layer properly.  All unused parts for each splatmap in the alpha layer should be black.  Sorry I don't think I have explained that very well.



#7 Brucey Mc

Brucey Mc

    Advanced Member

  • Members
  • PipPipPip
  • 438 posts
  • LocationTeesside, UK #UTB

Posted 14 March 2014 - 07:54 PM

One more shot......ScreenShot2014-03-14at194102.png

But this seemed the natural place to start.......

ScreenShot2014-03-14at194155.png



#8 garynorman

garynorman

    Advanced Member

  • Members
  • PipPipPip
  • 481 posts
  • LocationBedfordshire, England

Posted 14 March 2014 - 08:59 PM

I haven't really looked into splat maps at all, but what you are saying is that you can basically draw the course in say photoshop and then transfer it, with textures, into Unity??

 

If so that sounds promising...



#9 Brucey Mc

Brucey Mc

    Advanced Member

  • Members
  • PipPipPip
  • 438 posts
  • LocationTeesside, UK #UTB

Posted 14 March 2014 - 09:01 PM

Yes gary, pretty much 😄

#10 garynorman

garynorman

    Advanced Member

  • Members
  • PipPipPip
  • 481 posts
  • LocationBedfordshire, England

Posted 14 March 2014 - 09:14 PM

Good news then!! :)

 

Is that Turnberry you're starting work on there??  I hope so as it's a great course :)  I have a basic lighthouse model if you want it...  Let me know :)



#11 Brucey Mc

Brucey Mc

    Advanced Member

  • Members
  • PipPipPip
  • 438 posts
  • LocationTeesside, UK #UTB

Posted 14 March 2014 - 09:20 PM

Going there on Sunday for a couple of days and a trigger happy camera 😄
  • garynorman likes this

#12 shimonko

shimonko

    Advanced Member

  • Members
  • PipPipPip
  • 1,718 posts

Posted 14 March 2014 - 09:21 PM

That was my hope Gary but Unity demands the combined 'strength' of all textures at any one spot on the terrain add up to 1. So if you paint with the texture in slot 4 in Unity, Unity will automatically scale down the strengths of any other texture(s) at that same spot so the 1 total is not exceeded.

 

Photoshop can do this fine if you've only got 3 textures (just paint with either red, green or blue), but the 4th texture is represented by an alpha channel in Photoshop and painting this won't reduce the intensities in the other three textures channels to keep the result at 1.

 

For textures 5-8 in Unity which I had, you'll need a second Photoshop file and painting in it (of course) won't reduce the intensities of textures 1-4. A custom Photoshop plugin I suspect would be the only efficient way. 

 

But as Bruce says, there is still merit doing this for some things, like painting larger areas and touching up the overblown areas.


  • garynorman likes this

#13 Brucey Mc

Brucey Mc

    Advanced Member

  • Members
  • PipPipPip
  • 438 posts
  • LocationTeesside, UK #UTB

Posted 14 March 2014 - 09:34 PM

I created four splatmaps from a photoshop file and had them in unity as shown in the pictures in about twenty minutes so it can be a great time saver

#14 Mike Jones

Mike Jones

    Advanced Member

  • Administrators
  • 6,159 posts

Posted 15 March 2014 - 11:08 AM

I'm just wondering, what are the perceived advantages of doing it this way instead of inside Unity?

 

Let's think of it this way, think of your unity course/scene as the canvas. So you're painting a picture and normally you use your brush on the canvas and you can immediately see how things blend with everything else and interact with the lighting, slopes etc. What you're doing seems to be more akin to painting your picture on another canvas and then 'porting' it over onto your real canvas.  

 

Am I missing something or is that counter intuitive and unproductive? Is this more about your planning stage rather than any final artistic work?


  • TheBigYin519 likes this

#15 IanD

IanD

    Advanced Member

  • Members
  • PipPipPip
  • 3,371 posts

Posted 15 March 2014 - 11:51 AM

It's different...

 

I'm wondering if it is that familiarity with everything photoshop... ie icons, relative position of them and grouping of everything familiar. Whereas with Unity, there are simple once you become accustomed to them. Maybe it's not that at all...



#16 Brucey Mc

Brucey Mc

    Advanced Member

  • Members
  • PipPipPip
  • 438 posts
  • LocationTeesside, UK #UTB

Posted 15 March 2014 - 03:41 PM

If I was starting a design from scratch I would use unity but when you know where things are initially it's a quick way of putting an image down of where things are. There are a few ways to skin a cat

#17 Kablammo11

Kablammo11

    Obscure Person

  • Members
  • PipPipPip
  • 3,953 posts

Posted 15 March 2014 - 03:52 PM

My way would be to draw a Photoshop layout, see image below, and then import it as a terrain-sized texture.

I'm not advocating this as a better way to prep a project, just describing how I do get my cats naked. Ah, those sweet, purring, pink-fleshed, bald little critters…. hm… they look so stupid.

 

EP_Layout_1200_zps86bea3e0.jpg


>>>>>>> Ka-Boom!





• Mulligan Municipal • Willow Heath • Pommeroy • Karen • Five Sisters • Xaxnax Borealis • Aroha • Prison Puttˆ

• The Upchuck   The Shogun  • Black Swan (•)

 

<<<<<


#18 shimonko

shimonko

    Advanced Member

  • Members
  • PipPipPip
  • 1,718 posts

Posted 16 March 2014 - 10:55 AM

I'm just wondering, what are the perceived advantages of doing it this way instead of inside Unity?
 
Let's think of it this way, think of your unity course/scene as the canvas. So you're painting a picture and normally you use your brush on the canvas and you can immediately see how things blend with everything else and interact with the lighting, slopes etc. What you're doing seems to be more akin to painting your picture on another canvas and then 'porting' it over onto your real canvas.  
 
Am I missing something or is that counter intuitive and unproductive? Is this more about your planning stage rather than any final artistic work?


Not planning or final for me, rather just a shortcut when I would find myself otherwise painting large areas in Unity to match the overhead imagery. Most of that of course will be eliminated with CF's splines, but still I use my own terrain shaders for the rough and importing splat maps here saves a lot of boring blocking out.
  • Brucey Mc likes this

#19 highfade

highfade

    Advanced Member

  • Members
  • PipPipPip
  • 1,749 posts
  • LocationSouth Africa

Posted 17 March 2014 - 06:00 AM

Splatmaps? Never heard of it.  Thank you very much, another thing I know nothing about. :mellow:


Intel Core i5-6600 CPU 3.3 GHz       Geforce GTX 1060        16GB  RAM       Windows 10 64 bit

Hazyview  (600m above sea level)    --   Nautilus Bay  (Revamp done)  --  Cape Fear  (TGC  adaptation)  --  Aloe Ridge  --  Nahoon Reef GC  --  Chambers Bay 

Abel's Crossing  --  Solitude Links GC


#20 Brucey Mc

Brucey Mc

    Advanced Member

  • Members
  • PipPipPip
  • 438 posts
  • LocationTeesside, UK #UTB

Posted 17 March 2014 - 07:35 AM

Highfade, select your terrain in your assets folder and you can drill down into your splat maps. These are generated by unity




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users