VMD-L Mailing List
From: John Stone (johns_at_ks.uiuc.edu)
Date: Wed May 24 2017 - 10:25:36 CDT
- Next message: Karol KASZUBA: "RE: MDFF time line ccc score"
- Previous message: Ryan McGreevy: "Re: MDFF time line ccc score"
- In reply to: Dallas Warren: "Re: Drawing hollow circles"
- Next in thread: Peter Mawanga: "Re: Drawing hollow circles"
- Reply: Peter Mawanga: "Re: Drawing hollow circles"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Hi,
I would recommend using the "GlassBubble" material
(with Display | Rendermode set to GLSL), and draw the atoms
using the "VDW" representation. That will give you a circular
outline for each atom without having to do anything special.
To draw a 2-D circle otherwise is trickier than one might guess,
because the circle(s) must be made to align in plane(s) orthogonal
to the viewing direction, and this/these would have to be recomputed
as the view direction changes. I think that using the "GlassBubble"
material (or a variation thereof) is much simpler and more convenient.
If you want to ensure a perfectly circular edge on the "GlassBubble"
material, use the Orthographic projection mode,
turn off all lights except for light 0, and then issue the
command "light 0 pos {0 0 1}", and you should get the sort of
results you're after.
Cheers,
John Stone
vmd_at_ks.uiuc.edu
On Wed, May 24, 2017 at 02:25:35PM +1000, Dallas Warren wrote:
> 2 dimensional rings, or a 3D sphere?
>
> For the latter, as already mentioned, you can change the material that
> a representation like VDW is made with, allowing you to see through
> it. There are a number of preset materials. Additionally, something
> like the Surf can be rendered as a wireframe, rather than a solid
> surface.
> Catch ya,
>
> Dr. Dallas Warren
> Drug Delivery, Disposition and Dynamics
> Monash Institute of Pharmaceutical Sciences, Monash University
> 381 Royal Parade, Parkville VIC 3052
> dallas.warren_at_monash.edu
> ---------------------------------
> When the only tool you own is a hammer, every problem begins to resemble a nail.
>
>
> On 24 May 2017 at 11:58, Peter Mawanga <peter.mawanga.lagos_at_gmail.com> wrote:
> > Thanks Karteek
> >
> > I had not phrased my question correctly. I want to represent atoms with
> > hollow circles instead of filled ones. I haven't been able to find a way to
> > do that.
> >
> > On Wed, May 24, 2017 at 10:37 AM, Karteek Kumar <karthik3327_at_gmail.com>
> > wrote:
> >>
> >> Try with this:
> >>
> >> draw material Transparent
> >> draw sphere { 0 0 0 } radius 20.0 resolution 500
> >>
> >> Hope this works!!!
> >>
> >> Karteek
> >>
> >> On Tue, May 23, 2017 at 8:02 PM, Peter Mawanga
> >> <peter.mawanga.lagos_at_gmail.com> wrote:
> >>>
> >>> Hello to all
> >>>
> >>> Is there any way I could draw hollow circles in VMD? Please let me know.
> >>>
> >>> --
> >>> Cheers
> >>> Peter
> >>
> >>
> >
> >
> >
> > --
> > Cheers
> > Peter
-- NIH Center for Macromolecular Modeling and Bioinformatics Beckman Institute for Advanced Science and Technology University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801 http://www.ks.uiuc.edu/~johns/ Phone: 217-244-3349 http://www.ks.uiuc.edu/Research/vmd/
- Next message: Karol KASZUBA: "RE: MDFF time line ccc score"
- Previous message: Ryan McGreevy: "Re: MDFF time line ccc score"
- In reply to: Dallas Warren: "Re: Drawing hollow circles"
- Next in thread: Peter Mawanga: "Re: Drawing hollow circles"
- Reply: Peter Mawanga: "Re: Drawing hollow circles"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]