Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Procedural grass doesn't spawn on collision materials #3082

Open
1 task done
Buddy99-40 opened this issue Jun 19, 2023 · 2 comments
Open
1 task done

Procedural grass doesn't spawn on collision materials #3082

Buddy99-40 opened this issue Jun 19, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@Buddy99-40
Copy link

Describe the bug

I noticed recently with 1.6 grass was fixed on cols that were replaced, however this isn't the case with objects with createObject. This is particularly frustrating for me and I'm sure a few others who are working on custom maps and relying on importing custom models and utilizing createObject to create them in the world.

Steps to reproduce

  1. Download this resource and start it assetify_library.zip
  2. Go to 0,0,0 and look for the grass square.
  3. Make sure grass is enabled in graphics settings, you can see it does not spawn.

Version

1.6

Additional context

mta-screen_2023-06-19_11-26-26
mta-screen_2023-06-19_11-30-42

Relevant log output

No response

Security Policy

  • I have read and understood the Security Policy and this issue is not security related.
@Buddy99-40 Buddy99-40 added the bug Something isn't working label Jun 19, 2023
@patrikjuvonen patrikjuvonen changed the title Procedural grass doesn't spawn on collision materials. Procedural grass doesn't spawn on collision materials Jun 20, 2023
@CrosRoad95
Copy link
Contributor

  1. let's add function to manually spawn single grass patch, you set position, scale, maybe texture and other
  2. add some function that tells mta to automatically spawn grass on selected object, probably build in gtasa function doesn't take an account rotated objects. server owners maybe should be able to control density, grass type, materials, size ect.

@CrosRoad95
Copy link
Contributor

i have created branch where i tested potential way to spawn grass whatever you want, it crashes, maybe someone can figure it out
https://github.com/multitheftauto/mtasa-blue/compare/master...CrosRoad95:feature/grass?expand=1
From what i have seen, it probably need to be first queued, then called when all other grass is rendered

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants