![](https://max3d.pl/uploads/set_resources_6/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
Shalivan
-
Liczba zawartości
1 012 -
Rejestracja
-
Ostatnia wizyta
-
Wygrane w rankingu
5
Typ zawartości
Profile
News
Forum
Kalendarz
Odpowiedzi dodane przez Shalivan
-
-
O siemak Cer jak ty bierzesz to też bym si przyłączył ale nie ma co sie rzucać jak czasu brak ;(
Pozdro
-
No to miłej zabawy panowie ;) też coś postaram sie wymodzić :)
-
stop reklamom! cartoon ma wygrac ;p
A tylko ktoś sproboje inaczej ;)
Pozdro.
-
drobne upominki: tablet, karte graficzną i licencje max 9 ;)
-
Dzięki właśnie tego szukałem ;)
-
Tak olewając tego ciecia czy takiego avatara nie maił kiedyś shogun 3d ;P
Mowie o twoim Knysha
-
:/ mowie wam po założeniu konta powinien być tygodniowy ban
-
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.
-
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 :)
-
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
-
Powodzenia fajna tematyka czekam na efekty :)
-
No ja znam ale to koncerty typu Tool albo inne dość dupne przedsięwzięcia jak cie to interesuje to wal na gg ;)
-
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ć ;)
-
Hehe Vortek popieram ;) mnie nikt w 3d nie zrobi :P
-
No ja też już jestem. musiałem niestety po combustion wyjść ale było spoko
A kto wygrał IPoda ? :P
-
Przesadzasz Shogun już 2 razy parkowałem na cały dzień pod pałacem kultury za free :D
-
miało przyjść na maila potwierdzenie rejestracji ?
i tak by the way ile osob już sie zarejestrowało jak mozna wiedzieć
-
w chorzowie jest jedno :DD
-
1
-
-
hehe a ja mam jeszcze czas do końca miesiąca przynieść im kolejne odroczenie tym razem ze studiów ;)
-
A ja nie rozumiem czemu sie tak uparliście na to że jak smok to odrazu musi być groźny
Pozdrawiam :)
-
1
-
-
ano stało się... ;]
i na tym koniec z OFFtopami :D
Tweety moderator ? :P:P:P
-
no właśnie czemu nie Śląsk
NO śląsk był by opcią najlepszą :D
-
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
-
ZIomuś moze zdjątka uploadnijcie z zeszłego roku ja nie mam pod ręką a czasu na szukanie też nie za bardzo :)
Minibitwa nr9 - Postać z kreskówki START
w Mini-Bitwa
Napisano
Ciesze sie że moja propozycja przeszła powodzonka wam :)