load 2 images together

Have jReality programming problems or questions? Post them here.
Post Reply
capri333
Posts: 9
Joined: Thu 19. Apr 2012, 15:49

load 2 images together

Post by capri333 » Thu 26. Apr 2012, 14:43

Hello,

i want to load 2 images in jreality to get one picture.

I allready found that the method loadFile(File file) read the file and returned a SceneGraphComponent and then
this SceneGraphComponent will be set as Content in the Content object.

Also i read the first file and the second file.

And now i try to create from both SceneGraphComponents only one, that then
will be set as Content. But i don't know, how?

Is this the right way? Can anyone help, please.

Anke

User avatar
steffen
Posts: 186
Joined: Fri 16. Jun 2006, 13:30
Location: TU Berlin
Contact:

Re: load 2 images together

Post by steffen » Thu 10. May 2012, 00:41

just create a SceneGraphComponent and set the two components that you have loaded as its children. Then set this SceneGraphComponent as the content.

capri333
Posts: 9
Joined: Thu 19. Apr 2012, 15:49

Re: load 2 images together

Post by capri333 » Thu 10. May 2012, 09:27

Hello steffen,

i have done, what you describe.

But now the two images are side by side.
What i want is, merge both images to one image.

For example: loading a image of a screw and a image of a screw nut -> show the image, where the srew and the screw nut are combined.

capri333
Posts: 9
Joined: Thu 19. Apr 2012, 15:49

Re: load 2 images together

Post by capri333 » Mon 21. May 2012, 11:22

Thanks to steffen,

he has given me the clue to use the class MatrixBuilder and now i have found a solution.

Anke

Post Reply