Page 1 of 1
ASK [Guide] How to work with SpecialCamera
Posted: Wed Aug 22, 2012 9:08 am
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.
Re: ASK [Guide] How to work with SpecialCamera
Posted: Wed Aug 22, 2012 9:23 am
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?
Re: ASK [Guide] How to work with SpecialCamera
Posted: Wed Aug 22, 2012 9:38 am
by DreamStage
Oh the google clearified me all, explain me this then:
Because if im asking here, its because with GOOGLE i cant understand how to know when i make some entry Negative or Positive.
Re: ASK [Guide] How to work with SpecialCamera
Posted: Wed Aug 22, 2012 9:44 am
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.
Re: ASK [Guide] How to work with SpecialCamera
Posted: Wed Aug 22, 2012 9:50 am
by DreamStage
and what is the turn and the rise as the perspective of the camera? rise = the altitude from the ground?
Re: ASK [Guide] How to work with SpecialCamera
Posted: Wed Aug 22, 2012 10:03 am
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.
Re: ASK [Guide] How to work with SpecialCamera
Posted: Wed Aug 22, 2012 12:03 pm
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
Re: ASK [Guide] How to work with SpecialCamera
Posted: Thu Aug 23, 2012 10:12 am
by tukune
Re: ASK [Guide] How to work with SpecialCamera
Posted: Thu Aug 23, 2012 1:47 pm
by powerful0guardian
Re: ASK [Guide] How to work with SpecialCamera
Posted: Thu Aug 23, 2012 8:15 pm
by DreamStage
great code =)