问题标签 [hud]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
ios - 在缩小图像尺寸时显示 HUD
我有一个应用程序,用户使用相机拍照,然后选择使用照片。调用以下方法:
在此方法中,我检查图像的NSData
长度,如果数据 (Kb) 大小太大,则调整实际图像的大小,然后再次检查。这样,我只缩小少量以保持最高质量/尺寸的图像,而不是特定尺寸的 w/h。
问题 我试图在“图像缩放”发生时向用户显示 HUD。HUD 目前没有显示,这是我尝试过的。
我正在将 HUD 添加到 self.view 但它没有显示?如果图像缩放在后台线程上完成并且HUD在主线程上更新,我是否也可以考虑这里的线程。我不确定何时确定某些部件是否应该在不同的线程上?
java - Opengl在3D上绘制2D不起作用
我正在尝试在 OpenGL 中的游戏上绘制 HUD;我决定使用一些纹理并将它们应用到 2D 场景中。我正在使用 Java 和 LWJGL。这是代码:
当我运行它时,3D 部分被正确渲染,但我的纹理没有任何迹象。我记得调用该方法,所以这不是一个可能的答案;纹理也正确加载,我已经检查过了。有谁能够帮我?
android - AndEngine怎么放2个OnScreenControl?
我想在屏幕上放 2 个模拟 OnScreenControl 来控制两个不同的东西。
当我只放 1 时,这非常有效。但是当我放另一个时,第一个刚刚塌陷,消失了。
我尝试使用 HUD,但我认为我做错了什么
这是我的代码:
但只有第二个出现在屏幕上。
我怎样才能把2放在屏幕上?
谢谢 !
ios - iOS7风格的带有取消UIButton的progressHUD
我正在寻找一个可以取消我的上传过程的 ProgressHUD 框架。你能给我一个提示吗,拜托!
你的拉斐尔
andengine - BoundCamera 与 TMXTiledMap 和 HUD 与 AnalogOnscreenControl
我将 BoundCamera 与 TMXTiledMap 一起使用,并使用 AnalogOnScreenControl 并将其附加到 HUD。但是当我将地图滚动到另一个位置时,控件不能再使用了,请帮助我!谢谢!
我的代码:
有没有人请帮帮我!
ios - 如何将 UIActivityIndicator 添加到 drawRect
我想知道如何将活动指示器(在 HUD 中间)添加到这个 drawrect 方法(我正在尝试创建一个带有活动的 hud)
谢谢!
ios - 在将值发布到服务器之前呈现 HUD
嗨,我正在使用此代码将 post 值发送到服务器,但我希望 HUD 在请求完成期间出现,因为它仅在结束请求时出现。
ios - 动画完成后难以移除 HudView
我做了一个井字游戏。如果游戏以平局结束,动画 hudView 会出现几秒钟。然后游戏重新开始,这就是我出现问题的时候。它不再响应我点击屏幕绘制“X”或“O”。我的怀疑是 hudView 仍然存在。我尝试了不同的方法来删除它,但没有运气。
和动画:
在完成块中,我尝试了以下操作:
在我的所有这些都被调用的 ViewController 中,我尝试过:
到目前为止,我没有尝试过任何工作。任何帮助将非常感激。
java - Tracking objects in a 3D environment with 2D HUD icons
I am attempting to have a 2D HUD which has icons that track the location on the screen of 3D objects behind the HUD in a 3D environment.
Reasoning: Sometimes you cannot see a 3D object (too far away or off screen) but you still want to know where it is.
Issue: 3D scene is using a perspective matrix to transform it, giving it depth (z-axis), the HUD is strictly 2D (xy-plane). Because of the depth, the 2D HUD cannot properly track objects when they are farther/closer away.
What I want: A way to get a 2D Vector [(x,y) pos] of where to put an icon so that it is centered where the 3D object in the background would be.
Example of all objects in an xy-plane (z=0):
You can see that as the objects get farther away from the center, the Icon (circle thing in white) is more off center.
Example of objects with increasing depths (farther from center == deeper):
You can see that the HUD thinks 3D objects are in the same plane still.
Pseudo-Code:
.getPos() gets the Vector (x,y,z)
#xA;My Perspective Matrix:
#xA;c++ - OSG osg::MatrixTransform
我正在尝试在我的应用程序的平视显示器(HUD)中绘制指南针。我已经成功地将场景中的指南针渲染为纹理几何体。问题是当我尝试使用 osg::MatrixTransfrom 和 osg::Matrix 类旋转指南针时,它会将指南针转换到场景中的错误位置。这是代码:
}