so I have a threeJS scene, and I have some spheres (multimaterial) added. I have also a directional light added :    this.light = new THREE.DirectionalLight( 0xFFFFFF, 1 ); this.light.position.set( 2, 10, 2 );   this.light.castShadow = true; this.lig...
I have a really simple scene which has one .dae mesh in it, and a 7000*7000 plane underneath the mesh. I'd like it to be lit by a high SpotLight, so the mesh throws a shadow on the ground. But, something seems to be broken! No matter how high I p...
What I'm trying to achieve is adding a text-shadow to an emoji with the text-shadow color being the most prominent color in the emoji.  I know there are JavaScript libraries that identify the most prominent color in images, but since the emoji is...
Why is not every cube in my loop casting a shadow?  I work with a directional light all of the cubes should cast shadows. But for some reason, it stops after 5 or so columns.  let dirLight = new THREE.DirectionalLight(0xFFFFFF, 1.5); dirLight.positio...
I have made a Threejs project, where I dynamically create a ground from perlin noise. Here is the code:   createGround() {  const resolutionX = 100 const resolutionY = 100 const actualResolutionX = resolutionX + 1 // plane adds one vertex const actua...
i want to give overlay and shadow effect using jQuery.i have difficulty in using it...
I was making a utility to quickly create CSS drop shadows, and realized that this can only be done in IE with IE filters. However, the Shadow Filter uses Direction instead of (x, y) coordinates:  filter: "progid:DXImageTransform.Microsoft.Shadow(...
I'm trying to assign a variable to itself in a function, and if the variable has the same name as an argument to the function it doesn't seem to work, but does if they're not the same name. A code example shows this more clearly.  Is this...
I have several object in a scene. And I want them moving on a wide plane, which will receive shadows. If I use only one point light or a very large directional light the shadow of a object when it moved to the corner will become very rough (rough sha...
Im trying to get the shadows right using Babylonjs. Without any joy :p  Here is the resources on shadows I have found    Babylonjs wiki: Shadows framework for building 3D games with HTML5 and WebGL   but I can't find anything on "element on e...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.