Why is screen blank in output? [Solved] | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why is screen blank in output? [Solved]

So i am following some tutorial and according to that I should see a red sphere by now ,but nothing is visible so why is that ?Ty in advance! https://code.sololearn.com/WgIgdnkEl9fi/?ref=app

12th Aug 2020, 4:07 PM
Abhay
Abhay - avatar
6 Answers
+ 1
i can see its using an older version https://cdnjs.cloudflare.com/ajax/libs/three.js/58/three.min.js by now in cdnjs its already r119. looks like thats the cause of error texture i change it to r119, the scene shown black and no error hmm.. maybe because there are no lightsource in the scene ? or camera facing the wrong way ?
12th Aug 2020, 4:53 PM
Taste
Taste - avatar
+ 2
Abhay might be a browser problem .
12th Aug 2020, 5:20 PM
Oma Falk
Oma Falk - avatar
+ 2
Taste ty it was missing light source
12th Aug 2020, 5:42 PM
Abhay
Abhay - avatar
+ 1
i see an error texture is not supported
12th Aug 2020, 4:11 PM
Oma Falk
Oma Falk - avatar
+ 1
Oma Falk It says S3TC compressed textures not supported ,is that referring to MESH?
12th Aug 2020, 4:13 PM
Abhay
Abhay - avatar
0
Taste ty ,i am very new to three js as well as 3d ,so I am not sure the camera is facing the wrong way or not but as I mentioned the tutorial I am following said it should show sphere by now ,I will try to see from other resources to know what I might be doing wrong ,
12th Aug 2020, 5:19 PM
Abhay
Abhay - avatar