Having problems with the various hologram effects. I have a hologram shaded sphere over another coloured sphere. If the two spheres stay in a static location and the camera moves all is fine: if the objects move it seems to 'break' the hologram and eventually all u get is the ghosted sphere. this is for yet another planet atmosphere project, if anyone has any better suggestions lemme know.
Use the mouse to control the camera(need a hologram shader and to make applicable changes to the code) and press 'a' to move the holo-sphere group 1000 units away
if check display mode(1024,768,32)=1 THEN set display mode 1024,768,32
sync on : sync rate 60
backdrop on
color backdrop 0
make object sphere 2,98,100,100
make object sphere 1,100,100,100
ghost object on 1
disable object zwrite 1
load effect "PhongHolo10.fx",1,1
set object effect 1,1
temp=make vector4(1)
position camera 0,0,0,-150
do
if inkey$()="a"
position object 2,0,0,1000 `this BREAKS IT.. goes all blue as you 'approach' new location
endif
set vector4 1,camera position x(),camera position y(),camera position z(),0.0
set effect constant vector 1,"EyePos",1
position object (1),object position x(2),object position y(2),object position z(2)
gosub movecam
sync
loop
movecam:
yrotate camera camera angle y() + mousemovex()*0.1
xrotate camera camera angle x() + mousemovey()*0.1
if mouseclick()=1 then move camera 0,10
if mouseclick()=2 then move camera 0,-10
return
i've tried phongholo10 and ninjamatt's holograms 10&11 all with the same result.
any way to fix the shader or have i done something awful with the code?