This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [QUESTION] Flying camera creation - is it possible?  (Read 4126 times)

Skarn

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 807
    • View Profile
    • http://skarn-project.net
[QUESTION] Flying camera creation - is it possible?
« on: February 15, 2014, 10:10:54 am »
Hello, everyone. I want to create custom flying camera for my custom races and their starting zones. Does anybody know is it possible? I've heard that there's a tool written by Schlumpf or somebody else, but I don't know where I can find it.

Regards, Skarn.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Malkorak

  • Contributors
  • Race Changer
  • *****
  • Posts: 26
    • View Profile
Re: [QUESTION] Flying camera creation - is it possible?
« Reply #1 on: February 15, 2014, 05:40:58 pm »
I think Stoneharry may help you with that.

He have that video with Cinematic Camera exeprimenting on YouTube.

He also released a tool for that if I'm not wrong, a while ago.

But try to search on Modcraft.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Skarn

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 807
    • View Profile
    • http://skarn-project.net
Re: [QUESTION] Flying camera creation - is it possible?
« Reply #2 on: February 15, 2014, 07:58:55 pm »
Thanks, Malkorak.  ;)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

stoneharry

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 617
    • View Profile
Re: [QUESTION] Flying camera creation - is it possible?
« Reply #3 on: February 15, 2014, 10:37:50 pm »
Quote from: "Malkorak"
I think Stoneharry may help you with that.

He have that video with Cinematic Camera exeprimenting on YouTube.

He also released a tool for that if I'm not wrong, a while ago.

But try to search on Modcraft.

The code is Schlumpf's, some guys on the Noggit team were trying to rewrite it to integrate it into Noggit or something last I heard.

Here, I have it backed up on one of my git's: https://github.com/stoneharry/Misc-WoW- ... camera.cpp
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Skarn

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 807
    • View Profile
    • http://skarn-project.net
Re: [QUESTION] Flying camera creation - is it possible?
« Reply #4 on: February 15, 2014, 10:41:32 pm »
Thank you very much, stoneharry! Can you tell me please how to calculate these cords for vectors? Thanks.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

stoneharry

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 617
    • View Profile
Re: [QUESTION] Flying camera creation - is it possible?
« Reply #5 on: February 15, 2014, 10:45:23 pm »
Quote from: "Skarn"
Thank you very much, stoneharry! Can you tell me please how to calculate these cords for vectors? Thanks.

The end coordinate is defined in the DBC file when you input coordinates for the camera. All values you input into the vectors are offsets of this end coordinate. It is very, very hard to get it to look how you want when you are writing these values in manually like I was doing (this camera has multiple targets and took a while to get it to where it is: the code I linked contains the values I used for this camera).

All camera skin files are identical, so you can copy an existing camera skin file and rename it.

As I said in my previous post, the Noggit team were rewriting it to allow you to generate it within noggit without needing to figure out these offsets yourself. I have no idea how far they got. Play with the system to see how it works. :)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Skarn

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 807
    • View Profile
    • http://skarn-project.net
Re: [QUESTION] Flying camera creation - is it possible?
« Reply #6 on: February 15, 2014, 10:54:13 pm »
Thanks again :D
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Skarn

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 807
    • View Profile
    • http://skarn-project.net
Re: [QUESTION] Flying camera creation - is it possible?
« Reply #7 on: February 23, 2014, 08:40:44 pm »
I have an idea... WMT can generate files with this structure (it's a cam fly file) Can this information be used for real flying camera creation?

[1]
X=3196.525390625
Y=3039.65161132813
Z=34.5673217773438
Fov=0.0399999991059303
Zoom=2.09999990463257
Pitch=0.0251614935696125
Roll=0.482470750808716
Yaw=0
[2]
X=3103.53344726563
Y=3056.51831054688
Z=49.2117156982422
Fov=0.0399999991059303
Zoom=2.09999990463257
Pitch=3.18246483802795
Roll=0.173547431826591
Yaw=0
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Flying camera creation - is it possible?
« Reply #8 on: February 23, 2014, 08:56:55 pm »
Yes, it can. That's exactly the information you need.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Skarn

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 807
    • View Profile
    • http://skarn-project.net
Re: [QUESTION] Flying camera creation - is it possible?
« Reply #9 on: February 23, 2014, 09:04:26 pm »
Seriously? Just awesome. I gonna try it and if I have any sucess in it I will post a tutorial.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Flying camera creation - is it possible?
« Reply #10 on: February 24, 2014, 12:39:50 am »
Keep in mind that those coordinated are world-based while flyby cameras shall be described in target-based coordinates. You only need to just flat-substract them though.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Krang Stonehoof

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 164
    • View Profile
Re: [QUESTION] Flying camera creation - is it possible?
« Reply #11 on: December 31, 2014, 01:09:15 am »
I just found that and I was just curious if you can explain how we can use it. I mean, I found the code but I'm not sure what to do with it, can you make a simple and fast tutorial?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Flying camera creation - is it possible?
« Reply #12 on: December 31, 2014, 01:20:45 am »
in m2.camera, add a camera of type 0 with an animation moving towards 0.

You may want to use a tool like http://pastebin.com/Lbv9kN3H. Edit lines 178+ with your coordinates, there.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Krang Stonehoof

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 164
    • View Profile
Re: [QUESTION] Flying camera creation - is it possible?
« Reply #13 on: December 31, 2014, 01:23:37 am »
I found that code, but I was wondering what I'm supposed to do with it. I'm really confused atm.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Skarn

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 807
    • View Profile
    • http://skarn-project.net
Re: [QUESTION] Flying camera creation - is it possible?
« Reply #14 on: December 31, 2014, 08:00:19 am »
This tool works but lacks GUI which makes it pretty useless for people like me who doesn't know anything about programming (Luckily I've got someone who can help me). I would be really grateful to someone who makes this tool work with GUI or just like "just drag'n'drop wmt file on it". I guess a lot of other people also really need this working.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »