sla8a,
Add(ChildFormEx,11140309,322,224) { } BEGIN_SDK Add(EditMultiEx,13130319,0,21) { WorkCount=#44:doSwitchTeaTime=Включить застольную анимацию| Width=650 Height=368 link(doSwitchTeaTime,14086570:doSwitch,[]) } Add(MainForm,12714549,35,77) { Left=35 Top=105 Height=400 Visible=1 Caption="ПРОСИМ К СТОЛУ! - 2011 - 2012, 1nd1g0 forum.hiasm.com" BorderStyle=4 Position=1 Point(Handle) Point(doVisible) link(onCreate,16299401:doEvent1,[]) } Add(GL_Main,12986311,189,91) { Color=0 link(onInit,3060881:doInit,[]) link(onViewPort,3410847:doPerspective,[(229,104)(229,139)]) link(Handle,12714549:Handle,[(195,80)(79,80)(79,121)(41,121)]) } Add(Timer,9506849,49,189) { Interval=33 Enable=1 link(onTimer,1049454:doEvent1,[]) } Add(GL_GTools,771925,154,189) { Point(doClear) Point(doPushMatrix) Point(doPopMatrix) } Add(GL_GluTools,4593655,455,91) { link(onInit,6976573:doEnabled,[]) } Add(Hub,1049454,98,189) { OutCount=6 link(onEvent1,771925:doClear,[]) link(onEvent2,771925:doPushMatrix,[]) link(onEvent3,1729843:doNext,[]) link(onEvent4,771925:doPopMatrix,[(146,216)(146,209)]) link(onEvent5,12986311:doFlip,[(151,223)(151,111)]) link(onEvent6,6288241:doMove,[(161,230)(161,349)]) } Add(Hub,16299401,91,91) { OutCount=3 link(onEvent1,12986311:doInit,[]) link(onEvent2,12986311:doViewPort,[]) link(onEvent3,9506849:doTimer,[(137,111)(137,156)(43,156)(43,195)]) } Add(Gl_Text,3060881,252,91) { Depth=0.2 Font=[Times New Roman,5,0,32768,1] Text="С Новым Годом!" link(onInit,16663485:doEnabled,[]) link(GLHandle,12986311:GLHandle,[(258,81)(237,81)(237,133)(195,133)]) } Add(GL_Rotate,16361112,273,203) { Y=0.1 Z=0.3 link(onRotate,4101734:doTranslate,[]) } Add(Gl_Translate,4101734,322,203) { X=-3 Y=-0.2 Z=0.5 link(onTranslate,13487801:doDraw,[]) } Add(Counter,1729843,210,203) { Max=360 link(onNext,16361112:doRotate,[]) } Add(GL_Light,6976573,504,91) { Ambient=8388608 Specular=65280 TypeSource=1 CutOff=45 Constant=0 Linear=0.003 Quadratic=0.003 link(onEnabled,2055299:doEnabled,[]) link(onMove,2055299:doMove,[]) link(Point,8829415:Point3D,[]) } Add(GL_Options,16663485,301,91) { Flag=2 link(onEvent,1571481:doEnabled,[]) } Add(GL_Options,1571481,357,91) { link(onEvent,15984634:doEnabled,[]) } Add(GL_Options,15984634,406,91) { Flag=1 link(onEvent,4593655:doInit,[]) } Add(GL_Perspective,3410847,252,133) { Fovy=45 } Add(Gl_Particles,13487801,368,203) { ColorStart=16777215 ColorEnd=8388608 Param1=10 LifeTime=500 Speed=-0.15 Average=0.01 Count=32 link(onDraw,1731160:doWork1,[]) } Add(GL_Point3D,8829415,504,49) { } Add(GL_Light,6288241,210,336) { Ambient=8388608 Specular=65280 TypeSource=1 CutOff=45 Constant=0 Quadratic=0.003 link(Point,4346401:Point3D,[]) } Add(GL_Point3D,4346401,210,294) { Z=10 link(X,4728757:reCalc,[(216,286)(223,286)]) link(Y,9031755:reCalc,[(223,286)(272,286)]) } Add(MathParse,4728757,210,245) { DataCount=1 MathStr="10 * (sin (%1))" AngleMode=1 Point(reCalc) link(X1,7690939:Var2,[]) } Add(MathParse,9031755,259,245) { DataCount=1 MathStr="10 * (cos (%1))" AngleMode=1 Point(reCalc) link(X1,7690939:Var3,[(265,236)]) } Add(GetDataEx,7690939,210,231) { link(Data,1729843:Count,[]) } Add(GL_Light,2055299,574,91) { Index=1 Ambient=16711680 Diffuse=65535 Specular=65280 Exponent=10 CutOff=45 Linear=0.003 Quadratic=0.003 link(onEnabled,6976573:doMove,[(619,97)(619,132)(492,132)(492,104)]) link(Point,6502735:Point3D,[]) } Add(GL_Point3D,6502735,574,49) { Z=-10 } Add(MultiElement,1731160,420,203) { link(onEvent1,3060881:doDraw,[(455,209)(455,180)(240,180)(240,104)]) } BEGIN_SDK Add(EditMulti,13416492,3,3) { EventCount=1 WorkCount=1 Width=482 Height=151 link(doWork1,11196606:doPushMatrix,[(26,9)(26,83)]) } Add(Gl_Translate,6506827,329,77) { Z=1.5 link(onTranslate,3209934:doDraw,[]) } Add(GL_Rotate,15834536,280,77) { X=1 link(onRotate,6506827:doTranslate,[]) } Add(GL_GTools,11196606,35,77) { Point(doPushMatrix) link(onEvent,13547329:doNext,[]) } Add(GL_GTools,16242413,434,77) { Point(doPopMatrix) link(onEvent,13416492:onEvent1,[(475,83)(475,9)]) } Add(Counter,13547329,231,77) { Max=360 Step=3 Default=120 link(onNext,15834536:doRotate,[]) } Add(GL_Teapot,3209934,378,77) { Size=0.5 link(onDraw,16242413:doPopMatrix,[]) link(Size,11068353:reCalc,[]) } Add(MathParse,11068353,371,28) { DataCount=1 MathStr="abs (cos (%1))" AngleMode=1 Point(reCalc) link(X1,13547329:Count,[(377,19)(211,19)(211,121)(237,121)]) } END_SDK Add(Switch,14086570,35,21) { DataOn=Integer(1) DataOff=Integer(0) link(onSwitch,12714549:doVisible,[(79,27)(79,74)(12,74)(12,111)]) } END_SDK Add(Button,11130970,252,224) { Left=250 Top=220 Align=2 Caption="1nd1g0" Data=String(1nd1g0) link(onClick,11140309:doSwitchTeaTime,[]) }
------------ Дoбавленo в 20.24:
Перекачайте схему, заменил радианы на градусы в формуле, теперь анимация должна быть плавнее.
|