Показать сообщение отдельно
Старый 21.01.2011, 10:46   #7
Yonder
AnyKey`щик
 
Регистрация: 14.01.2011
Сообщений: 4
Написано 2 полезных сообщений
(для 4 пользователей)
Печаль Ответ: Помощь компиляции lib_m3g (or something)

Well... i found help - in Phantom's javac ArtMPLibcompiler. I've managed to recompile lib_m3g and add two new methods:
  • translate (x,y,z,ID:integer);
  • rotate (angle, axisx,axisy,axisz,ID:integer);

where ID is group's ID you can find through Hi-Corp's viewer. You have few ID's in example in const section.

Since I take integers as parameters I tried to use parameter/9 to make it more precise. In MP you can use even camera's ID to move/rotate it.

Animated M3G's work also, but the animated object returns to its animation set position every keyframe. For this exmaple, since i use cangaroo mesh i dont animate.

Example and source included.

Any additional changes are wellcome. I dont really need to use google translate do I?
Вложения
Тип файла: rar Lib_m3g_class_and_source.rar (2.7 Кб, 571 просмотров)
Тип файла: rar Example.rar (90.4 Кб, 552 просмотров)
(Offline)
 
Ответить с цитированием
Сообщение было полезно следующим пользователям:
cherepets (22.01.2011)