+ 15

Why it's showing "three.perpectivephoto is not a constructor"(Edit : solved).Now it's saying three is not defined..

I'm trying to learn three.js.. and while working with this code I'm getting the error "three.perpectivephoto is not a constructor". I have included all core libraries which are necessary..but it's still showing the same..and this code runs in pc..but not in sl :( .I have seen many codes of three.js in sl..but this one is not supporting.. please help me if can figure out.. Edit: It's now saying three is not defined 😑 Thanks in advance! https://code.sololearn.com/WRphd9pOl2Mc/?ref=app

25th Oct 2020, 11:16 AM
Aditya
Aditya - avatar
4 Respostas
+ 12
Abhay there is no special library/doc required for perspectivePhoto constructor.. it's all included in three.min.js ..
25th Oct 2020, 11:34 AM
Aditya
Aditya - avatar
+ 12
I wanted to say it's in the official doc itself. I used PerspectivePhoto in place of camera since PerspectiveCamera was too not working... https://threejs.org/docs/index.html#manual/en/introduction/Creating-a-scene
25th Oct 2020, 11:46 AM
Aditya
Aditya - avatar
+ 2
EnCoDeR can you give a link for where is docs for perspectivePhoto constructor? Because I cudn't find one
25th Oct 2020, 11:21 AM
Abhay
Abhay - avatar
+ 2
EnCoDeR so how did you learned how to use PerspectivePhoto? From some YouTube video? Or were you a major contributor to three js and so you don't need an article on how to use it!
25th Oct 2020, 11:40 AM
Abhay
Abhay - avatar