为什么OpenGLES可以拉伸我的3D模型? [英] Why OpenGLES stretch my 3D Model?

查看:94
本文介绍了为什么OpenGLES可以拉伸我的3D模型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Blender中创建了一个简单的3D模型,并将其导入到iPhone SDK的OpenGLES中.导入的模型在大多数情况下都没有问题,但是从随附的照片链接(photobucket)可以看到,OpenGL正在将模型扩展到超出其预期比例的范围.圆柱体制成卵形,蹲下的矩形体制成高,等等.我是OpenGL的新手,所以请启发我:为什么OpenGL(ES)会拉伸我的3D模型,并且有哪些故障排除步骤?

I created a simple 3D model in Blender, and imported this into OpenGLES for the iPhone SDK. The model imported with no problems for the most part but as you can see from the included photo links (photobucket), OpenGL is stretching the model beyond its intended proportions. The circular cylinders are made ovular, the squat rectangular body is made tall, etc. I'm a novice concerning OpenGL so please enlighten me: Why would OpenGL(ES) be stretching my 3D model and what are some troubleshooting steps?

图片(em)(请自己在新窗口中打开链接)

PICS (pls open links in a new window yourself)

在Blender中建模的乐高积木
在搅拌机中建模的乐高积木
在OpenGLES中渲染(拉伸)的乐高积木
在OpenGLES中渲染(拉伸)的乐高积木
在OpenGLES中渲染(拉伸)的乐高积木

Lego Brick Modeled in Blender
Lego Brick Modeled in Blender
Lego Brick Rendered (Stretched) in OpenGLES
Lego Brick Rendered (Stretched)in OpenGLES
Lego Brick Rendered (Stretched) in OpenGLES

推荐答案

也许您在Blender中的对象的比例之一不同于1,则可能无法导出(例如,如果您仅导出网格物体,而不是Blender对象) ).

Maybe your object in blender has one of its scales different from 1, it may not be exported ( for instance if you only export the mesh, not the blender object ).

在Blender中,您可以在对象模式下使用Alt S->清除比例"清除比例.

In blender you can clear scales with Alt S -> Clear Scale while in object mode.

这篇关于为什么OpenGLES可以拉伸我的3D模型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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