POV-Ray : Newsgroups : povray.newusers : Rendering snapshots from Molecular simulations Server Time
30 Jul 2024 06:27:34 EDT (-0400)
  Rendering snapshots from Molecular simulations (Message 1 to 5 of 5)  
From: nomail
Subject: Rendering snapshots from Molecular simulations
Date: 12 Aug 2004 03:25:01
Message: <web.411b1a56e90e53b3fdeac3b80@news.povray.org>
I would like to start using POV-ray to render images of configurations from
my molecular simulations. I have been using VMD to do this, but I havent
been able to draw my simulation box around my atoms using VMD. Is there an
easy way to do this using POV-ray? I have the configuration in xyz format

Thanks in advance

Pradip


Post a reply to this message

From: Josh
Subject: Re: Rendering snapshots from Molecular simulations
Date: 12 Aug 2004 05:48:06
Message: <411b3cd6$1@news.povray.org>
> I would like to start using POV-ray to render images of configurations
from
> my molecular simulations. I have been using VMD to do this, but I havent
> been able to draw my simulation box around my atoms using VMD. Is there an
> easy way to do this using POV-ray? I have the configuration in xyz format


Do you mean draw a box?


Post a reply to this message

From: nomail
Subject: Re: Rendering snapshots from Molecular simulations
Date: 12 Aug 2004 17:00:00
Message: <web.411bd9fb33619d292f7515e00@news.povray.org>
Yes..draw a cube around 256 atoms (sphere). I have never used POV-ray
before..Sorry, if this sounds very trivial.

"Josh" <som### [at] microsoftcom> wrote:
> > I would like to start using POV-ray to render images of configurations
> from
> > my molecular simulations. I have been using VMD to do this, but I havent
> > been able to draw my simulation box around my atoms using VMD. Is there an
> > easy way to do this using POV-ray? I have the configuration in xyz format
>
>
> Do you mean draw a box?


Post a reply to this message

From: Josh
Subject: Re: Rendering snapshots from Molecular simulations
Date: 13 Aug 2004 04:51:26
Message: <411c810e$1@news.povray.org>
> Yes..draw a cube around 256 atoms (sphere). I have never used POV-ray
> before..Sorry, if this sounds very trivial.
>

box    {
        <-1,-1,-1>,
        <1,1,1>
    texture { pigment { White } }
            }

... will draw a white coloured box around co-ords -1,-1,-1 and 1,1,1

Change the co-ords to fit the area you want.


use "rgbt <1,1,1,.8>" instead of "White" to make the box partially
transparent


Post a reply to this message

From: Alain
Subject: Re: Rendering snapshots from Molecular simulations
Date: 13 Aug 2004 19:32:58
Message: <411d4faa$1@news.povray.org>
nomail@nomail nous apporta ses lumieres ainsi en ce 12/08/2004 16:58... :

>Yes..draw a cube around 256 atoms (sphere). I have never used POV-ray
>before..Sorry, if this sounds very trivial.
>
>"Josh" <som### [at] microsoftcom> wrote:
>  
>
>>>I would like to start using POV-ray to render images of configurations
>>>      
>>>
>>from
>>    
>>
>>>my molecular simulations. I have been using VMD to do this, but I havent
>>>been able to draw my simulation box around my atoms using VMD. Is there an
>>>easy way to do this using POV-ray? I have the configuration in xyz format
>>>      
>>>
>> <>
>> Do you mean draw a box?
>
A start is to put all of those atoms in an union. Then, you can use 
min_extent and max_extent to get the corners of the box that is to 
contain your atoms.
Something like:

#declare Molecule = union{... put your atoms here ...}
union{
    box{min_extent{Molecule},max_extent{Molecule} pigment{rgbf<1,1,1,0.8>}}
    object{Molecule}//not using pigment here: Assuming that your atoms 
are colour coded, blue=nitrogen, red=oxigen, black=carbon, white=hydrogen...
}

This have the advantage that the box is aotomaticaly sized to your 
molecule, and will follow if you change your data.

Alain


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.