i'm developing a strategic 2D game in JavaFX 2 and i need some basic physic and path finding for my game.
Would you plz give some tips and useful link to implement this 2.
tanx
Some people have integrated Box2D+JavaFX using a Java port of the Box2D physics engine.
Michael Henrichs created a JavaFX library for Inverse Kinematics.
Anton Epple created a small game framework for JavaFX which includes path finding for objects displayed within a tile engine.
The best place to and get tips and discuss these topics is probably the java-gaming.org forums
Related
I'm trying to create a 2D physics game, where there are structures that are held by breakable joints (that can be broken from compression or tension) that work similarly to the 2001 indie game, Bridge Builder. Is this type of physics possible in Gamemaker?
Yes, sure. GMS1.4 (and GMS2 as well) contains Box2D implementation.
For details please check the manual - physic world section.
Im interested in working on JavaFX for the first time. I have a project i am working on, in which i dont have a lot of time to complete. I was wondering if javaFX would be a great platform to animate and make a 3x3 rubik's cube game? With all the mouse movements and rotations, Without having to work out alot of linear Algebra.
Jelinek provides public domain sample algorithms and source code for creating a Rubik's cube in Swing/AWT. You could start with that and try converting it to JavaFX, possibly using a Canvas as the drawing surface.
The 3D capabilities in JavaFX 2.2 are quite limited. There are some samples you could look at in the Ensemble application to give you an idea of what it is capable of. There is a tutorial on the Ensemble 3D xylophone which should help provide much of the basic knowledge required to build your application.
Java 8 will have a much more comprehensive 3D feature set. Such an application would likely be much easier to implement in Java 8 than the current JavaFX 2.2 release. Java 8 is not due for final release until September 2013, but you can download a preview version of Java 8. The preview version does not currently fully implement all of the planned 3D features for Java 8, but does implement significantly more than the JavaFX 2.2 release, especially around concepts like 3D transformations, normal calculations, vector logic, etc which would be required for the implementation.
Is there a 3D polygon in JavaFX (similar to QuadArray in Java3D)?
If there isn't what is the simplest way to create one? Creating two triangles?
If there is no simple way than should I use 3rd party 3D library? But that would beat the idea of using JavaFX in the first place.
I would like the abbility to switch between faces, wire-mode and verts-only-mode.
3D in JavaFX 2.x is pretty limited.
You can create a 3D polygon by creating a 2D polygon and performing a transform on it.
There are some 3D samples in the Ensemble application which demonstrate how to do this (with source code). There is a simple cube sample here.
With JavaFX 2.x, you could implement switches between face view, wireframe view and vertex only view with little difficulty. Other things like complex lighting, effects, mesh loading, realistic shading etc, would be more difficult and would be better implemented in JavaFX 8.
JavaFX 8 will have a much more robust and useful 3D implementation. You should evaluate the capabilities of the current JavaFX 3D demos in Ensemble as well as the proposed JavaFX 8 3D feature set against your requirements and other 3D libraries such as lwjgl to determine what will best fit your needs. Note, JavaFX 8 is not scheduled for final release until September 2013. Over time the proposed JavaFX 8 3D features will be added to the Java 8 pre-release.
I did create a simple 3D software renderer for a JavaFX ImageView which I might open source if interested - it renders bitmaps onto an ImageView though - not directly to the JavaFX scene graph primitives. A similar thing, but using a hardware renderer via the Java3D API was created by Interactive Mesh. Unlike JavaFX 8, it has the advantage of being available today.
Interoperability between JavaFX 2 and the main sets of Java bindings for low level 3D APIs (JogAmp and its main competitor quoted by jewelsea) is already partially implemented. When it is ready, you will be able to use the very latest version of Java3D (1.6.0, the instructions to install it are here) or any scenegraph supporting JOGL 2.0 including Ardor3D, JMonkeyEngine 3, Xith3D, ... There are already some applications mixing JOGL 2 and JavaFX in the same window but not in the same panel, for example Energy3D.
Experimental 3D shapes in JavaFX 2 are available in the jfx3D project at google code, also see my blog at designjk.
Jim Kay [jimbo8]
https://wikis.oracle.com/display/OpenJDK/3D+Features
JavaFX 8 includes a full 3D library. I currently am working with it, but it can be buggy + it's not even fully ready for dev's yet, or even close for the general release.
I want to use PCL(point cloud library) to implement cube or rectangle detection for any size in a scene.
Can anyone give me some direction?
You may want to take a look at this PCL tutorial or, in general, at all the techniques implemented in the pcl::recognition module.
On the PCL users mailing list archive (here), there is an older but yet useful discussion about simple object recognition. For simple objects, as in your case, you may consider using Sample Consensus for segmenting the model inside your scene point cloud.
Trying to find an easy to use application for making diagrams. The application will be used for drawings of remodel projects, so mainly decks and houses. I am trying to help a novice Mac user who just received his contractor's license find a simple draw program that will work for simple diagrams.
Is Google Sketchup too complex? http://sketchup.google.com/ seems ideal if they can cope with the 3D part
Google Sketchup might be nice if you're doing remodeling. It's a pretty simple and free program that lets you build 3d models of houses, decks and the like, and it has a better learning curve in my opinion than big commercial modeling programs.