+ 3
Three.js problem [ solved ]
This was my first try with three.js. I came to know about a element which is pointlight. I tried to create a cube and pointlight object. But as it is shown everywhere on web I didn't got the result. Here is code. What is the thing I am doing wrong ? https://code.sololearn.com/W1uJmfBEQoCp/?ref=app
8 Antworten
+ 4
Refer this code 丹ⓨㄩک廾
https://github.com/mrdoob/three.js/blob/master/examples/webgl_lights_pointlights.html
Just improvise the lights section, that's it.
+ 3
What exactly you want to do using PointLight?
+ 2
Ooh sorry Shobhit :) can you please explain in detail. I am not getting my fault still.
+ 1
Well I think it will create some lighting effect as normal light do. That's what I want Shobhit :)
Ok let me tell what type of effect I acctuly want https://threejs.org/examples/#webgl_lights_pointlights
+ 1
Well I thought about shadow and the lighted portion of cube Runtime Terror
If the point light is on any side then it should make that face lighten and opposite face darken
+ 1
Ooh Runtime Terror problem is solved now acctuly all elements do not interact with light so I need to to crete such element