Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Terrain Question - Rocks.

Discussion in 'Editor & General Support' started by CelticKnight, Jan 19, 2015.

  1. CelticKnight

    CelticKnight

    Joined:
    Jan 12, 2015
    Posts:
    378
    Hello guys,

    I am very new to Unity and have been using the book "Introduction to Game Development with Unity 4" and I have a question relating to rocks.

    I followed to book pretty closely regarding to setting up the rocks using "Paint Details" ->"Adding a Detail Mesh" ->then adding the rock I wanted from an imported asset and "Selecting Vertex Lit". But when I tried to paint it into the scene nothing happened. Screenshot below showing asset in selection box:



    Then I noticed whilst playing around editing I found that there was a "Prefab" version of each rock so I tried setting the rock as that and all sorts of weird blotches showed up in the scene :eek:.

    So, can anyone suggest what I am doing wrong and get the rocks showing up - and how I might go about getting a collider working with the rock? I am using the free version of Unity so that may be the problem right there!

    If you can help here is a big thank you in advance :).

    Cheers.
     
    Last edited: Jan 19, 2015
  2. CelticKnight

    CelticKnight

    Joined:
    Jan 12, 2015
    Posts:
    378
    Can I supply more pertinent information to help facilitate an answer?
     
  3. Aurore

    Aurore

    Director of Real-Time Learning Unity Technologies

    Joined:
    Aug 1, 2012
    Posts:
    3,106
    Is it possible to show your scene view too? And what version are you using, I can't seem to replicate this.
     
  4. CelticKnight

    CelticKnight

    Joined:
    Jan 12, 2015
    Posts:
    378
    Yeah, sure. This is a piccy showing the result of apparently placing 4 rocks close together through the "Paint Detail" section of terrain using the "Add Detail Meshes". Of course, you can't see any rocks, what you can see is the splotches of grey, that gets progressively worse as you put more rocks (apparently) into the scene or increase the brush size.



    I checked the "About" box for Unity and the version is Unity 4.6.1f1
     
    Last edited: Jan 21, 2015
  5. Ony

    Ony

    Joined:
    Apr 26, 2009
    Posts:
    1,973
    That happened to me in the past, and although (sorry!) I can't remember exactly what was causing it, I seem to recall it had something to do with replacement terrain\grass\foliage shaders. If you're using anything like that, that replaces the default Unity shaders, perhaps check into that. If I can remember what the actual solution was I'll update my post here.
     
    CelticKnight and Aurore like this.
  6. CelticKnight

    CelticKnight

    Joined:
    Jan 12, 2015
    Posts:
    378
    Aha, that might be the problem! I imported the packages that contained the rocks (one free, the other not) and they might be using those types of shaders. I have only been using Unity for 2 weeks, so, I have no idea what a shader does o_O, but, it does give me something too look into :).

    I'm off to look at some Unity docs :cool:.
     
    Last edited: Jan 29, 2015
  7. CelticKnight

    CelticKnight

    Joined:
    Jan 12, 2015
    Posts:
    378
    @Ony - Do you know of any Rock assets that don't have any conflicting shaders that I would be able to download?
     
  8. Ony

    Ony

    Joined:
    Apr 26, 2009
    Posts:
    1,973
    It's not the rock assets themselves with the conflicting shaders, it's conflicting shaders from a different asset. There was a replacement grass shader I used and like I say, I think that's what caused the problem. Again though I can't be sure because it was a while ago. If you haven't installed any replacement terrain or foliage shaders then that's probably not it anyway.
     
    CelticKnight likes this.
  9. CelticKnight

    CelticKnight

    Joined:
    Jan 12, 2015
    Posts:
    378
    Thanks for that info @Ony :).

    So that still leaves me with a bit of a problem, I suppose any detail meshes is a no go area - although I did find a workaround for the rocks now that I'm not as scared by Unity as I was, and that was by dropping the rocks into the scene one-by-one, so, that will work fine enough for now, I didn't really want to use many rocks.
     
  10. CelticKnight

    CelticKnight

    Joined:
    Jan 12, 2015
    Posts:
    378
    This might be fixed in 4.6.2f :). Heres hoping that it is!