有没有3d软件可以给出场景元素的变换矩阵
我有一个 3D 模型,其中包含位置、紫外线、法线、索引信息。我需要将其放置在场景中并在渲染器中渲染它,该渲染器需要相机、灯光、几何图形及其所有转换。我有一些如何通过对相机、灯光属性和我已有的几何信息进行硬编码来成功显示模型。我找出了使模型适合视图中所需的相机和光线的转换,并通过试错法正确地照亮了它。但这很麻烦并且特定于这种特定的几何形状。我需要对相机、灯光和 3D 几何形状的一些转换进行硬编码,以获得令人满意的视图。是否有任何 3D 软件可以让我获取灯光、相机和几何图形的变换矩阵,以便在我的程序中使用这些值?
I have a 3D model which has position, uv, normal, indices info. I need to place it in a scene and render it in a renderer which expects camera, light, geomtery and all their transformation. I have some how displayed a model successfully by hardcoding the camera, light properties with the geometry info I already have. I figured out the transformations for the camera and light necessary to fit the model in the view and lit it properly by trial and error method. But that is cumbersome and specific to this particular geometry. I need to hard code some transformation for camera ,light and 3D geometries to get a satifactory view. Is there any 3D software from where I can get the transformation matrices of the light, camera and geometries to use those values in my program?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
感谢您的想法!我终于找到了我正在寻找的简单实用程序@: http://www.songho.ca/opengl /gl_transform.html
http://www.songho.ca/opengl/files/matrixModelView.zip
http://www.songho.ca/opengl/files/matrixProjection.zip
Thanks for the ideas! I atlast found that simple utiltiy I was looking for @ : http://www.songho.ca/opengl/gl_transform.html
http://www.songho.ca/opengl/files/matrixModelView.zip
http://www.songho.ca/opengl/files/matrixProjection.zip
任何 3D 软件都会在场景文件中保存所有必要的变换矩阵 - 它还应该做什么?猜猜相机应该放在哪里?
您应该尝试这种方法:
我建议尝试 Blender 因为它使用 Python 脚本语言 (docs) - 那将允许您可以完全自动化整个过程。
Any 3D software saves all the necessary transformation matrices in the scene files - what else should it do? Guess where to place the camera?
What you should try is this approach:
I suggest to try Blender because it uses the Python scripting language (docs) - that will allow you to completely automate the whole process.