threejs
threejs
threejs
Would you like to react to this message? Create an account in a few clicks or log in to continue.


WebGL and Three JS dedicated forum. Here we can discuss about Three JS 3D library.
 
HomeGalleryLatest imagesSearchRegisterLog in

 

 Foolish question about light

Go down 
3 posters
AuthorMessage
WebForce

WebForce


Posts : 22
Points : 30
Reputation : 0
Join date : 2017-02-07

Foolish question about light Empty
PostSubject: Foolish question about light   Foolish question about light Icon_minitimeTue Feb 07, 2017 10:08 am

I know this is a very foolish question, but I see few examples in three.js where they created sunlight using a directlight so, when do you think should I use directlight, or spotlight or pointlight?

Thank you so much in advance for any answer!
Back to top Go down
Admin
Admin
Admin


Posts : 46
Points : 78
Reputation : 3
Join date : 2017-02-06
Location : London, Milan

Foolish question about light Empty
PostSubject: Re: Foolish question about light   Foolish question about light Icon_minitimeTue Feb 07, 2017 10:37 am

WebForce wrote:
I know this is a very foolish question, but I see few examples in three.js where they created sunlight using a directlight so, when do you think should I use directlight, or spotlight or pointlight?

Thank you so much in advance for any answer!

There are no foolish questions Webforce. This is basically what i do:

- Directight: produces a "directional" lightbox with same intensity from the beginning to the end
- Spotlight: simply imagine a torch or a concert spotlight. It's nice and able to blend lightspot from origin to the end of a specified range.
- Pointlight: just like a bulb.
Back to top Go down
https://threejs.forumotion.com
SamCorny

SamCorny


Posts : 40
Points : 56
Reputation : 0
Join date : 2017-02-06
Location : NYC

Foolish question about light Empty
PostSubject: Re: Foolish question about light   Foolish question about light Icon_minitimeTue Feb 07, 2017 11:48 am

WebForce wrote:
I know this is a very foolish question, but I see few examples in three.js where they created sunlight using a directlight so, when do you think should I use directlight, or spotlight or pointlight?

Thank you so much in advance for any answer!
Hi WebForce, you've seen DirectionalLight in the making sunlight because this is the best light that is going to distribute his power everywhere in the scene.
If you have to create interior environment it's better to use other type of light.
Back to top Go down
Sponsored content





Foolish question about light Empty
PostSubject: Re: Foolish question about light   Foolish question about light Icon_minitime

Back to top Go down
 
Foolish question about light
Back to top 
Page 1 of 1
 Similar topics
-
» Updating Directional Light
» Reflection question

Permissions in this forum:You cannot reply to topics in this forum
threejs :: WEBGL and Three JS Library :: Discussions about WebGL coding via Three.js-
Jump to: