How do I stop multi-mesh from render both sides
Asked Answered
Z

5

0

Im using a multi-mesh to render grass how do I stop it from rendering both sides

Zimbabwe answered 8/12, 2022 at 23:56 Comment(0)
O
0

Multi mesh only renders what you are giving it. Are you giving it "both sides"? I'm kind of confused here.

Dynamically clipping geometry can be done, but can also be slow. You might be better off just leaving it rendering under the ground, probably better performance.

Or just model it the way it is supposed to display so you don't have to hide anything.

Offset answered 9/12, 2022 at 6:50 Comment(0)
F
0

assuming what you are instancing are premade 'batches' of grass you'd ideally modify them so there is non intersecting the ground. Also Spinode just released a plugin for scattering things such as rocks and grass, might be worth checking out. And there's also another scattering plugin that has existed for a while now.

Fetch answered 9/12, 2022 at 1:15 Comment(0)
Z
0

Fetch how would I do the first option I don't want to use plugins

Zimbabwe answered 9/12, 2022 at 6:37 Comment(0)
O
0

Multi mesh only renders what you are giving it. Are you giving it "both sides"? I'm kind of confused here.

Dynamically clipping geometry can be done, but can also be slow. You might be better off just leaving it rendering under the ground, probably better performance.

Or just model it the way it is supposed to display so you don't have to hide anything.

Offset answered 9/12, 2022 at 6:50 Comment(0)
F
0

Zimbabwe I don't want to use plugins

Fair enough, though you are just unnecessarily over-complicating your own life reinventing the wheel.

Fetch answered 9/12, 2022 at 7:5 Comment(0)
O
0

Well I typically don't like plug-ins or dependencies because they add risk. Like you may update to a new version of Godot and your game no longer works.

For something like this, I don't think it would be terribly hard to do manually.

Offset answered 9/12, 2022 at 7:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.