hi all,
I started using three.js and I’m really impressed on how easy it is to build things!
I do have a first version if my project running and it would be great to get some advice on specific topics but also general feedback.
I’m planning to publish a music video in the next few weeks and my idea is to embed a player for that video into a 3D house of cards, which the user can bring down while he’s watching the video.
Here is what I’ve built so far:
https://www.benzahler.ch/houseoft/index.html
User input so far is limited to zoom in/out using arrow keys.
Here are the things where I’m not sure if my current approach is good:
-
What is the best image format to use for the card material? currently I use SVG, but I understand that the vector properties of the svg are not preserved and the cards sometimes look quite blurry. Is there a best practice for both image quality and performance as to what image format should be used?
-
I notice that as I add more cards, CPU load is getting quite high. Apart from tweaking the cannon js parameters, is there anything that should be considered for a usecase as I have it?
-
I embed the video as an iframe from youtube using the css3drenderer, reasons for my decision was to reduce load on my server and also, views on youtube are important these days. Anything that speaks against that approach from your side?
Would be great to get some advice on what I can improve!
thanks,
ben