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

Reimplement 3D grass similar to other games (th2x, th4) #128

Open
DCxDemo opened this issue Apr 15, 2023 · 0 comments
Open

Reimplement 3D grass similar to other games (th2x, th4) #128

DCxDemo opened this issue Apr 15, 2023 · 0 comments
Labels
DLL An issue related to d3d8.dll graphics An issue related to graphics rendering pipeline level editor An issue related to level editor suggestion The proposed feature is open to discussion

Comments

@DCxDemo
Copy link
Collaborator

DCxDemo commented Apr 15, 2023

Currently grass objects are hardcoded into BSP file and toggled via kill/create, this also means every level tdx file stores a copy of all grass layers to be shown (kinda same in th4 though).

Possible solution:

  • pre bake various known grass variants from th2x, th4 in separate shared tdx files
  • mark bsp materials as grass, store grass height param
  • generate extra mesh at runtime, auto detect amout of layers by loading proper tdx file
  • grass tdx path can go to level loading struct, if no grass tdx given, can omit grass routines entirely

Texture naming should follow the same convention, like grass<layerNumber_2_digits>.png, this way can swap grass files and keep it compatible. It would also make it as easy as if (GrassEnabled) RenderGrassObjects() without additional scrits on QScript side.

@DCxDemo DCxDemo added level editor An issue related to level editor DLL An issue related to d3d8.dll suggestion The proposed feature is open to discussion graphics An issue related to graphics rendering pipeline labels Apr 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DLL An issue related to d3d8.dll graphics An issue related to graphics rendering pipeline level editor An issue related to level editor suggestion The proposed feature is open to discussion
Projects
None yet
Development

No branches or pull requests

1 participant