472,333 Members | 1,092 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,333 software developers and data experts.

Three.js lighting problem

93 64KB
Hello! I'm trying to set up a scene in THREE.js using some different lighting sources, but the "floor" only reacts to AmbientLight (removed in three.js scene) and should be lit about the same as in the blender view. I've verified the normals on the model point outwards and the material has default blender material settings as THREE.MeshLambertMaterial.

Light settings:
Expand|Select|Wrap|Line Numbers
  1. const spotLight = new THREE.SpotLight('#ffffff');
  2. spotLight.position.set(0, 10, 0);
  3. spotLight.angle = Math.PI / 4.5;
  4. spotLight.intensity = spotLightIntensity / 2;
  5. spotLight.penumbra = 0.5;
  6. this.scene.add(spotLight);
  7. const spotLight2 = new THREE.SpotLight('#ffffff');
  8. spotLight2.position.set(0, 5, 0);
  9. spotLight2.angle = Math.PI / 7;
  10. spotLight2.intensity = 1;
  11. spotLight2.penumbra = 0.5;1505d2299138ef64a8fa667388a2e36419f
  12. this.scene.add(spotLight2);
Please state if any more information is needed.
Does anyone have any idea as of why?

Three.js scene:



Blender 3dview:



Default material settings:

Sep 30 '21 #1
0 5691

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Matthew Robinson | last post by:
Can anybody see what is wrong with this code? apparently i have an 'empty delimiter' on the line that sets $pos - can anybody see what is wrong with...
4
by: theo | last post by:
I'm having problems with 3column css (several rows), and am wondering if you guys might recommend a good solution. Try Opening these then stretch...
17
by: Dave | last post by:
Hi I'm making a 3D Engine which consists of the class C3DEngine. Part of this engine is a file loader, a class called CMeshLoader. I have made...
3
by: Adam Toline | last post by:
In reference to the following: http://www.bellecose.com/form.htm At the top of each column there is a box for "All". When one is checked I...
15
by: Paul T. RONG | last post by:
Hello, I am making a restaurant database (it is much more complicated than I thought before!), now it comes to the last stage and I come across a...
4
by: randy1200 | last post by:
I have a SideForm. If the use presses a button on the main form, the side form comes up by executing the following: SideForm sf = new SideForm()...
0
by: Sin Jeong-hun | last post by:
There's a sample project in the DirectX SDK that draws a revolving triangle. From it, I've written a simple program that draws a revolving box. The...
11
by: drumsticksplinter | last post by:
Hi, I'm quite new to all this so please forgive my lack of technical description. Project background: Basically I have had the vision of creating...
0
by: Now You Know | last post by:
Christmas Decor Residential Commercial decoration Lighting install Los Angeles http://christmaslightinginstall.blogspot.com/
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.