Home   Help Search Login Register  

Author Topic: Blanco's Logicam  (Read 2198 times)

0 Members and 2 Guests are viewing this topic.

Gooner861

  • Guest
Blanco's Logicam
« on: 05 Aug 2004, 17:53:11 »
I'll ask stuff about this in here instead of Mac's mission beta thread.

Well to start off, WOW, that demo mission showed me so much stuff that i didnt have a clue about. Some of the shots cud add so much to peoples cutscenes. I suggest everyone to take a look at this, its amazing.

Difficult though to understand looking at in properly. One thing i dnt understand why u hve to put the name of the object to follow? I thought u wud just stick the camera on the object and play around with the numbers, i dnt really know why u have to "follow" something else  ??? .

Like this for example:

[_camera,jeep1,[0,1,2.1],jeep2,[0,3,2.1],0.7] exec "logiccam.sqs"

Titletext ["Roof Jeep1 follow jeep2\n[_camera,jeep1,[0,1,2.1],jeep2,[0,3,2.1],0.7] exec ""logiccam.sqs""","PLAIN DOWN"]

Why do u have to put jeep 1 following jeep 2 in the code?


Nice Work

Gooner

Offline Blanco

  • Former Staff
  • ****
Re:Blanco's Logicam
« Reply #1 on: 05 Aug 2004, 19:49:37 »
It's in the readme, but I know... it's bad English  :-\
I know what you mean, but I really can't explain it to you in English, it's too technical.

Ask Macguba to explain it to you, he've used it with succes, meanwhile I gonna look for somebody who can translate my Flemish instructions into decent English.

Sorry.



Search or search or search before you ask.

Gooner861

  • Guest
Re:Blanco's Logicam
« Reply #2 on: 05 Aug 2004, 22:34:29 »
Ur english was fine  ;D . Honestly i wudnt of known that it wasnt ur first language. The readme was written fine although it is a little bit difficult to understand cos of its complexity.

No worrys  ;D

Gooner

Offline Blanco

  • Former Staff
  • ****
Re:Blanco's Logicam
« Reply #3 on: 06 Aug 2004, 18:52:50 »
I submitted logicam in the editor depot / pending

http://www.ofpec.com/editors/list.php?show=pending

Take a look here : http://www.ofpec.com/editors/browse.php?browsewhat=2&category=2_12

Gooner, I was suffering from a bad headache yesterday, too much OFP I guess... :)
After one OFP-less evening I'm seeing things a bit more clear...  :D

Forget this :
Code: [Select]
Titletext ["Roof Jeep1 follow jeep2\n[_camera,jeep1,[0,1,2.1],jeep2,[0,3,2.1],0.7] exec ""logiccam.sqs""","PLAIN DOWN"]
It was just a way to describe the camera you see atm on screen with the parameters... Nothing more nothing less.
I thought it was a good idea, sorry if it confuses you.


 
« Last Edit: 18 Aug 2004, 18:10:39 by Blanco »
Search or search or search before you ask.

Gooner861

  • Guest
Re:Blanco's Logicam
« Reply #4 on: 06 Aug 2004, 22:43:37 »
Oh rite lol ok i get it now   ::)   ;D .

Thanks for clearing that up. I think im getting the hang of it now. Good tute by the way.

Quote
too much OFP I guess...

You can never have enough OFP  ;D , its the greatest , well Call Of Duty is pretty good  ;D .

Cheers

Gooner

Gooner861

  • Guest
Re:Blanco's Logicam
« Reply #5 on: 17 Aug 2004, 16:48:54 »
Hi again,

Just about to starting making my intro for my mission. I was just looking at ur script for ur demo and was just wondering wot:

startglcam = false

does and if its necessary.

Cheers

Gooner

junkie-xL

  • Guest
Re:Blanco's Logicam
« Reply #6 on: 17 Aug 2004, 17:02:25 »
I think it stops moving the gamelogic that this script uses in order to focus its innovating angles


Offline Blanco

  • Former Staff
  • ****
Re:Blanco's Logicam
« Reply #7 on: 17 Aug 2004, 17:40:33 »
startglcam = false

is a bolean to exit the script but the camera itself is not destroyed.

Btw , yesterday I did something really cool with logiccam.
I attached a camera to the tail of plane and it followed an incoming missile... nice effect.   :)




« Last Edit: 17 Aug 2004, 17:51:22 by Blanco »
Search or search or search before you ask.

Gooner861

  • Guest
Re:Blanco's Logicam
« Reply #8 on: 17 Aug 2004, 21:29:48 »
Ok thanks alot  ;D .

Another thing  ;D , i've been trying to get an inside shot of an M113 so i've been playing around with the numbers to give sumthing like:

_camera, jeep[180,0,1],( forgotten wot the nxt part was  ;D)
 
The numbers are right beacuse i do have the camera kinda inside it, but its kinda like the cargo holds invisible and it goes striaght threw the M113 and all u can see is the ground if u get me.

Another thing, i've seemed to have lost the tutorial bit of ur download, i understand wot the first set of numbers do but the next set of numbers i dnt seem to know wot they do, i've played around with sum of the numbers but they dnt seem to do much.

_camera s1[ understand these numbers ], s1 [ dnt know wot these do ]

Much appreciated

Gooner
« Last Edit: 18 Aug 2004, 13:03:40 by Gooner861 »

Offline Blanco

  • Former Staff
  • ****
Re:Blanco's Logicam
« Reply #9 on: 18 Aug 2004, 17:51:11 »
It's hard to tell what the parameters are for an inside shot of M113 without testing it in OFP.
But I can give it a try...

It depends what inside shot you want...

Do you want a shot for the soldiers in cargo, or the driver, gunner position?
Do you want a sideshot or one taken from the from the rear or back?
Or even a diagonal shot?

Anyway...Lets say you want a cargocam, camera is positioned in front of the soldiers in cargo and pointed to the rear.
First You need to know where the centerpoint is of M113.
I guess it's somewhere behind the gunner.
Aware the centerpoint is not always exactly in the middle, I'v noticed for  boats it's a bit to the right side.

The first parameter is the name of your camera, in most cases _camera

Then the name of you M113 : lets say APC1

Then the offsets of your "camposlogic" or the logic that's created for the position of the camera.
The camposlogic is a name I invented :-)

With offset I mean :

- Direction of the camera relative to the vehicle
- Distance measured from the centerpoint of the vehicle
- Heigt of the camera

1 - direction

Taken from the tutorial : 0 is in front of the vehicle, 180 is to the rear, 90 is right, -90 is left. And all the possible directions between offcourse.    

2 - Distance

Let me explain it in another way...

Imagine there is a invisible pole in the middle of your vehicle with an attached cord on it with on the end the gamelogic.
The lenght of that imaginary cord is the distance.

3 - Height

Height of the camera, should be obvious


So for our M113, this could be :

_camera,APC1,[0,0.2,2]...

The camera is positioned 20cm in front the centerpoint of the vehicle, 2 meters high.

Now we need a second gamelogic, the "camtargetlogic" (also a word I invented)
In logiccam the camera is not directely pointed to the vehicle, but always directly to the camtargetlogic, with the result of camera showing parts of the vehicle
So... the camera should look to the rear : direction is 180
Distance of the camtargetlogic (agian measured from the centerpoint of the vehicle)  is not that important, but don't make it to far,sometimes it causes a swaying effect.
Lets say 3 meters.
The height is the same as the height of the camposlogic:  2m

So the parameters could be :
[_camera,APC1,[0,0.2,2],APC1,[180,3,2],0.7]] exec "logiccam.sqs"

The last paramter is the zoomfactor,(CAMSETFOV)  0.7 is default. If you wanna make a closeup, adjust that number.
These paramters could be completely wrong, like I said I'm telling you this without testing it in OFP, but I hope you got the point.

Also, I'm using the name of the vehicle twice.
I did that so you are able to place the camposlogic on the roof of a car following the a soldier patroling along the street. (just one example)

Take a look at this :

First place a jeep on the map and name it "jeep", then place a soldier not to far away from the jeep and name him "soldier".

[_camera,jeep,[0,0.73,1.2],soldier,[0,0,1.8],0.7] exec "logiccam.sqs"

With this code the camera is positioned on the hood of jeep, following the soldier.

Lets take a closer look to this part :

[0,0,1.8]

The direction of the camposlogic is 0, aswell as the distance.
The direction is not important here because the distance is 0 anyways, the camposlogic is always positioned at the centerpoint of the soldier.
When you use 1m in front of the soldier the camera will sway unpredictable when the soldier changes his direction.

These parameters do exactly the same because the distance is always 0.

[180,0,1.8]
[157,0,1.8]
[-50,0,1.8]


The height is height of the soldier, about 1.8m

My camera is showing the ground? why?

It's possible when the camposlogic and camtargetlogic is at exact the same position.

Like this : [_camera,APC1,[0,2,2],APC1,[0,2,2],0.7]] exec "logiccam.sqs"


Ok, I hope you understand this, it very technical stuff and hard to explain in English.
I will give you parameters for an inside M113 shot tommorow, It will take 5 min, I'm pretty fast with finding the right parameters.
« Last Edit: 18 Aug 2004, 19:37:09 by Blanco »
Search or search or search before you ask.

Gooner861

  • Guest
Re:Blanco's Logicam
« Reply #10 on: 18 Aug 2004, 19:03:41 »
Wow!! Thanks a bunch  ;D Blanco. That definetely helps me understand it a little more.

I must of been getting confused with what each number was. I was putting [180,3,2} for the M113 in the first group of numbers. I'll give it a try. Thanks.

Using lots of this in my intro, adds a lot more to the cutscene. It's very good.

Thanks

Gooner

Offline Blanco

  • Former Staff
  • ****
Re:Blanco's Logicam
« Reply #11 on: 19 Aug 2004, 16:55:22 »
Damned, you are right. There seems to be a problem with taking shots of the inside of APC's.
I found the right parameters in a minute, but some parts are missing as you can see here :

http://img.photobucket.com/albums/v228/blanco2/APCfailed.jpg

I tried to adjust the camera centimeter by centimeter, but it never shows a decent shot from the men inside.
First I thought it was a OFP issue with the M113 addon, but the same thing happens with all the unofficial APC's...
I'm sure there's nothing wrong with the script, it's must be something "OFP-isch", like the interior of an APC is only visible in 1th person?!

It's strange because it works perfect with trucks en jeeps.

Here are some examples with pics and params, the vehicle is named veh in every example


- US truck covered

http://img.photobucket.com/albums/v228/blanco2/truckcargowatchfront.jpg
[_camera,veh,[180,3,2.5],veh,[0,0.2,2.5],0.7] exec "logiccam.sqs

http://img.photobucket.com/albums/v228/blanco2/truckcargo_watchrear.jpg
[_camera,veh,[0,1,2.5],veh,[180,3,2.5],0.7] exec "logiccam.sqs"

http://img.photobucket.com/albums/v228/blanco2/truckcargodiagonalwatchrear.jpg
[_camera,veh,[-40,1.5,2.5],veh,[150,3,2.5],0.7] exec "logiccam.sqs"

- Humvee (halftop) from Fischkopp

http://img.photobucket.com/albums/v228/blanco2/alongtheleft.jpg
[_camera,veh,[-120,1.7,1.5],veh,[-90,1.7,1.5],0.7] exec "logiccam.sqs"

http://img.photobucket.com/albums/v228/blanco2/alongtheright.jpg
[_camera,veh,[90,1.1,1.5],veh,[20,2,1.5],0.7] exec "logiccam.sqs"

http://img.photobucket.com/albums/v228/blanco2/focustire.jpg
[_camera,veh,[10,4,0.5],veh,[170,3,0.5],0.7] exec "logiccam.sqs"

http://img.photobucket.com/albums/v228/blanco2/backhumveediagonal.jpg
[_camera,veh,[130,3,2],veh,[-80,10,1],0.7] exec "logiccam.sqs"

This is an example where the camposlogic is positioned higher (4m high, 6m in front of centerpoint) than the camtargetlogic (1 meter behind centerpoint, 1 meter high)

http://img.photobucket.com/albums/v228/blanco2/fronttop_high.jpg
[_camera,veh,[0,6,4],veh,[180,1,1],0.7] exec "logiccam.sqs"

- PBR boat

http://img.photobucket.com/albums/v228/blanco2/boatfront.jpg
[_camera,veh,[20,10,2],veh,[-160,2,1.5],0.7] exec "logiccam.sqs"
« Last Edit: 19 Aug 2004, 19:05:22 by Blanco »
Search or search or search before you ask.

Gooner861

  • Guest
Re:Blanco's Logicam
« Reply #12 on: 19 Aug 2004, 18:05:26 »
Hmmmmmmmmm odd, thats exactly what happened to me. Oh well its not absolutely neccesary, i'll keep trying though as well.

Nice pics also, for ayone interested in the logicam, thats just SOME of the things u can do. Very good.

Cheers

Gooner

Gooner861

  • Guest
Re:Blanco's Logicam
« Reply #13 on: 23 Oct 2004, 01:18:50 »
Hello again

Well i've just recently started playin around with this again, and i have already begun to pull my hair out trying to change each number of the code to get what i want. I decided better ask here for help seeing that ur all so kind  ;D .

Well wot im trying to get is a shot inside a truck next to the driver looking through the front window, so ur seeing pretty much what he's seeing.

So i got sumthing like this and it was nearly what i wanted ( i'm sure this is wot it was ):

[_camera,trucky,[0,1.5,2],trucky,[20,10,2],0.7] exec "logiccam.sqs"

Thanks for any help  :)

Gooner

Offline Blanco

  • Former Staff
  • ****
Re:Blanco's Logicam
« Reply #14 on: 25 Oct 2004, 06:13:48 »
Ok, first thing you have to do is to find the passenger position in the driver cabine so the camera can be created at that spot.

DIRECTION

He has to look forward?
Forward (in front of the vehicle) means a value around 0 for our first param.

DISTANCE

That passenger positon is about 3m in front of the centerpoint of the truck. so our second param is 3

HEIGHT

They are sitting higher than you think. It something around 2.7m high.

These are the params for the CAMPOSLOGIC
[0,3,2.7]

Now we need a second position, (camsettarget in camscripting therms) where the camera is pointed to.

DIRECTION

... is easy. That's 0 again or straight forward.

DISTANCE

Not that important actually as long as it's further then the distance you took for the camerapostion. Let's say 10m.

HEIGHT

..Is still 2.7m


parameters are :  


[_camera,truck,[0,3,2.7],truck,[0,10,2.7],0.7] exec "logiccam.sqs"


RESULT
http://img.photobucket.com/albums/v228/blanco2/Logiccam/truckpassenger.jpg

Now, thats more in the middle, no?
Maybe not the shot that you need, but it's a good position to start with. It just need some small adjustments.

If you want the passenger on the far right side, just adjust the directions a few degrees.
Remember a positive value is to right, negative to the left. It's about 8 degrees.

So the code for the passenger (far right) is :

[_camera,truck,[8,3,2.7],truck,[8,10,2.7],0.7] exec "logiccam.sqs"
or
http://img.photobucket.com/albums/v228/blanco2/Logiccam/truckpassengerright.jpg

The driver is a few degrees to the left so direction is a negative number.

[_camera,truck,[-8,3,2.7],truck,[-8,10,2.7],0.7] exec "logiccam.sqs"
or
http://img.photobucket.com/albums/v228/blanco2/Logiccam/truckdriver.jpg

Another example :

Far right passenger watching driver :

[_camera,truck,[8,3,2.7],truck,[-40,10,2.7],0.7] exec "logiccam.sqs"
or
http://img.photobucket.com/albums/v228/blanco2/Logiccam/passengerwatchdriver.jpg

the [8,3,2.7] is the passenger position again,
the ,[-40,10,2.7] is the other camtaget position,  I just changes the first param to -40 which is 40 degrees to the left.

NOTE : The truck I've used in the examples is a US 5th truck, the params for the EAST ural or any other truck are different.













 


« Last Edit: 25 Oct 2004, 06:22:04 by Blanco »
Search or search or search before you ask.