Symulator EU07 (i nie tylko) > Symulator
Reakcja obiektu na kąt obrotu.
Sm 42 driver:
Witam. Dzisiaj przy tworzeniu sceneri pojawił się porblem.
Mam wpis w scenerii:
include;sceneria/las_p.inc;none;1620.0;0.2;66.0;90.0;end
gdzie jak wiemy '90.0' jest kątem obrotu modelu w stopniach.
Następnie zmieniam kąt obrotu na '0.0'
czyli wpis:
include;sceneria/las_p.inc;none;1620.0;0.2;66.0;0.0;end
i odpalam swoją scenerię, ale obiekt, któremu zmieniłem kąt obrotu zostaje w takiej pozycji jak poprzednio. [Nie obrócił się]
Czy jest na to jakaś rada?
Za pomoc z góry dzięki :)
Pzdr
firefoxfan:
Pokaż plik 'las_p.inc', wtedy można coś powiedzieć na ten temat.
(pewnie nie ma przypisanego parametru (p5) do rotate - jeśli w ogóle jest w inc)
Sm 42 driver:
--- Cytat: firefoxfan w 18 Czerwca 2008, 21:42:16 ---Pokaż plik 'las_p.inc', wtedy można coś powiedzieć na ten temat.
(pewnie nie ma przypisanego parametru (p5) do rotate - jeśli w ogóle jest w inc)
--- Koniec cytatu ---
las_p.inc jest zdefiniowany w pliku *.inc ;)
treść:
--- Kod: ---origin (p2) (p3) (p4)
rotate 0 (p5) 0
include;tree.inc;Plants/#brzoza1.tga;-46.152;0.0;1.25471;0.0;8.15;5.0;end
include;tree.inc;Plants/#brzoza1.tga;-60.2047;0.0;75.0314;0.0;8.15;5.0;end
include;tree.inc;Plants/#brzoza1.tga;-65.6897;0.0;35.8846;0.0;8.15;5.0;end
include;tree.inc;Plants/#brzoza1.tga;-30.5839;0.0;94.0605;0.0;8.15;5.0;end
include;tree.inc;Plants/#buk1.tga;-24.3675;0.0;29.8706;0.0;10.0;5.0;end
include;tree.inc;Plants/#buk1.tga;-44.9447;0.0;26.3574;0.0;10.0;5.0;end
include;tree.inc;Plants/#buk1.tga;-34.4051;0.0;79.055;0.0;10.0;5.0;end
include;tree.inc;Plants/#buk1.tga;-63.5143;0.0;95.6171;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo6.tga;-47.4541;0.0;48.9421;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo6.tga;-29.3863;0.0;68.0136;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo6.tga;-32.3976;0.0;47.4365;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo6.tga;-26.375;0.0;12.3047;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo6.tga;-61.973;0.0;19.833;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo8.tga;-8.80916;0.0;56.9722;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo8.tga;-41.9334;0.0;17.8254;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo8.tga;-27.8807;0.0;2.76897;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo8.tga;-21.8581;0.0;87.587;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo8.tga;-47.9559;0.0;69.0174;0.0;10.0;5.0;end
include;tree.inc;Plants/#Jesion1.tga;-15.3336;0.0;10.7991;0.0;10.0;5.0;end
include;tree.inc;Plants/#Jesion1.tga;-19.8506;0.0;48.4402;0.0;10.0;5.0;end
include;tree.inc;Plants/#Jesion1.tga;-23.3637;0.0;79.055;0.0;10.0;5.0;end
include;tree.inc;Plants/#Jesion1.tga;-49.4616;0.0;97.1228;0.0;10.0;5.0;end
include;tree.inc;Plants/#Sosna2.tga;-20.1513;0.0;23.8767;0.0;10.0;5.0;end
include;tree.inc;Plants/#Sosna3.tga;-8.97244;0.0;4.35811;0.0;10.0;5.0;end
include;tree.inc;Plants/#Sosna4.tga;-9.50478;0.0;26.8933;0.0;10.0;5.0;end
include;tree.inc;Plants/#Sosna5.tga;-11.8115;0.0;42.3307;0.0;10.0;5.0;end
include;tree.inc;Plants/#Sosna5.tga;-71.7617;0.0;2.10959;0.0;10.0;5.0;end
include;tree.inc;Plants/#Sosna5.tga;-58.9859;0.0;7.78773;0.0;10.0;5.0;end
include;tree.inc;Plants/#Sosna6.tga;-18.5405;0.0;64.4252;0.0;10.0;5.0;end
include;tree.inc;Plants/#Sosna6.tga;-10.3781;0.0;94.9452;0.0;10.0;5.0;end
include;tree.inc;Plants/#Sosna7.tga;-12.33;0.0;72.0552;0.0;10.0;5.0;end
include;tree.inc;Plants/#Sosna7.tga;-11.7977;0.0;84.1213;0.0;10.0;5.0;end
include;tree.inc;Plants/#Sosna7.tga;-49.238;0.0;85.3633;0.0;10.0;5.0;end
include;tree.inc;Plants/#Sosna7.tga;-39.3012;0.0;58.3922;0.0;10.0;5.0;end
include;tree.inc;Plants/#Sosna7.tga;-67.6646;0.0;60.8581;0.0;10.0;5.0;end
include;tree.inc;Plants/#Sosna7.tga;-39.4269;0.0;38.9376;0.0;10.0;5.0;end
include;tree.inc;Plants/#Sosna7.tga;-54.9853;0.0;38.4357;0.0;10.0;5.0;end
include;tree.inc;Plants/#Sosna7.tga;-58.7494;0.0;54.7469;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo5.tga;-90.9702;0.0;1.18119;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo5.tga;-94.7343;0.0;9.71318;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo5.tga;-97.2437;0.0;21.0055;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo5.tga;-90.2174;0.0;33.3016;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo5.tga;-100.506;0.0;43.3393;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo5.tga;-91.2211;0.0;48.609;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo5.tga;-82.4382;0.0;56.1373;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo5.tga;-93.2287;0.0;61.9089;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo5.tga;-88.2098;0.0;69.939;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo5.tga;-93.4796;0.0;76.2125;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo5.tga;-89.7155;0.0;85.4974;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo5.tga;-97.2437;0.0;92.2728;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo5.tga;-89.2136;0.0;99.0482;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo5.tga;-84.4457;0.0;96.0369;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo5.tga;-81.9363;0.0;79.7257;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo8.tga;-84.5712;0.0;0.365629;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo8.tga;-87.3315;0.0;6.63915;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo8.tga;-89.7155;0.0;12.7872;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo8.tga;-90.9702;0.0;18.4334;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo8.tga;-92.8522;0.0;27.8437;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo8.tga;-94.7343;0.0;38.6341;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo8.tga;-96.7418;0.0;46.4133;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo8.tga;-86.6745;0.0;52.1173;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo8.tga;-92.0698;0.0;55.3795;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo8.tga;-86.0472;0.0;62.4058;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo8.tga;-93.0735;0.0;67.4247;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo8.tga;-85.9217;0.0;77.2114;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo8.tga;-91.9443;0.0;80.85;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo8.tga;-84.6494;0.0;85.0704;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo8.tga;-93.8764;0.0;89.329;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo8.tga;-86.7787;0.0;91.9906;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo8.tga;-92.723;0.0;96.338;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo8.tga;-88.3143;0.0;27.0675;0.0;10.0;5.0;end
include;tree.inc;Plants/#drzewo8.tga;-88.8162;0.0;43.1277;0.0;10.0;5.0;end
include;tree.inc;Plants/#lipa2.tga;-86.3068;0.0;10.5054;0.0;10.0;5.0;end
include;tree.inc;Plants/#lipa2.tga;-87.2927;0.0;15.4442;0.0;10.0;5.0;end
include;tree.inc;Plants/#lipa2.tga;-91.64;0.0;23.2517;0.0;10.0;5.0;end
include;tree.inc;Plants/#lipa2.tga;-88.2686;0.0;31.2365;0.0;10.0;5.0;end
include;tree.inc;Plants/#lipa2.tga;-90.8416;0.0;36.4711;0.0;10.0;5.0;end
include;tree.inc;Plants/#lipa2.tga;-93.7693;0.0;43.4801;0.0;10.0;5.0;end
include;tree.inc;Plants/#lipa2.tga;-84.0988;0.0;38.7778;0.0;10.0;5.0;end
include;tree.inc;Plants/#lipa2.tga;-84.622;0.0;49.7852;0.0;10.0;5.0;end
include;tree.inc;Plants/#lipa2.tga;-88.888;0.0;59.3209;0.0;10.0;5.0;end
include;tree.inc;Plants/#lipa2.tga;-82.7399;0.0;65.8454;0.0;10.0;5.0;end
include;tree.inc;Plants/#lipa2.tga;-84.7475;0.0;72.2444;0.0;10.0;5.0;end
include;tree.inc;Plants/#lipa2.tga;-87.8842;0.0;87.0499;0.0;10.0;5.0;end
include;tree.inc;Plants/#lipa2.tga;-89.2644;0.0;80.0236;0.0;10.0;5.0;end
include;tree.inc;Plants/#lipa2.tga;-83.2418;0.0;90.6886;0.0;10.0;5.0;end
include;tree.inc;Plants/#lipa2.tga;-85.2494;0.0;102.671;0.0;10.0;5.0;end
include;tree.inc;Plants/#lipa2.tga;-84.1957;0.0;24.3822;0.0;10.0;5.0;end
rotate 0 0 0
endorigin
--- Koniec kodu ---
Pzdr
firefoxfan:
Taka sprawa, że rotate nie działa na .inc (jest nadpisywane przez rotate w include).
AtapiCl:
Wywal stąd:
--- Cytuj ---origin (p2) (p3) (p4)
rotate 0 (p5) 0
...
rotate 0 0 0
endorigin
--- Koniec cytatu ---
Każdemu obiektowi musisz osobno zmieniać kąt obrotu, jeśli chcesz aby każdy był obrócony inaczej.
Z 'origin' możesz jedynie (po zamienieniu w każdym wpisie parametru obrotu:
--- Cytuj ---include;tree.inc;Plants/#brzoza1.tga;-46.152;0.0;1.25471;0.0;8.15;5.0;end
--- Koniec cytatu ---
na (p5):
--- Cytuj ---include;tree.inc;Plants/#brzoza1.tga;-46.152;0.0;1.25471;(p5);8.15;5.0;end
--- Koniec cytatu ---
Obrócić wszystkie obiekty dookoła własnej osi, co z resztą mija się z celem.
Nawigacja
[#] Następna strona
Idź do wersji pełnej