小编maz*_*maz的帖子

MATLAB: How to make camera light follow 3D Rotation

I have come into a problem recently when trying to rotate 3D objects. I am building a GUI and I have a separate figure where an object is plotted. In the figure, I allow the user to use MATLAB's built-in rotate button to move the object around. However, I am unable to have the light also follow the rotation as it seems to be fixed on one part of the object. To create the light, I am using

c=camlight('right');
set(c,'style','infinite'); …
Run Code Online (Sandbox Code Playgroud)

3d matlab user-interface lighting rotation

4
推荐指数
1
解决办法
1724
查看次数

标签 统计

3d ×1

lighting ×1

matlab ×1

rotation ×1

user-interface ×1