光穿透网格 [英] Light penetrating through meshes

查看:33
本文介绍了光穿透网格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个房间,里面有一些家具.我使用定向光作为太阳来投射门窗的阴影,但光线穿透墙壁并落在每个物体上.有没有办法避免光线穿透墙壁?我已经阅读并发现 Threejs 中的灯光不遵循物理定律,但我只是好奇.

I have a room containing some furniture. I am using a directional light as a sun for casting shadows of windows and doors but the light penetrates through walls and falls on every object. Is there a way to avoid penetration of light through walls? I have read and figured out that lights in threejs doesn't follow physical laws but I am just curious.

推荐答案

听起来像是光从物体上散射开来.可能会被房间外的东西或房间/窗框内的东西弹开.有带有谷仓门的灯,用于控制光束的形状.有一些标志可以让您有选择地创建阴影 - 类似于谷仓门,但不直接连接到灯光上.通过限制有多少光线照射到反射过多光线的物体上,您将有更多的控制权.如果这只是一个戏剧场景而不是真实的房间,您还可以修改房间内面向光源的对象的表面.

Sounds like light is scattering off of somethings. Could be bouncing off of things outside the room or things within the room/window frame. There are lights with barn doors for controlling the shape of the light beam. There are flags which allow you to selectively create shadows - similar to barn doors but not directly attached to the light. By limiting how much light is hitting things that reflect too much light you will have more control. If this is just a theatrical setting and not a real room, you could also modify the surfaces of the objects within the room that are facing the light source(s).

这篇关于光穿透网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆