Display background image

Hello,
I was just wondering if it would be possible to add a new feature to the
new Avogadro that you guys are releasing in the near future?

With Avogadro 1.0.3, i can go to - View, Set background color, and i can
change the background color. But what i would love is the option to add a
background image from a JPG or PNG file on my computer. Would this be
possible?

The idea is that currently i can export the molecule image with a black or
white or red background for instance. But i would like to be able to draw
my molecule from scratch on top of a background image. I want my molecules
to “fit into” and match other chemical and molecular images i have produced
with other software. Then i would be exporting my background image with the
Avogadro molecule superimposed on top of the background image.

If your not too busy, this would be a nice feature. But i understand if
your too busy fixing other bugs.

Thank you,
John.

The idea is that currently i can export the molecule image with a black or white or red background for instance. But i would like to be able to draw my molecule from scratch on top of a background image. I want my molecules to “fit into” and match other chemical and molecular images i have produced with other software. Then i would be exporting my background image with the Avogadro molecule superimposed on top of the background image.

If your graphics card (and driver) are reasonably new, when you export an image as a PNG right now, it should have a transparent background. This is actually how I make most of my presentations.

Some of the code changes in mind for Avogadro 2.0 would make it much easier to set an image background in the application itself (or a gradient or some such). But it’s a good idea. The best way to make sure it doesn’t get lost is to submit to the feature request tracker:
http://sourceforge.net/tracker/?group_id=165310&atid=835080

Thanks and best regards,
-Geoff

Hi Geoff,
Yes, i currently have methods of removing the background color so i get a
transparent background. I tried exporting the files as SVG and EPS files
but it did not work for me to get the transparent background. I will try
again in a later.

But there is a specific reason i want the background image Geoff. I have
images of peptides and other molecules and they follow precise patterns and
shapes. I want to be able to “build” and “draw” precise molecules with
Avogadro on top of the other images. Geoff i cannot find any other chem
software that will allow me to “draw” molecules from scratch on top of
another image. Avogadro is extremely simple and flexible in allowing me to
draw the molecules i need. If i could only draw the molecules inside
Avogadro with the other image as the background. Then export the final
image.

As you suggested Geoff, i copied my original message to the feature request
area so the idea won’t get lost.

Geoff i also want to thank you and the other guys for the time, effort and
work you have put into Avogadro. Its beautifully simple software and its a
pleasure to work with it.

Thank you Geoff,
John.

On Sat, Jun 23, 2012 at 3:37 AM, Geoffrey Hutchison geoff.hutchison@gmail.com wrote:

The idea is that currently i can export the molecule image with a black
or white or red background for instance. But i would like to be able to
draw my molecule from scratch on top of a background image. I want my
molecules to “fit into” and match other chemical and molecular images i
have produced with other software. Then i would be exporting my background
image with the Avogadro molecule superimposed on top of the background
image.

If your graphics card (and driver) are reasonably new, when you export an
image as a PNG right now, it should have a transparent background. This is
actually how I make most of my presentations.

Some of the code changes in mind for Avogadro 2.0 would make it much
easier to set an image background in the application itself (or a gradient
or some such). But it’s a good idea. The best way to make sure it doesn’t
get lost is to submit to the feature request tracker:
Avogadro / Old Feature Requests

Thanks and best regards,
-Geoff


Live Security Virtual Conference
Exclusive live event will cover all the ways today’s security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


Avogadro-Discuss mailing list
Avogadro-Discuss@lists.sourceforge.net
avogadro-discuss List Signup and Options

Hi Geoff, Hi John,

Would like to bump this. We are trying to fit some Avogadro-built molecule to 2D images of molecules (e.g. from STM or AFM); we will profit greatly from such feature.

I will also happy to do some coding! Maybe a plug-in can be made to load background image onto Avogadro’s background?

Could anyone point me to the right direction?
Thanks loads!

Regards
Kelvin

Hmm, we can give it a try… You’d probably need to load up the image as a texture and draw a rectangle at the back of the scene…

I’m on a trip this weekend, but send me an e-mail and we can get something like this working in avogadrolibs

It’s probably useful for other things, since several programs can generate STM simulations from a 3D molecule / XYZ file.