sync on : sync rate 0
make camera 1
backdrop on 1 : color backdrop 1, 0
rem Make atom
for i=1 to 3
make object sphere i, 5
color object i, RGB(200,0,0)
next i
position object 1, 0,0,0
position object 2, 4,4,4
position object 3, -4,4,8
for i=4 to 6
make object sphere i, 5
color object i, RGB(250,250,250)
next i
position object 4, -4,-1,2
position object 5, 4,2,1
position object 6, 0,4,4
for i=7 to 9
make object sphere i, 3
color object i, RGB(0,250,250)
next i
offset limb 7,0, 100,0,0
offset limb 8,0, 0,150,0
offset limb 9,0, -200,-200,0
rem make atom
position camera 1, 100,200,-400
point camera 1, 0,0,0
DO
yrotate object 7, wrapValue(object angle y(7)+5)
xrotate object 8, wrapValue(object angle x(8)+5)
zrotate object 9, wrapValue(object angle z(9)+5)
sync
LOOP
hehe.. bad code.. but this is funny
.edit.
wrong sizes and distances.. electrons should be much more far away from nucleus..
.edit.
This is a more realistic size:
sync on : sync rate 0
make camera 1
backdrop on 1 : color backdrop 1, 0
rem Make atom
for i=1 to 3
make object sphere i, 5
color object i, RGB(200,0,0)
next i
position object 1, 0,0,0
position object 2, 4,4,4
position object 3, -4,4,8
for i=4 to 6
make object sphere i, 5
color object i, RGB(250,250,250)
next i
position object 4, -4,-1,2
position object 5, 4,2,1
position object 6, 0,4,4
for i=7 to 9
make object sphere i, 100
color object i, RGB(0,250,250)
next i
offset limb 7,0, 10000,0,0
offset limb 8,0, 0,15000,0
offset limb 9,0, -20000,-20000,0
rem make atom
set camera range 1, 1,50000
position camera 1, 1000,2000,-4000
point camera 1, 0,0,0
DO
yrotate object 7, wrapValue(object angle y(7)+5)
xrotate object 8, wrapValue(object angle x(8)+5)
zrotate object 9, wrapValue(object angle z(9)+5)
sync
LOOP
Note that I resized the electrons to 100 so you can see them..
It is still far from realistic..