Analog and digital graph/ - java

I got three breakout boards form spark fun.
and i wanted to test them out.
something that i can visualize like a moving graph.
do you have any suggested links or anything I can reference?
suggestions are greatly appreciated!
. i just want to have something simple like a line just going across on a graph
similar to this to test them :)
Best video codec to encode analog graph information / AVI

Umm, a graph of what exactly? I would suggest instead you grab a few LEDs and play with making them turn on/blink as your first project.

That would depend on which UI toolkit you are using (AWT, Swing, SWT). For SWT, you may want to look at SWTChart.
I have also used JFreeChart with good success.

Related

Best way to display scalable graphics as icons in JavaFX?

I am making a desktop app using JavaFX as the GUI Framework. I wan't my app to scale at any DPI, so I want sharp icons whether the app is run on a 1024x768 or 4K screen. In HTML achieving this is pretty easy with SVG, however I have not found a way to display scalable graphics directly in JavaFX.
What is the best way to achieve this? The app will obviously contain many icons, so I need it to be light and fast. Frankly, I haven't found anything close to what I want searching Google.
Thanks for your help!
Here is a library that you might want to have a look at:
JavaFXSVG
In addition to mipa's answer, I have similarly solved my problem using svg2fxml, available here: https://tomsondev.bestsolution.at/2012/08/22/svg-to-fxml-converter-as-commandline-util/

Can you import Spriter Pro 2d rigged sprites to LibGDX?

as it says, I've read online about Spine being imported over to LibGDX. I'm using Android Studio to develop a game and using the LibGDX framework. But my game requires 2D rigged animation than the pre-rendered models so I'm using Spriter Pro. But I want to know how do I import what I make from Spriter Pro to LibGDX so I can use what I make from there to develop my game on the LibGDX framework.
and if anyone could elaborate, couldn't a 2d animation with lots of frames be just as efficient as a 2d rigged animation? I dont see the pros and cons for both, just that 2d animation could take up alot of time to make
This Library might work for you
I'm currently trying to implement this library in my own project but I'm still having strange problems as seen below:
problem
I hope it helps and please contact me if you get it implemented in libGDX without this problem.
edit: sorry Xoppa, did not see your comment
In addition o the already mentioned https://github.com/Trixt0r/spriter repository you may want to try out https://github.com/blueacorn/libgdx-spriter-demo for some simple ready-to-go implementations of the necessary loaders and drawers. The readme includes an easy tutorial for quick results.

Rubik's Cube solving API in Java

I'm currently building a robot which solves a Rubik's Cube. I use an Android phone to scan the cube and I want to solve it in Android too. Is there a library which can solve a Rubik's Cube?
Thanks in advance
There is a VB 6.0 source code on this page: http://www.dutchthewiz.com/vb/games/
Porting the algorithm to Java will not be that difficult.
The problem comes in what type of cube you are doing? 2x2, 3x3, 4x4, 5x5 etc. Each of those will use the same algorithm to switch corners and edge pieces, however the trickier part will come with the center blocks.
http://www.wrongway.org/cube/solve.html is a good site to go to, you might be able to talk to the author about his algorithms.
http://www.swinburne.edu.au/ict/videos/media/Rubiks_cube_robot_480X270.html is another interesting site.
Don't be afraid to talk to people who have developed these ideas and solutions. They are sometimes willing to help you design yours.
Check out:
http://sourceforge.net/projects/rubikcube3x3pac/

Java Face Recognition Advices

I am supposed to compare two pictures whether they belong same person or not. I have not worked on face recognition in Java, so could anyone suggest me an example code or an article to do this?
Assuming that you are aware that Java in itself doesn't have anything to do with facial recognition, and that you're hopefully asking for a Java API/library for face recognition, check this SO thread, which lists a few options such as Cybula and OpenCV.

Best way to get started on simple 3D user interfaces using Java?

I'm writing a time management application and I have an idea for presenting timelines and todo items in 3D. Visually, I imagine this as looking down a corridor or highway in 3D, with upcoming deadlines and tasks represented as signposts - more important items are larger and upcoming deadlines are nearer.
I want to do this in Java, however I have no idea how to begin. For example, I would like to be able to render text and 2D graphics (dates, calendars etc) on the floor/walls of the corridoor, as well as on task items. The tasks themselves could be simple blocks. However examples of 3D code I have seen all look to operate on a very low level, and what I can't figure out are the appropriate co-ordinates to be using, or how the user would be able to interact with the view by selecting items with the mouse (for example clicking an expand or info button to get/edit task properties with the usual swing components).
Is there any higher level API I could be using, or example code that does this sort of thing? Any other ideas for how best to approach this problem?
edit: removed Java3D requirement - I just need to do this in Java.
To be perfectly honest, most "clever" user interfaces are ineffective for a number of reasons:
They favor complexity (for the sake of coolness) over simplicity and usability.
They are likely to be totally unfamiliar to the user.
You have to implement them yourself without some library having done the hard work for you.
I think the interface you describe runs the risk of falling into this trap. What's wrong with the current interface? Won't it be really hard to get an overview due to foreground stuff getting in the way? Now of course you could take it a step further and zoom out/rotate to get an overview but that complicates things.
Having said all that, if you can make it easy to use and really slick, then it can make an application. Users will have a lower tolerance for failure in "fancy" UIs, so perhaps this isn't the best first 3D project.
I do think there is a need for more examples geared towards visualisation rather than games.
To be honest, having tried both, if you use JOGL instead you'll find there's tonnes of OpenGL examples to copy that sort of thing from, and you won't have to code around the limits of the scene graph Java3D gives you. I tried Java3D a couple of years ago in a simple wireframe viewer, and it was such a pain to get the camera control right and the rendering anywhere near OK that I gave up on it.
I've found Pro Java 6 3D Game Development to contain very good code examples.
Here's a code example of 3D text, from NeHe Productions!, check the "DOWNLOAD Java Code" and "DOWNLOAD JoGL Code" at the end of the example.
On a side-note, I was very impressed with LWJGL which makes you write in a very similar way to straight-forward OpenGL.

Categories