Testing out the grass system in 4.8p1 and getting some very weird behavior. In a new empty project, desktop/console, max quality, no starter, I made a new blank scene, added a simple landscape object, made a basic landscape material using the landscape layer node with two weighted layers, both having a simple color piped into them. That is then piped into both the baseColor and the landscape Grass output. I expect to see the simple mesh I selected in the grass node to show up across the surface of the landscape wherever the “grass” layer is painted. Instead, I am seeing the mesh spawn far below the surface of the landscape. However, the meshes are still spawning in the appropriate area in regards to the color painted on the landscape.
It’s weird right? I have replicated this on both brand new projects as well as projects converted from 4.7.6.
Also, if possible I’d like to confirm that this system will only work with landscape objects. I’ve tried using it for static mesh terrain objects and I get no mesh spawns so I’m assuming that is the case which is disappointing as during the stream where this system was covered, I asked if it was landscape only and was told it was not. Perhaps they assumed I was asking about the foliage spawning system which is indeed not landscape only.
Either way, if someone could please replicate this and verify if it’s a bug, I’d appreciate it. Cheers,
Hi, this is the wrong way to hook up grass. What you are attempting to do is used blended colors as an alpha. Still shouldn’t result in grass under the terrain but lets start by using the correct setup.
If you want to mask by layer, you need to use a “LayerSample” node that has the same name as the layer you want. Then you hook up the result of that layer sample to your grass input. You add a new grass type on the grass node for each layer.
You should also be able to enter a constant “1” there to see grass everywhere.
Am I the only one seeing this? I haven’t tried on a windows system yet, this is all on Macs so far. Could be a factor. Will test on a windows 8.1 system later today…
Sorry but I am unable to reproduce the issue. I made a new level, new landscape, new grasstype and material.
I set the grasstype mesh to be one from engine content (StaticMesh’/Engine/BasicShapes/Cone.Cone’). Then I opened the landscape material, assigned the grasstype asset and a constant ‘1’ for the input and saw the mesh blanket my landscape and it stayed on the landscape while moving it around.
It is possible you are seeing an integration bug. What mesh are you using for your grass mesh? Have you tried using different meshes under engine?
Also what if you turn off settings like align to surface or random rotation?
I’ve verified this problem is only happening on Macs. Doing the same steps on a windows 8.1 system results in the expected behavior of having the meshes spawning on the surface of the landscape.
Hi JJ, I just compiled on my Mac Mini with integrated Intel HD Graphics 4000 and grass is working properly for me.
Could you give us some more info about your Mac? Is you use Apple menu, About This Mac, More Info and then save the result from the System Information program, that would be helpful in tracking down the cause.
You said compiled. I did not compile but downloaded via the launcher. If I may recommend testing apples to apples. I know it shouldn’t matter, but it can…
Thanks, this doesn’t seem like video drivers if you’re seeing it on devices with different GPUs. I’m still running 10.9.x on this Mac Mini, but we’re trying on another Mac with 10.10.x installed now.
If I may ask a semi-related question, could you please verify that this grass system will only work with landscapes. I was hoping to be able to use this system to spawn objects on static mesh terrains I have made. These can’t be made as landscapes but I could really use this functionality.
I hope that this is a feature request in the pipeline then. Being able to use a material to spawn objects would be insanely powerful for those of us creating procedural content based games. BTW, who do I have to murder to get my alpha application for fortnite approved?