Closed zeffii closed 9 years ago
How did you manage to get the lines without the surface? The logic is: Use atomic positions and atomic charge to calculate ptential in the molecular volume (by PDB2PQR and APBS): this generates a file .dx; select relevant points on molecular surface (MonteCarlo procedure); Draw lines in both directions starting from selected points; End lines when inside the surface (in one direction) abd at value =0 (in other direction)
I imported the pdb, then opened the EP panel and pressed 'Show EP'. I wasn't aware that EP relied on the surface mesh (unless what you see in the image to the right is incorrect, it doesn't rely on surface being explicitly created ) it's a part of the code I haven't looked at in depth yet.
The surface must be created, as it is necessary for the selection of lines. However, it might not be necessary that it is imported into Blender, and shown. (as in the case you just show)
right, it is probably done behind the scenes in some temporary file..
Looks great! The lines are supposed to be paths for animated particles: they must flow in the direction Positive' to Negative, in order to provide information on the direction of the field (the intensity of the field is suggwsed by the N of lines, i.e. of flowing particles). In this case, the DNA has a quite strong negative charge (due to all the phosphates), and most particles will look like needles atracted towards the DNA, especially the orange spheres
larger render, could use more subdivisions on the curves
( i like to render occasionally to keep me motivated )
Good! I also tried to render EP, (not in cycles, just in the 3D viewport), and I notice that some curves never get the particles on them. It seems to be the case also in your example.
OK, another thing to look into!
using hair
cool!
This example illistrate very well the difficulty of showing the Electrostatic potential: the origin of the line is located at a charged point, almost always inthe protein (or DNA). It can be ewither positive or negative. The lines will run a) towards another charge of opposite sign (if present at reasonable distance, it can also be another protein); in this case thw line bends when it 'senses' the other charge; b) towards the space around it (which is water with some salts dissolved); in this case theline is just about straight; c) If there is another protein with a charge of the same sign, the two will repel each other, and the lines will make a turn to run parallel.
The example with hair is very intersting, because it looks really nice, but gives a (wrong) impression of being generated at the (positive) end, especially visible in the right upper corner. It is a case of line generated by a negative charge. If you do this with DNA, you will see even more this effect.
Here the node material colour gradient is taken from the hair radius at each point over the length of the hair. For effect I exaggerated the difference in base-width vs tip-width. red at the base (origin of the curve) blue at the tip., all values are arbitrary here. ..just explorations.
The updating of the molecule for EP in a moving protein works OK, see https://vimeo.com/119557005 pw EP_157
vimeo says the pw is incorrect
Sorry, now it is correct
looking forward to seeing cycles render these..