Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Miscellaneous => Topic started by: Skarn on February 15, 2014, 10:10:54 am

Title: [QUESTION] Flying camera creation - is it possible?
Post by: Skarn 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.
Title: Re: [QUESTION] Flying camera creation - is it possible?
Post by: Malkorak 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. http://www.youtube.com/watch?v=UogT48427Ms (http://www.youtube.com/watch?v=UogT48427Ms" onclick="window.open(this.href);return false;)

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

But try to search on Modcraft.
Title: Re: [QUESTION] Flying camera creation - is it possible?
Post by: Skarn on February 15, 2014, 07:58:55 pm
Thanks, Malkorak.  ;)
Title: Re: [QUESTION] Flying camera creation - is it possible?
Post by: stoneharry 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. http://www.youtube.com/watch?v=UogT48427Ms (http://www.youtube.com/watch?v=UogT48427Ms" onclick="window.open(this.href);return false;)

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 (https://github.com/stoneharry/Misc-WoW-Stuff/blob/master/Camera%20Generator/camera.cpp" onclick="window.open(this.href);return false;)
Title: Re: [QUESTION] Flying camera creation - is it possible?
Post by: Skarn 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.
Title: Re: [QUESTION] Flying camera creation - is it possible?
Post by: stoneharry 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: http://www.youtube.com/watch?v=ePGqNVAY6c8 (http://www.youtube.com/watch?v=ePGqNVAY6c8" onclick="window.open(this.href);return false;) 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. :)
Title: Re: [QUESTION] Flying camera creation - is it possible?
Post by: Skarn on February 15, 2014, 10:54:13 pm
Thanks again :D
Title: Re: [QUESTION] Flying camera creation - is it possible?
Post by: Skarn 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
Title: Re: [QUESTION] Flying camera creation - is it possible?
Post by: schlumpf on February 23, 2014, 08:56:55 pm
Yes, it can. That's exactly the information you need.
Title: Re: [QUESTION] Flying camera creation - is it possible?
Post by: Skarn 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.
Title: Re: [QUESTION] Flying camera creation - is it possible?
Post by: schlumpf 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.
Title: Re: [QUESTION] Flying camera creation - is it possible?
Post by: Krang Stonehoof 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?
Title: Re: [QUESTION] Flying camera creation - is it possible?
Post by: schlumpf 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 (http://pastebin.com/Lbv9kN3H" onclick="window.open(this.href);return false;). Edit lines 178+ with your coordinates, there.
Title: Re: [QUESTION] Flying camera creation - is it possible?
Post by: Krang Stonehoof 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.
Title: Re: [QUESTION] Flying camera creation - is it possible?
Post by: Skarn 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.
Title: Re: [QUESTION] Flying camera creation - is it possible?
Post by: stoneharry on January 02, 2015, 06:15:15 pm
Quote from: "Skarn"
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.

Upload a couple of WMT files and I'll do this next week (in Italy atm).

If I need to use WoW to figure something out it will take another week since I will not be back at my house until then... (been visiting parents over Christmas).
Title: Re: [QUESTION] Flying camera creation - is it possible?
Post by: Skarn on January 04, 2015, 03:54:13 pm
I will upload these files tomorrow. Thanks for helping.
Title: Re: [QUESTION] Flying camera creation - is it possible?
Post by: iindigo on January 04, 2015, 05:33:12 pm
Here's a basic UI if anybody wants to pair it with the C++ code posted earlier. It's made with Qt5 so any program using it will be able to run on any OS.

I might give it a try myself but I'd have no way to test it.

Because Qt applications can have arbitrary files embedded in themselves I might suggest embedding a blank camera file, enabling the program to create new camera files from scratch. This would be far more user friendly than requiring a pre-existing camera file.

(http://cl.ly/image/320y1l0t2P0r/camanimadder1.png)
Title: Re: [QUESTION] Flying camera creation - is it possible?
Post by: Steff on February 06, 2015, 07:16:25 am
It is planed to add it to wowdev