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

Terrain RGBA splatmapping / steep slope physics? #22

Closed
Thundros opened this issue May 28, 2020 · 1 comment
Closed

Terrain RGBA splatmapping / steep slope physics? #22

Thundros opened this issue May 28, 2020 · 1 comment

Comments

@Thundros
Copy link

Thundros commented May 28, 2020

Hi @yandeu ! So i would like to beta test an RGBA splatmapped terrain. http://wiki.polycount.com/wiki/Splat this is an RGBA splatmap. and terrain slope physics is where the character slowly slides down to a stop when trying to climb very steep parts of the terrain.

Once again, please give yourself a huge pat on the back for doing this amazing work!

@yandeu
Copy link
Member

yandeu commented May 28, 2020

I added support for Slope Angles using the Physics Raycaster. Here is an example. (It will only work in the next release of enable3d, but you can already take a look at the source code)


Splat Maps are not included in three.js. You have to write custom shaders to implement it. Here is an example. Since you have access to every three.js function in enable3d, I guess you could implement it on your own studying the example. I'm not sure if I will implement a wrapper function for it. Maybe I will try it and publish an example on the enable3d website.

For now, I guess we can close this issue.

@yandeu yandeu closed this as completed May 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants