#My Light isn't working the way its supposed to

49 messages · Page 1 of 1 (latest)

grave salmon
#

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)```
#

it doesnt even make a difference , if i comment out the light

#

why is this happening?

#

even with these

#

my object looks like this????

grave salmon
#

<@&994771348100501564> ?

paper nexus
grave salmon
#

whom do i ping for help then?

#

this seems like a simple enough question

#

could any of u help, its killing me

paper nexus
#

Imk there is no role or person to ping for help, people will see your post and respond…

paper nexus
grave salmon
paper nexus
#

Okay

grave salmon
paper nexus
#

Is there any ambient light in your scene?

grave salmon
#

i literally commented out the light

#

and it still looks like this

grave salmon
paper nexus
#

Yes, I think it’s the ambient light

#

That’s giving this

grave salmon
paper nexus
#

No

grave salmon
#

cause i didnt add it in the code anywhere

paper nexus
#

Could you please share your code?

#

Okay, it’s the basic material

#

It doesn’t respond according to the light

grave salmon
paper nexus
#

You need to use some ther materials

#

Yes

grave salmon
paper nexus
#

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

odd oasis
#

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.

hasty kettle
#

so do not do that any more

#

unless it is the right time

#

OR ELSE

hasty kettle
#

my fat fingers tapped the wrong reply button

paper nexus
#

Lmao

odd oasis
# grave salmon whom do i ping for help then?

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.

hasty kettle
#

well technically they could ping @everyone - admins made sure it does not work

odd oasis
#

now or not?

hasty kettle
#

fat fingers 😔

odd oasis