Visualization of POVRAY file

12 views
Skip to first unread message

SOMASUNDARAM P

unread,
Jun 17, 2026, 7:58:37 AMJun 17
to Vampire Users
Hi vampire users, 
I have generated a povray file using util/vdc/vdc --povray, which produces spins.pov. This spins.pov generates the 3D view of spins, but I need to cut the image to plot the cross-sectional image of spins and show the inter-layer spins as well. Can anyone help with this? Thanks in advance.  

Mohammad Abu Jasem

unread,
Jun 17, 2026, 8:33:04 AMJun 17
to Vampire Users
Hi,

By fixing the camera position (such as: vdc --input-file vdc-input --povray --camera-position 0.1 0.1 1 --camera-look-at 0.0 0.0 0.0 --camera-zoom 0.9 --slice 0 1 0 1 0 0.2), you can get your desired result.  

J. 

Tiago Silva

unread,
Jun 17, 2026, 8:35:13 AMJun 17
to Vampire Users
Hi there, 

You can try these:

util/vdc/vdc --xyz --slice 0.0,1.0,0.0,1.0,0.0,0.5 #xmin, xmax, ymin, ymax, zmin ,zmax)
util/vdc/vdc --xyz --slice 0.5,1.0,0.0,1.0,0.0,1.0 # vertical slice 
--remove-material [material1,material2]

You can also change parameters inside spins.pov: 

#declare LX = 0; // camera looking position
#declare LY = 0;
#declare LZ = 0;
// camera location
#declare cam_theta  = 0.000497946; // angle from z in degrees
#declare cam_phi    = 43.7546; // angle from x in degrees
#declare cam_radius = 1382.08; // distance from origin

I hope this helps, All the best!!

gabo...@gmail.com

unread,
Jun 22, 2026, 12:37:33 AM (12 days ago) Jun 22
to Vampire Users
After running the bilayer simulation at [1], I tried using:

--slice xmin xmax ymin ymax zmin zmax

I think it turned out quite well as seen by No Slice, Bottom Layer, and Top Layer image files (except zmin probably needs adjusted a little as it looks like one layer of spins from Material 1 showed up in the Material 2 Top Layer).

No Slice
noslice.png

Bottom Layer
bottomlayer.png

Top Layer
toplayer.png

username@computername:~/bilayer$ ~/vampire/util/vdc/vdc --povray
|------------------------------------------------------------|
|              Vampire Data Converter for v5+                |
|------------------------------------------------------------|
Processing snapshot 00000000
Processing snapshot 00000001
username@computername:~/bilayer$ povray spins
...
username@computername:~/bilayer$ mv spins00000001.png noslice.png
username@computername:~/bilayer$ ~/vampire/util/vdc/vdc --povray --slice 0 1 0 1 0 0.5
...
username@computername:~/bilayer$ povray spins
...
username@computername:~/bilayer$ mv spins00000001.png bottomlayer.png
username@computername:~/bilayer$ ~/vampire/util/vdc/vdc --povray --slice 0 1 0 1 0.5 1
...
username@computername:~/bilayer$ povray spins
username@computername:~/bilayer$ mv spins00000001.png toplayer.png


Kind Regards,
Gavin
VAMPIRE user
Reply all
Reply to author
Forward
0 new messages