使用 java 的 2D 模拟器的合适平台
我必须做我的最后一年的项目,我计划使用视觉模拟器来模拟它。所以我必须创建一个基本的模拟器,并且该程序将在 java 中运行。但我有一个问题,不知道用什么来创建模拟器。我应该使用 jmonkey 还是 java2D 或者 java 3D。我想要的是一个基本的二维模拟器。请帮帮我。如果它是基于java的那就更好了,因为我使用java进行所有开发,
谢谢,
ps:-我计划在恐慌情况下对建筑物内的人体运动进行模拟。所以我需要的是一个 2D 视图,可能是一座 2 室建筑,带有门和一些代表人的点。因此,当模拟开始时,人(点)必须相应地离开建筑物。我需要的是如何创建 UI/模拟器。就像某种 API。
I have to do my final year project and I'm planning to use a visual simulator to simulate it. So I have to create a basic simulator and the program would be run in java. But I have a problem as to what to use to create the simulator. Should I use jmonkey or java2D or java 3D. What I would want is a basic 2d simulator. Please help me out. It would be better if it's java based as I do all my development using java
thanks,
ps :- Im planning to do a simulation on human movement within a building in a panic situation. so what i would need is a 2D view of maybe a 2 room building with a door and a few dots to be represented as people. So when the simulation starts the people(dots) must go out of the building accordingly. What i need is how to create the UI/simulator. Like some kind of an API.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果我理解正确的话,你需要的是一种绘制 2D 内容的方法。我猜想 java (swing) 的绘画功能对你来说就足够了,OpenGL 包装器或类似的东西可能有点过头了。
寻找“Graphics2D、Swing、Animation”...
以下是一些起始链接:
If I understand correctly what you need is a way to paint 2D content. I would guess that the painting capabilities from java (swing) would be sufficient for you, an OpenGL wrapper or something like that may be overkill.
Look for "Graphics2D, Swing, Animation" ...
Here are some starting links:
“视觉模拟器”是指图形/绘图引擎吗?
它可能符合也可能不符合要求,但我是 Greenfoot 的开发者之一:
http://greenfoot.org/
...这实际上是一个 IDE,但它还包含一个 2D 图形框架适合简单的游戏和模拟。它是开源的,因此如果有必要,您可以撕掉您需要的部分(当然,只要您遵守许可条款!)。
By "visual simulator" you mean graphics/drawing engine?
It may or may not fit the bill, but I'm one of the developers of Greenfoot:
http://greenfoot.org/
... which is really an IDE, but it also includes a 2D graphics framework suitable for simple games and simulations. It's open source so if necessary you could rip out the parts you need (as long as you abide by the license terms of course!).