ASK [Guide] How to work with SpecialCamera

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
DreamStage
Posts: 222
Joined: Mon Oct 11, 2010 2:38 am
Location: Portugal

ASK [Guide] How to work with SpecialCamera

Post by DreamStage »

Hello L2J Developers, i would ask someone if he could please make a tutorial or show me and other's interested, on how to work with Special Cameras.

For example:

Code: Select all

_zone.broadcastPacket(new SpecialCamera(camera2.getObjectId(), 2300, 100, 0, 2000, 4500, 0, 10, 1, 0));
What does each entry equals to, and how to know the perfect way to make some rotation and locations.
Ignorance comes when you dont want to know the truth about facts.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: ASK [Guide] How to work with SpecialCamera

Post by jurchiks »

http://trac.l2jserver.com/browser/trunk ... amera.java

public SpecialCamera(int id, int dist, int yaw, int pitch, int time, int duration, int turn, int rise, int widescreen, int unk)
http://lmgtfy.com/?q=yaw+pitch+roll
Don't you have the source code?
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
User avatar
DreamStage
Posts: 222
Joined: Mon Oct 11, 2010 2:38 am
Location: Portugal

Re: ASK [Guide] How to work with SpecialCamera

Post by DreamStage »

Oh the google clearified me all, explain me this then:

Image

Because if im asking here, its because with GOOGLE i cant understand how to know when i make some entry Negative or Positive.
Ignorance comes when you dont want to know the truth about facts.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: ASK [Guide] How to work with SpecialCamera

Post by jurchiks »

how about reading instead of looking at pictures?
http://en.wikipedia.org/wiki/Aircraft_principal_axes
The three images on the right are exceptionally simple.

As for the values, just check the existing examples and - most importantly - try it yourself before asking questions.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
User avatar
DreamStage
Posts: 222
Joined: Mon Oct 11, 2010 2:38 am
Location: Portugal

Re: ASK [Guide] How to work with SpecialCamera

Post by DreamStage »

and what is the turn and the rise as the perspective of the camera? rise = the altitude from the ground?
Ignorance comes when you dont want to know the truth about facts.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: ASK [Guide] How to work with SpecialCamera

Post by jurchiks »

The rise is pretty much self-explanatory, unless someone mis-named that parameter. Dunno about turn though; yaw is supposed to be the turning parameter.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
vampir
Posts: 113
Joined: Sun Mar 28, 2010 6:17 pm

Re: ASK [Guide] How to work with SpecialCamera

Post by vampir »

dist - distance between your character and the camera
yaw - Left-Right angle of camera starting position
patch - Up-Down angle of camera starting position
time - time in which "turn" and "rise" will take effect
duration - total time of the camera effect
turn - camera is turning Left-Right
rise - camera is turning Up-Down
widescreen - if its 1, u will see 2 black belts at top and bottom of the screen
unk - no idea
User avatar
tukune
Posts: 533
Joined: Sun Mar 29, 2009 2:35 pm
Location: Japan

Re: ASK [Guide] How to work with SpecialCamera

Post by tukune »

unk=0: world.
unk=1: me.

:twisted: http://ja.pastebin.ca/2197549
powerful0guardian
Posts: 63
Joined: Tue Jun 26, 2012 11:16 am

Re: ASK [Guide] How to work with SpecialCamera

Post by powerful0guardian »

IamOR wrote:unk=0: world.
unk=1: me.

:twisted: http://ja.pastebin.ca/2197549
+1 to commit
User avatar
DreamStage
Posts: 222
Joined: Mon Oct 11, 2010 2:38 am
Location: Portugal

Re: ASK [Guide] How to work with SpecialCamera

Post by DreamStage »

great code =)
Ignorance comes when you dont want to know the truth about facts.
Post Reply