const scene = new THREE.Scene()
//Mesh
const geometry = new THREE.SphereGeometry(3,64,64)
const material = new THREE.MeshBasicMaterial({
color: "#00ff83"
})
const mesh = new THREE.Mesh(geometry,material)
scene.add(mesh)
// Light
const light = new THREE.PointLight("0xffffff",1,5)
light.position.set(10,10,10)
scene.add(light)
//Camera
const camera = new THREE.PerspectiveCamera(45, 800/ 600)
camera.position.z = 20
scene.add(camera)
//Renderer
const canvas = document.querySelector('.webgl');
const renderer = new THREE.WebGLRenderer({canvas})
renderer.setSize(800,600)
renderer.render(scene,camera)```
#My Light isn't working the way its supposed to
49 messages · Page 1 of 1 (latest)
it doesnt even make a difference , if i comment out the light
why is this happening?
even with these
my object looks like this????
<@&994771348100501564> ?
This is not a role to be pinged for this purpose 🙃 see #off-topic
oh...
whom do i ping for help then?
this seems like a simple enough question
could any of u help, its killing me
Imk there is no role or person to ping for help, people will see your post and respond…
Did you refer the docs?
yes
Okay
this is the code for it in the docs
Is there any ambient light in your scene?
no its , point light
is it there by default?
No
cause i didnt add it in the code anywhere
Could you please share your code?
Okay, it’s the basic material
It doesn’t respond according to the light
its luminous by default?
okay , so what other material do u suggest
I think you should refer the docs, there are multiple material types you could use… I think everything except basic will give intuitive results with lights
okay i see
Hey you really shouldn't ping people for a help question unless you've talked specifically to them about your issue before you put the help question up.
well <@&994771348100501564> should only be pinged around 4 AM CET
so do not do that any more
unless it is the right time
OR ELSE
lol the above was meant for you
my fat fingers tapped the wrong reply button
Lmao
You don't ping anyone for help unless you've discussed the issue with them previously.
This ain't a help desk. People help out of the goodness of their hearts. They're not here to serve you or anyone else.
well technically they could ping @everyone - admins made sure it does not work
now or not?
fat fingers 😔