Вверх ↑
Ответов: 1304
Рейтинг: 405
#1: 2008-11-30 12:22:27 ЛС | профиль | цитата
обычно стекло сверкает (в жизни)?

Андрей., смотря под каким углом смотреть и чем освещать
Вариант.

Add(MainForm,6112295,-86,43)
{
Left=20
Top=105
Width=623
Height=430
Point(MouseX)
Point(MouseY)
Point(onResize)
Point(Handle)
link(onCreate,16299401:doEvent1,[])
link(onResize,14551396:doWork1,[(-31,70)(-31,54)(44,54)])
}
Add(GL_Main,12986311,54,57)
{
Color=6381921
TwoSide=0
link(onInit,12198675:doInit,[])
link(onViewPort,3410847:doPerspective,[(110,70)(110,112)])
link(Handle,8822605:Var1,[])
}
Add(Timer,9506849,-51,141)
{
Interval=10
Enable=1
link(onTimer,1049454:doEvent1,[])
}
Add(GL_GTools,771925,54,141)
{
Point(doClear)
Point(doPushMatrix)
Point(doPopMatrix)
}
Add(Hub,1049454,-9,141)
{
OutCount=5
link(onEvent1,771925:doClear,[])
link(onEvent2,771925:doPushMatrix,[])
link(onEvent3,11727008:doEnabled,[(69,161)(69,196)])
link(onEvent4,771925:doPopMatrix,[(39,168)(39,161)])
link(onEvent5,12986311:doFlip,[(39,175)(39,77)])
}
Add(Hub,16299401,-16,57)
{
OutCount=3
link(onEvent1,12986311:doInit,[])
link(onEvent2,14551396:doWork2,[])
link(onEvent3,9506849:doTimer,[(27,77)(27,122)(-67,122)(-67,147)])
}
Add(HubEx,14551396,40,57)
{
link(onEvent,12986311:doViewPort,[])
}
Add(GL_Perspective,3410847,117,106)
{
Fovy=25
}
Add(GL_Options,5851269,159,57)
{
Flag=1
link(onEvent,15226729:doEnabled,[])
}
Add(GL_Options,15226729,201,57)
{
Flag=2
link(onEvent,1542151:doEnabled,[])
}
Add(GL_Options,1542151,243,57)
{
link(onEvent,12739860:doEnabled,[])
}
Add(GL_GluTools,12198675,117,57)
{
Normal=1
Texture=0
link(onInit,5851269:doEnabled,[])
}
Add(GL_Options,12739860,285,57)
{
Flag=8
link(onEvent,11619735:doEnabled,[])
}
Add(ChildPanel,8822605,54,8)
{
}
BEGIN_SDK
Add(EditMulti,5505017,21,21)
{
VarCount=3
link(Var1,3276548:Handle,[(27,179)(41,179)])
link(Var2,3276548:MouseX,[(34,179)(48,179)])
link(Var3,3276548:MouseY,[(41,179)(55,179)])
}
Add(Panel,3276548,35,105)
{
Width=400
Height=400
Point(Handle)
Point(MouseX)
Point(MouseY)
}
END_SDK
Add(TrackBar,15026719,236,148)
{
Left=400
Top=5
Width=220
Max=359
}
Add(TrackBar,4972334,285,148)
{
Left=400
Top=30
Width=220
Max=359
}
Add(MultiElement,10714674,236,197)
{
link(onEvent1,9142739:doDraw,[])
link(Data1,15026719:Position,[])
link(Data2,4972334:Position,[(249,189)(291,189)])
}
BEGIN_SDK
Add(EditMulti,4359962,10,10)
{
EventCount=1
WorkCount=1
DataCount=2
Width=223
Height=109
link(doWork1,3276760:doRotate,[(19,9)(19,55)])
}
Add(GL_Rotate,3276760,35,49)
{
Y=1
link(onRotate,8079493:doRotate,[])
link(Angle,4359962:Data1,[(62,15)(9,15)])
}
Add(GL_Rotate,8079493,112,49)
{
X=1
link(onRotate,4359962:onEvent1,[(189,55)(189,9)])
link(Angle,4359962:Data2,[(139,8)(16,8)])
}
END_SDK
Add(GL_Color,12711856,117,302)
{
Alpha=0.55
link(onColor,9739235:doDraw,[])
}
Add(GL_Material,6406883,75,302)
{
Side=2
Diffuse=0
Specular=16777215
Emission=8388608
Shininess=15
link(onSet,12711856:doColor,[])
}
Add(GL_GTools,1382711,33,253)
{
Point(doPushMatrix)
link(onEvent,7874684:doNext,[])
}
Add(Counter,7874684,75,253)
{
Max=359
Step=2
Type=1
link(onNext,5229150:doRotate,[])
}
Add(Gl_Translate,3640296,285,253)
{
Z=10
link(onTranslate,12960931:doEnabled,[])
}
Add(Gl_Begin,7338053,159,253)
{
link(onBegin,3936651:doVertex,[])
}
Add(GL_Vertex3D,3936651,201,253)
{
link(onVertex,16402734:doEnd,[])
}
Add(Gl_End,16402734,243,253)
{
link(onEnd,3640296:doTranslate,[])
}
Add(GL_GTools,2166193,390,253)
{
Point(doPopMatrix)
link(onEvent,16638199:doCullFace,[(434,259)(434,293)(21,293)(21,308)])
}
Add(GL_Sphere,9739235,159,302)
{
Radius=0.9
Slices=7
Stacks=2
link(onDraw,15607473:doCullFace,[])
}
Add(Gl_Axis,9142739,285,197)
{
TitleScale=0.5
link(onDraw,1382711:doPushMatrix,[(329,203)(329,235)(21,235)(21,259)])
}
Add(GL_Light,12960931,334,253)
{
Index=3
Diffuse=16711680
Specular=16711935
link(onEnabled,12960931:doMove,[(378,259)(378,263)(322,263)(322,266)])
link(onMove,2166193:doPopMatrix,[(382,266)(382,259)])
link(Point,14686516:Point3D,[])
}
Add(GL_Point3D,14686516,334,211)
{
X=0.01
Y=0.01
Z=0.01
}
Add(GL_Light,11727008,115,190)
{
link(onEnabled,11727008:doMove,[(159,196)(159,200)(103,200)(103,203)])
link(onMove,7380744:doEnabled,[(163,203)(163,196)])
link(Point,616606:Point3D,[])
}
Add(GL_Point3D,616606,115,148)
{
X=1
Y=-1
Z=-10
}
Add(GL_Light,7380744,178,190)
{
Index=1
Diffuse=15466195
link(onEnabled,7380744:doMove,[(222,196)(222,200)(166,200)(166,203)])
link(onMove,10714674:doWork1,[])
link(Point,5953374:Point3D,[])
}
Add(GL_Point3D,5953374,178,148)
{
X=-1
Y=1
Z=100
}
Add(GL_Rotate,5229150,117,253)
{
link(onRotate,7338053:doBegin,[])
link(Z,7874684:Count,[(144,241)(112,241)(112,297)(81,297)])
}
Add(GL_CullFace,16638199,33,302)
{
link(onCullFace,6406883:doSet,[])
}
Add(GL_Options,11619735,327,57)
{
Flag=9
}
Add(GL_Color,6240332,285,302)
{
Alpha=0.55
link(onColor,2455129:doDraw,[])
}
Add(GL_Material,4003771,243,302)
{
Side=2
Diffuse=0
Specular=16777215
Emission=8388608
Shininess=15
link(onSet,6240332:doColor,[])
}
Add(GL_Sphere,2455129,334,302)
{
Radius=0.9
Slices=7
Stacks=2
}
Add(GL_CullFace,15607473,201,302)
{
Side=1
link(onCullFace,4003771:doSet,[])
}



карма: 3

1
Голосовали:Andrey