How to change the wallpaper from vanta waves to vanta net #255
-
Nice twist. Job well done firstly, I have tried to change wallpaper to vanta waves to vanta net. But copying dist vanta.net.min.js ( in vanta github) to the vanta.waves.min.js gives black wallpaper. I believe the problem is some waves variables doesn't return valid with dist net.min.js code. Should i have to change everything in config related to waves or is there much easy way to do it ? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Is there any errors in the console? With Vanta I had to upgrade it to work with the latest Three.js. Also the waves config settings might need changing. |
Beta Was this translation helpful? Give feedback.
-
No error when running server. Just black screen. Min js is from vanta github. |
Beta Was this translation helpful? Give feedback.
-
Now that I think of it, ya you would need to change quite a bit to have it run in a worker which is what it's trying to do. I got it working by removing |
Beta Was this translation helpful? Give feedback.
Now that I think of it, ya you would need to change quite a bit to have it run in a worker which is what it's trying to do. I got it working by removing
VANTA
from theWALLPAPER_WORKERS
constant so it never runs in a worker. Also invantaWaves/index.ts
you need to change references ofWAVES
toNET
. Finally I had to replace mythree.min.js
which is very slimed down, with a full version of r148. It could probably look nicer if I also tweaked the config, but I left it untouched as it runs.