English 中文(简体)
Glu Project not working... 如果该物体有Z=1.0f,并且该物体被扩至(0.01f,0.01f,0.0f),那么我不得不将哪些参数转至Glu项目?
原标题:GluProject not working... If the object haves Z=-1.0f and it is scaled to (0.01f,0.01f,0.0f) which parameters I have to pass to GluProject?

直到现在,我一直使用<代码>glu Project,展望投影机和一个以低左侧(-1,-1,0)的屏幕为中心的可变广场。 I zoom 平方调整Z轴。

例如,I zoomed the平方到Z=-5,我打电话glu Project,附有开放式GL物体参数(-1,-1,0)以了解该平方垂直的窗口X,Y的位置。 罚款。

但现在,我改变了我的结构,现在,我不使用Z到zoom,我向动物群伸出援手。 我的广场为Z=1.0f,最初将其缩小到(0.01f,0.01f,0.0f)小面积。

哪些X、Y、Z数值是我不得不通过<条码>glu Project? Im通过-1,-1,0和glu Project使我错失了x,y out PutCoords Value, (-101.774124,-226.27419)

最佳回答

<Again, 并再次:code>glu Project与开放式GL转变管道(当然有开放式GL s matrices and viewport)相同。 因此,无论你向开放式利比里亚市场投送的是什么vert,都是你必须列入<条码>glu项目/代码>的vert。

如果你使用斜面(-1,-1,0)使多角能够使用,那么你必须使用<条码>glu Project。 任何其他转变(无论是翻译、规模、轮换还是任何转变)都来自转变矩阵。 但是,如果你确实使用斜面(0.01、0.01、0),那么你就必须将这一条列入<代码>glu Project。

• 确保你完全了解开放式GL转变管道(,这个问题可帮助)和glu Project的工作,然后再继续使用这一管道,并向你认为错误结果的每一项投入提出问题。

问题回答

暂无回答




相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签