3DS Max模型不会出现在Blitz3D中

时间:2016-11-06 01:10:34

标签: blitz3d

第一篇文章,我想,是的。我是Blitz3D的新手,所以我现在才学习如何将模型从3DS Max导入Blitz。这是代码:

Graphics3D 640,480,32,2
SetBuffer BackBuffer()

camera = CreateCamera()

light = CreateLight()

bottle = LoadMesh("bottle.3DS")
ScaleEntity bottle,0.1,0.1,0.1


End

我将模型文件和代码放在一个文件夹中,但是当我编译并运行代码时,它只是黑色。

1 个答案:

答案 0 :(得分:0)

由于ScaleEntity没有给你一个错误,模型确实似乎加载了。但是,默认情况下,实体创建为0,0,0,因此您可能无法看到瓶子,因为您的相机位于其中。尝试一下// Setting content type httpServletResponse.setContentType("you-content-type"); chain.doFilter(httpServletRequest, new HttpServletResponseWrapper(httpServletResponse) { @Override public void setContentType(final String type) { // Ignore any further attempts to change content type } }); 的内容,看看是否有帮助。

此外,如果这是您的整个代码,那么您错过了PositionEntity camera, 0, 0, -5RenderWorld;无论是在循环内,还是在Flip之后,都可以看到在程序关闭之前显示的内容。