PDA

View Full Version : Camera: simple



stisoas
Dec 13 2006, 08:07
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_objet1 = _this select 0
_cam = &#34;camera&#34; camcreate &#91;0,0,0&#93;
_cam cameraeffect &#91;&#34;internal&#34;, &#34;back&#34;&#93;

; point the camera at the object1, and place it 150m to the object1s left,
; 45m to his front and 120m above the ground
_cam CamSetFOV 0.50
_cam camsettarget _objet1
_cam camsetrelpos &#91;-150,45,120&#93;

_cam camcommit 0

; fade in from black over 2 seconds
titlecut &#91;&#34; &#34;,&#34;BLACK IN&#34;,2&#93;

; wait for 2 seconds for the fade to complete
~2
; wait two seconds
~10

; fade out over 2 seconds
titlecut &#91;&#34; &#34;,&#34;BLACK OUT&#34;,2&#93;
~2
camDestroy camera
camDestroy _cam

exit [/QUOTE]

my camera isnt destroy at end of script. screen is black at infinite.

raedor
Dec 13 2006, 08:11
Add a<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">titlecut &#91;&#34; &#34;,&#34;BLACK IN&#34;,2&#93;[/QUOTE]just before the exit.

stisoas
Dec 13 2006, 09:17
i mean, camera isnt destroy with that &#33;
i&#39;m freezed on the camera view.

Messiah
Dec 13 2006, 09:43
try this instead:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_cam cameraeffect &#91;&#34;terminate&#34;, &#34;back&#34;&#93;
camdestroy _cam[/QUOTE]

maxqubit
Feb 4 2007, 00:04
try this instead:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_cam cameraeffect &#91;&#34;terminate&#34;, &#34;back&#34;&#93;
camdestroy _cam[/QUOTE]
Search was my friend:) (I had the same prob as topic poster)

Thx Messiah, it works&#33;