I've got a project where I need to be able to display video on all six sides side of a cube that moves and rotates in three dimensions, using Qt. I know the question is vague, but I'm completely new to graphics, so a high-level description of which classes I should look and how they should link together would be a lot of help. Should I use GLRenderer or the ordinary one? Is Qt even the right tool for the job?
What you could do, is use QtOpenGL to render the cube. Then you use video texturing.
Related
I am trying to implement a tool into my application. the tool would allow the user to plot a triangle meshes using the mouse. I have looked everywhere for a way to do this, tutorials, examples, etc and have not been successful. I have seen the FXyz library but that does not really simulate What I am trying to accomplish. The goal of the program looks as follows:
Use Case Sequence:
The user adds a png image to the 3D scene or drags it into the 3D scene using the mouse.
Once the image is being displayed the user would then be able to plot a mesh around the image.
Once the user has finished plotting the mesh. There would have to be a way to add the image being overlayed by the mesh as a texture to the mesh. The image should look the same after being added as a texture. Is this too hard or beyond the scope of what can be achieve in JavaFX?
Theoretically It would then be possible to drag the vertices of the mesh at draggable points and successfully applying transformations to the texture. Would this be possible?
Images showing what I am trying to achieve
As you can see maybe after plotting the mesh the points connecting the vertices can be dragged in order to manipulate or transform the shape of the mesh. If the mesh has a texture over it. would the image then also transform ?
Would this be possible with the TriangleMesh class that JavaFX has which by the way there is very little out there which explains how to use it and how the points, face points and texture points work. Very confusing =(.
Target End Result
My question is would the type of manipulation shown in the image above be possible in JavaFX? Can this sort of functionality be achieved using the TriangleMesh class or other similar class in JavaFX ? As you can see what I am trying to achieve is really image manipulation I would appreciate knowing if there is another better way to do this.
I unfortunately do not have any code I can share. I just cant seem to produce any regarding this task. I am not asking to be given code or for someone to solve the problem for me. I just want to see examples be guided into the right direction on how to do this and to know if it is even possible or should I just give up on it!
If you have read this far Thank you so much for your time I really appreciate it.
I have read your question till the end :-) In contrast to many people here you are at least providing a clear description of what you want to achieve. According to my own experience I would say that what you want to do is easily possible with JavaFX and the MeshView is the way to go here.
You can use your image as the texture for this mesh and you can distort the image by manipulating the vertices of this mesh. I have implemented part of your functionality myself for a project so I know that it works.
I want to develop a hair style app in adobe flex. In that ,the wigs should be placed in right position.
So i want to adjust the wigs in x and y directions.
Does anybody know how to stretch an image in x and y direction?
App Reference:
https://play.google.com/store/apps/details?id=air.MagicMirrorFree&feature=search_result
Thanks in advance
Take a look at the very good Transform Tool. I've used it myself and can highly recommend it.
you can put re-size handlers on pretty much anything, for example like this:
http://flexdevtips.blogspot.com/2009/03/resizable-containers.html
Hope that helps
If you want to develop it by yourself, you may have a look on the transformation matrix class. There is a very good tutorial about this:
http://www.senocular.com/flash/tutorials/transformmatrix/
Otherwise, you may use existing library:
as Richie_W mention, Transform Tool is a good one, the following is Transform Tool Developer Guide:
http://www.senocular.com/flash/tutorials/transformtool/
The following link is Transform Tool using in flex:
http://www.sephiroth.it/weblog/archives/2007/07/transformtool_modification.php
TransformManager is also another one:http://www.greensock.com/transformmanageras3/
but this is a commercial one.
Does somebody know if there is a library (or something like a library) that allows me to create text annoted vector graphics (preferably on the basis of svg or raphael) with the feature to pan over these graphics and zoom into them and, when I zoom into, shows more and more details, or, when zooming out, shows less details so that the image is not cluttered with details that are irrelevant for a particular zoom level.
I am aware I could do the panning and zooming with setting a corresponding viewport, but this would still show details that I don't want to see on a zoomed-out level.
Thanks for any pointers.
SVGPan is a small script for this pourpose:
http://code.google.com/p/svgpan/
demo page:
http://www.cyberz.org/projects/SVGPan/tiger.svg
There is a solution provided here using Raphael
http://dashasalo.com/2011/04/13/svg-image-zooming-and-panning-with-raphaeljs/
I'm trying to develop a card game with Flex, and I was wondering if there's a way to create an horizontal list (the cards that I have in my hand) having the elements overlapped, like you can see in this example made with openflux:
http://www.ryancampbell.com/flex/StackListExample/StackListExample.html
the thing that's missing here is the possibility to swap the cards with drag and drop.
Any ideas on what I could do to get a similar effect with an horizontallist based component?
If you are using Flex 4, its a pretty straightforward custom layout.
some links to get you started.
RIA
Adobe TV
Yo
I was looking at a 3D layout the other day for Five3D (an opensource 3d api), and saw an example of a Card game/layout that may give you some inspiration:
http://www.danielenstrom.com/solitaire/
I need to draw Line, Circle, and rectangle by mouse drag on canvas and then i need to to move and resize the drawn shapes.
How i can perform this in flex as i am new on this platform.
Please suggest me the method or refer any example with source to make it understand to me.
Please Help.
Thanks in Advance.
There is no such native feature in Flex. But, there are a couple of options, commercial and not:
http://www.rogue-development.com/objectHandles.html (free)
http://www.flashcomguru.com/components/flex_whiteboard/whiteboard_demo/ (payed)
You can do it by hand, if you wish, it's not very hard. I advice you to use Degrafa (http://degrafa.org/) for the actual drawing since it is way easier than native drawing API and it is opensource.