I just came along and asked me: Is there any script or plugin to import molecular coordinates to blender? If not, there should be one. I’m sick of importing large DXF-files and crunched VRML-files via Crossroads and stuff.
Anyway, to may opinion there should be a ScientificBlender. This could open this program to scientific illustration and animation.
Any link, piece of code, suggestion, opinion, and discussion would be great.
Supplement: Reply 5
This matter becomes even more actual, because the new free.blender.fund logo is a Coronene molecule.
Using VRML-files is the thing I’d like to avoid. It’s like visiting your neighbor via the moon.
My problem is that I hardly can code.
With my very first attempt on coding I finally came to the point that I could import a molecular coordinate file. The result is a single vertex for every atom. With halo texture this gives a nice new representation of molecules.
What’s needed ?
For those of you not familiar with molecular coordinate files they are quite simple text files.
For example carbon monoxide:
XXX
X C x-cordinate y-coordinate z-coordinate X X
X O x-cordinate y-coordinate z-coordinate X X
…additional coordinates of the same molecule from molecular dynamics calculations to create animations
(X are additional parameters specific to the progamms they are from)
The primary tasks are
-placing a blender sphere for any atom coordinate
-linking every two coordinates which are appart a cetain value by a blender tube or cylinder
-determinig the radii of the spheres by the atom type (C, O, …)
-determinig the textures of spheres and cyclinders by the atom type
Seceondary tasks would be
-placing any object to the atom coordinates (for artistic reasons)
-option to set cyclinder and sphere diameters equal or different and/or adjust them (for different representations: ball and stick, cyclinders, spacefill,…)
-for animations: assign the molecular coordinates to a single frame and placing additional molecular coordinates to subsequent frames.
Second, I remembered there is an python based open source molecular modeling package, MMTK http://starship.python.net/crew/hinsen/MMTK/.
Revisiting this page, I found a link to PyMol http://pymol.sourceforge.net/, a quit new, also python based, open source molecular visualization package.
The latter has nice features at first sight, but it is seems to be strongly sientific orientated and does not have the more funny and more artistic capabilities of blender.
Question: Do you think it does make sense to link this somehow to blender ? How costy this would be ?
if the pickled version if documented, it should be very easy and fast to load in Blender. If I get a structure done with the MOL format, it would be even easier to add other files format afterward.
It runs.
First impression is very good, or lets say it in german: blendend (splendid)
Have to play with it for a while, but I’m propably away the next two days.
So, be patient.
Meanwhile, this is worth some extra Euros to the foundation.
Hope you agree with this.
Next, I’ll try to add the other input format, and representation style. The animation part will probably be a little thougher (basicly, there’s two way to do it. One cheap but slow, one though but faster.).
There seems to be some interest in this matter for other people, too.
So I thought about launching a little webpage.
The idea is first to post theeth script, other science related scripts, collect related stuff, display some pictures, add some molecule files which may be of interest for non chemists. For example, Buckyballs, nanotubs, belt like molecules etc. which could be useful for some futuristic architecture or starships etc.
What do you think ?
There are a lot of scientist out there having an enormous amount of data, many of them can code.
If blender could reach those who have some interest in 3D art or educational things this could open up further resources.
Is this thread still alive???
I’m a bioinformatics student. I’d definetly like .pdb import in blender.
Google wasn’t of much help. I have some basic experiance with blender.
Could you please post the script with a short howto???
I’m a noob u see:confused: