Skocz do zawartości

Shalivan

Members
  • Liczba zawartości

    1 012
  • Rejestracja

  • Ostatnia wizyta

  • Wygrane w rankingu

    5

Zawartość dodana przez Shalivan

  1. Ciesze sie że moja propozycja przeszła powodzonka wam :)
  2. O siemak Cer jak ty bierzesz to też bym si przyłączył ale nie ma co sie rzucać jak czasu brak ;( Pozdro
  3. No to miłej zabawy panowie ;) też coś postaram sie wymodzić :)
  4. A tylko ktoś sproboje inaczej ;) Pozdro.
  5. drobne upominki: tablet, karte graficzną i licencje max 9 ;)
  6. Dzięki właśnie tego szukałem ;)
  7. Tak olewając tego ciecia czy takiego avatara nie maił kiedyś shogun 3d ;P Mowie o twoim Knysha
  8. :/ mowie wam po założeniu konta powinien być tygodniowy ban
  9. TO ja jeszcze dorzuce skrypta w.ms (ja go nie pisałem ale raczej jest za free) : -- Template: 'Template-Dialog.ms' /* tut_billboard_01.ms "Billboard" version 01 Written for 3dsmax r6 Written by swami* 07.13.03 PURPOSE: - To realize the billboard effect: an object looks at another object, but only rotates about its World z-axis. */ -------------------------- --> -------------------------- -- FUNCTION (makeBillboard) -- -- This function realizes the billboard effect: an object looks at another object, but only rotates -- about its World z-axis. This is accomplished by assigning a script controller to the object's rotation. -- Through the use of a little trigonometry, the rotation is set. -- The billboard's Local z-axis defines the front of the object. This convention is chosen to match the -- orientation of objects created in the front view. -- -- This function is based coded posted to the MAXScript WebBoard by Larry Minton. fn makeBillboard obj -- The billboard object. targ -- The lookat object. = ( setWaitCursor() -- Check to ensure the objects are defined and not deleted. if obj!=undefined AND (NOT isDeleted obj) AND targ!=undefined AND (NOT isDeleted targ) then ( -- Build string to be used in script controller on obj's rotation. -- Notes: -- - Script is in one big 'try/catch'. So, if any error occurs, the catch clause is executed, -- and rotation is effectively set to [0,0,0]. -- - 'dependsOn' signals the controller to update when another controller changes. -- In this case, the rotation changes when the position of the lookat object changes. -- So, on a given frame, when the user moves the lookat object, the billboard rotates. -- - An object name is put in single quotes (e.g. $'An Object Name') in case spaces or other -- "problem" characters are contained in the name. Without the single quotes, an error will occur. -- - The script controller returns a quaternion rotation value: see the lines containing -- 'eulerAngles' (pronounced "oiler angles"). -- - Basic trigonometry is used to calculate the rotation angle required to achieve the billboard effect. local scriptStr= "try( dependsOn $'"+targ.name+"'.pos.controller local d, dz, z_rot, len, ctrl -- Get difference vector of obj and targ. d= try ($'"+obj.name+"'.pos-$'"+targ.name+"'.pos) catch [0,0,0] dz=d.z -- Store z value. d.z=0 -- Set z to zero. len=length d -- Vector length. -- Calculate the z rotation (in degrees). -- Note: len==0 => obj and targ are at same position! z_rot= if len!=0 then -90+acos(d.x/len)*(if d.y!=0 then d.y/(abs d.y) else 1) else -90 (eulerAngles 90 0 z_rot) as quat )catch ((eulerAngles 90 0 0) as quat)" ctrl=obj.rotation.controller=rotation_script() -- Assign rotation script controller. setTimeRange ctrl (interval -1000 10000) -- Set script controller's range bar to wide range, in case user expands range later. ctrl.script=scriptStr -- Put script string into script controller. )--end main 'if/then'. setArrowCursor() ) -------------------------- -- end functions. -- If rol_BB dialog already open, then close. global rol_BB try (destroyDialog rol_BB) catch() rollout rol_BB "Billboard" ( -- VARIABLES. local bbObjsArr -- Declare billboard objects array local to rollout. local laObj -- Declare lookat object local to rollout. -- UI CONTROL ITEMS. button but_setBBEffect "Set Billboard Effect" width:125 height:40\ tooltip:"Select billboard objects and camera, then click button" -- EVENTS. -- Set the billboard effect. on but_setBBEffect pressed do ( bbObjsArr=#() -- Initialize billboard objects array to null array. laObj=undefined -- Initialize lookat object variable to 'undefined'. -- Note: User must manually select objects in viewport, or via 'Select by Name' dialog. -- Selection should include the billboard objects AND one camera. -- Loop through selected objects. for obj in selection do ( if superClassOf obj==camera -- Check if object is the camera. then laObj=obj -- Assign camera object to 'laObj' variable. else if classOf obj!=targetObject then append bbObjsArr obj -- Append object to billboard objects array, but exclude target objects. ) -- Finally, set billboard effect: loop through billboard objects and call 'makeBillboard' fn. -- This assigns a script controller to the billboard objects' rotation. if bbObjsArr.count!=0 AND laObj!=undefined then -- Check to ensure objects have been selected. ( for obj in bbObjsArr do makeBillboard obj laObj ) ) ) -------------------------- -- end rollout. -- Create dialog. createDialog rol_BB width:250 height:100\ style:#(#style_sysmenu,#style_titlebar,#style_minimizebox,#style_maximizebox) -------------------------- -- end script.
  10. Shalivan

    Strona Główna - projekt

    Yo mi sie podoba :D fajny pomysł tylko troszkę text sie mało kontrastuje z tłem i troszkę menu mi sie nie podoba może gdybyś pomniejszył pomarańcz i pociągnął do końca znaczy żeb troszke luzu mu dać. Ale to tylko taka moja propozycja Pozdrawiam :)
  11. Hej Marcin a jak można wiedzieć ile cie wyniosło takie cacko, bo właśnie też myśałem o założeniu sieci albo wi fi albo przez bluetoote (bo jeden mam) wiem że blue jest wolniejszy . Jak byście mogliprzy okazji dyskusji powiedzieć co mam zrobić zczegolnie ty marcin jak jużnabrałeś w tym doświadczenia Pozdrawiam
  12. Powodzenia fajna tematyka czekam na efekty :)
  13. No ja znam ale to koncerty typu Tool albo inne dość dupne przedsięwzięcia jak cie to interesuje to wal na gg ;)
  14. Shalivan

    3ds max 8 dla zielonych

    uzyj helpa albo max3d.pl tutki Master kiełbaster nie widzisz że to 1 post kolegi ? kilka dni temu mogło go tu nie być ;)
  15. Hehe Vortek popieram ;) mnie nikt w 3d nie zrobi :P
  16. No ja też już jestem. musiałem niestety po combustion wyjść ale było spoko A kto wygrał IPoda ? :P
  17. Przesadzasz Shogun już 2 razy parkowałem na cały dzień pod pałacem kultury za free :D
  18. miało przyjść na maila potwierdzenie rejestracji ? i tak by the way ile osob już sie zarejestrowało jak mozna wiedzieć
  19. Shalivan

    obserwatoria

    w chorzowie jest jedno :DD
  20. Shalivan

    Armia wzywa

    hehe a ja mam jeszcze czas do końca miesiąca przynieść im kolejne odroczenie tym razem ze studiów ;)
  21. A ja nie rozumiem czemu sie tak uparliście na to że jak smok to odrazu musi być groźny Pozdrawiam :)
  22. kome powiedz czy sie na nas zawiodłeś czy chdziło o podobne wyniki :DD ale t aankieta jest nie w pełni odzwierciedlająca styuacje bo badasz osobników z jednego stada oczywiście mowie o zainterasowaniah :P
  23. ZIomuś moze zdjątka uploadnijcie z zeszłego roku ja nie mam pod ręką a czasu na szukanie też nie za bardzo :)
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Wykorzystujemy cookies. Przeczytaj więcej Polityka prywatności