Товарищи, подскажите плз мне две вещи:
1. Как в Гмаксе анимировать развевающийся на ветру флаг.
2. Где взять хороший рисунок флага ВВС СССР?
1. Как в Гмаксе анимировать развевающийся на ветру флаг.
2. Где взять хороший рисунок флага ВВС СССР?
Special Sections
Rotating a GMAx object with the wind
If you want your entire object to rotate with the wind you can make the following change to the BGLC code of your
myproject.asm file. Replace the following piece of code:
SCALE_AGL OBJECT_0_RETURN, 10000, 126, 131072, 00043D426h, 038E4h, 0E38E38E3h, 08E39h, 0, 0
BGL_CALL OBJECT_0_BEGIN
OBJECT_0_RETURN label word
With this piece of code:
SCALE_AGL OBJECT_0_RETURN, 10000, 126, 131072, 00043D426h, 038E4h, 0E38E38E3h, 08E39h, 0, 0
POINT_VICALL OBJECT_0_BEGIN, 0, 0, 0, 0, 0, 0, 0, 0, global_winds_surface_direction
OBJECT_0_RETURN label word
Now the entire object will rotate with the direction of the wind. If you have positioned the object right in GMax, with
the center of the rotation on the 0,0 coordinate, you can make a flag or a windsock that rotates into the wind with this.
tip: It is a know problem of FS that the change in rotation will not always happen as soon as you change the wind
direction in the weather menu. A fix for this is to place more then one obect that rotate with the wind. When two of
these objects are visible (on your screen) at the same time, it will work. If you only want to place one windsock for
example you can best hide the others ones in buildings or so.
Иначе говоря, поменять среднюю строку в указанных фрагментах.
Чего тут не хватает? Я уж и так, и сяк, и один объект, и два — не хочет он вращаться по ветру. А вспомните, (кто видел,
конечно) каките флаги сделаны в Темпельхофе (из пакета German Airports 4)! И развеваются, и по ветру поворачиваются, и на
нужный угол в зависимости от силы ветра поднимаются! Загляденье одним словом. ВОт у меня и возник вопрос, как это
сделать? Особенно анимировать в таком же ключе, как было у Вани на аватаре.