[HOW] Animated collision model

Learn to make aircraft, maps and more with all of the tools. All the tutorials you will ever need are located here!
NOTE THAT HACKING THE MAIN YSFLIGHT .EXE IS FORBIDDEN
Post Reply
User avatar
u2fly
Senior Veteran
Senior Veteran
Posts: 1247
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 744 times
Been thanked: 276 times
Contact:

[HOW] Animated collision model

Post by u2fly » Fri Feb 12, 2016 2:57 pm

Is it a way to make animated collision model for aircraft or ground object?
By default there is "<name>_coll.srf" file, that is static.
So, is it any chance use DNM instead of SRF for collision model?
/!\ READ YSFLIGHT HANDBOOK (online + PDF) | updated 2019/04/25

U.S. Senator John McCain wrote:
“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost - we stand w/ them in their fight against #Putin's aggression”
http://pic.twitter.com/vkz0gdozVV
(31 DEC 2016)

User avatar
Swift
Veteran
Veteran
Posts: 806
Joined: Fri Jan 09, 2015 7:51 pm
Favorite Aircraft: Mig-21
Location: The Mün
OS: Windows 10 Home
Has thanked: 90 times
Been thanked: 318 times

Re: [HOW] Animated collision model

Post by Swift » Fri Feb 12, 2016 3:42 pm

I've seen a dnm used as a collision model once but i can't recall where.
Image
if ( MadeBySwift )
{ cheatplane(); }

User avatar
Neocon
First Class Membership
First Class Membership
Posts: 3839
Joined: Wed Oct 19, 2011 5:01 am
Favorite Aircraft: Baron 58
Location: Tennessee
OS: Win 10
Has thanked: 1605 times
Been thanked: 1726 times
Contact:

Re: [HOW] Animated collision model

Post by Neocon » Fri Feb 12, 2016 4:26 pm

I think it can cause errors, though. I am slowly replacing .dnm collision files for my ground objects.

User avatar
decaff_42
Staff
Staff
Posts: 3539
Joined: Sat Oct 29, 2011 7:23 pm
Favorite Aircraft: SR-71 Blackbird
Location: Eastern United States
OS: Mac OSX
Has thanked: 613 times
Been thanked: 1323 times
Contact:

Re: [HOW] Animated collision model

Post by decaff_42 » Fri Feb 12, 2016 8:32 pm

Not for a collision model. However if you desire to have a lower detail "coarse" model, I believe you can have animations for that. You would still need a collision SRF. Not sure why you would want to have an animated collision file, because this is supposed to be the boundaries of the aircraft in simple form. The more complicated it is, the more YSFlight has to work to calculate collisions.
Check out my website YSDecaff for all my tutorials and addon releases.
Visit by Bitbucket page for Python codes: https://bitbucket.org/decaff42/

Civilian Aviation Server Flight Log

User avatar
ysmajor
Contributor
Contributor
Posts: 169
Joined: Tue Apr 12, 2011 7:55 am
Favorite Aircraft: Curtiss P-40B Warhawk
Location: Shanghai
Has thanked: 6 times
Been thanked: 102 times
Contact:

Re: [HOW] Animated collision model

Post by ysmajor » Fri Feb 12, 2016 8:58 pm

On a sidenote, cockpit files can be DNM's but they are not animated.
(I wanted to make the effect of flying into hyperspace - like what you see with Star Wars when they jump through hyperspace - so the lightbeams passing past the cockpit window would be awesome, if only they were not actually see from outside the aircraft, hence using the cockpit file which - I thought - is only seen by the user.)

Bit strange though, the coll files of swing wing fighters they are not very accurate.
On the other hand that kind of accuracy would only be useful in close formation flying, or acrobatics like flying through cargoplanes. (On another side note, the coll file of a few C5 Galaxies are hollow for that reason.)

User avatar
u2fly
Senior Veteran
Senior Veteran
Posts: 1247
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 744 times
Been thanked: 276 times
Contact:

Re: [HOW] Animated collision model

Post by u2fly » Fri Feb 12, 2016 9:45 pm

ysmajor wrote:On a sidenote, cockpit files can be DNM's but they are not animated.
(I wanted to make the effect of flying into hyperspace - like what you see with Star Wars when they jump through hyperspace - so the lightbeams passing past the cockpit window would be awesome, if only they were not actually see from outside the aircraft, hence using the cockpit file which - I thought - is only seen by the user.)

Bit strange though, the coll files of swing wing fighters they are not very accurate.
On the other hand that kind of accuracy would only be useful in close formation flying, or acrobatics like flying through cargoplanes. (On another side note, the coll file of a few C5 Galaxies are hollow for that reason.)
Here is F-5 with animated radar inside cockpit using turret variables:
http://img.atwikiimg.com/www41.atwiki.j ... /f5投稿用.zip
--
Also, any aircraft with extracted landing gear can land or touch sides of ground object collision surface without exploading (from my expirience of flights near buildings on stock HAWAII scenery).
/!\ READ YSFLIGHT HANDBOOK (online + PDF) | updated 2019/04/25

U.S. Senator John McCain wrote:
“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost - we stand w/ them in their fight against #Putin's aggression”
http://pic.twitter.com/vkz0gdozVV
(31 DEC 2016)

User avatar
Flake
Core Staff
Core Staff
Posts: 4350
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 835 times
Been thanked: 1238 times
Contact:

Re: [HOW] Animated collision model

Post by Flake » Fri Feb 12, 2016 10:46 pm

DNM as collision files causes crashes for DirectX YSF. This is why I had to change the Sky Surfers pack to use a SRF coll model instead of a DNM.

It's possible, I just highly advise against it.
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest