123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263 |
- object Form1: TForm1
- Left = 0
- Top = 0
- Caption = 'Moving Objects with Mouse'
- ClientHeight = 452
- ClientWidth = 548
- Color = clBtnFace
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWindowText
- Font.Height = -11
- Font.Name = 'Tahoma'
- Font.Style = []
- OldCreateOrder = False
- OnCreate = FormCreate
- OnKeyPress = FormKeyPress
- OnKeyUp = FormKeyUp
- OnMouseWheel = FormMouseWheel
- PixelsPerInch = 96
- TextHeight = 13
- object Scn: TGLSceneViewer
- Left = 161
- Top = 0
- Width = 387
- Height = 452
- Camera = GLCamera1
- Buffer.BackgroundColor = clBackground
- FieldOfView = 51.630752563476560000
- Align = alClient
- OnMouseDown = ScnMouseDown
- OnMouseMove = ScnMouseMove
- TabOrder = 0
- end
- object Panel1: TPanel
- Left = 0
- Top = 0
- Width = 161
- Height = 452
- Align = alLeft
- BevelOuter = bvNone
- TabOrder = 1
- ExplicitHeight = 407
- object Label2: TLabel
- Left = 0
- Top = 26
- Width = 158
- Height = 26
- Align = alTop
- Caption = 'Select and move with the mouse any of the two cubes.'
- ShowAccelChar = False
- WordWrap = True
- end
- object Label1: TLabel
- Left = 0
- Top = 0
- Width = 114
- Height = 13
- Align = alTop
- Caption = 'Author: Rado Stoyanov'
- ShowAccelChar = False
- WordWrap = True
- end
- object Label3: TLabel
- Left = 0
- Top = 52
- Width = 150
- Height = 26
- Align = alTop
- Caption = 'Default movement is on the XY plane.'
- ShowAccelChar = False
- WordWrap = True
- end
- object Label4: TLabel
- Left = 0
- Top = 78
- Width = 145
- Height = 26
- Align = alTop
- Caption = 'Shift + Drag moves on the XZ plane.'
- ShowAccelChar = False
- WordWrap = True
- end
- object Label5: TLabel
- Left = 0
- Top = 13
- Width = 142
- Height = 13
- Align = alTop
- Caption = '[email protected]'
- ShowAccelChar = False
- WordWrap = True
- end
- object Button1: TButton
- Left = 618
- Top = 8
- Width = 155
- Height = 25
- Caption = 'Near: (0,0) Eye -> Obj'
- TabOrder = 0
- end
- object GroupBox1: TGroupBox
- Left = 0
- Top = 104
- Width = 161
- Height = 43
- Align = alTop
- Caption = 'Options'
- TabOrder = 1
- object ShowAxes: TCheckBox
- Left = 5
- Top = 18
- Width = 145
- Height = 17
- Caption = 'Show selection axes'
- TabOrder = 0
- OnClick = ShowAxesClick
- end
- end
- end
- object GLScene1: TGLScene
- Left = 296
- Top = 8
- object Floor: TGLCube
- Material.FrontProperties.Diffuse.Color = {C5C4C43ECDCCCC3E8382023FE3A53B3F}
- Position.Coordinates = {00000000000000005C8F82BF0000803F}
- CubeSize = {00000040000000400AD7233C}
- end
- object TopLight1: TGLLightSource
- Ambient.Color = {0000003F0000003F0000003F0000803F}
- ConstAttenuation = 0.800000011920929000
- Diffuse.Color = {EAE9693FEAE9693FEAE9693F0000803F}
- Position.Coordinates = {0000804100005041000040410000803F}
- SpotCutOff = 180.000000000000000000
- end
- object Cube1: TGLCube
- Material.BackProperties.Diffuse.Color = {8382023F8584043FB1B0303F8195633F}
- Material.FrontProperties.Diffuse.Color = {8382023F8584043FB1B0303F6DE75B3F}
- Material.BlendingMode = bmTransparency
- Material.Texture.ImageAlpha = tiaAlphaFromIntensity
- Material.Texture.TextureMode = tmModulate
- Direction.Coordinates = {0000803F000000000000000000000000}
- Position.Coordinates = {CDCCCC3DCDCCCC3D666666BF0000803F}
- Scale.Coordinates = {CDCC4C3ECDCC4C3ECDCC4C3E00000000}
- end
- object Cube2: TGLCube
- Position.Coordinates = {CDCCCCBECDCCCC3E000000BF0000803F}
- CubeSize = {0000803E0000803E0000803E}
- end
- object DummyCube1: TGLDummyCube
- Position.Coordinates = {0000803F0000803F0000003F0000803F}
- CubeSize = 0.200000002980232200
- EdgeColor.Color = {DEDD5D3FDEDD5D3FE9E8683F0000803F}
- end
- object XArrow: TGLArrowLine
- Direction.Coordinates = {0000803F000000000000000000000000}
- Position.Coordinates = {CDCCCC3D000080BF000080BF0000803F}
- Up.Coordinates = {000000002EBD3BB30000803F00000000}
- BottomRadius = 0.009999999776482582
- Height = 2.200000047683716000
- TopRadius = 0.009999999776482582
- TopArrowHeadHeight = 0.200000002980232200
- TopArrowHeadRadius = 0.050000000745058060
- BottomArrowHeadHeight = 0.500000000000000000
- BottomArrowHeadRadius = 0.050000000745058060
- end
- object YArrow: TGLArrowLine
- Direction.Coordinates = {24DE4C320000803F2CBD3B3300000000}
- Position.Coordinates = {000080BFCDCCCC3D000080BF0000803F}
- Up.Coordinates = {2EBD3BB32CBD3BB30000803F00000000}
- BottomRadius = 0.009999999776482582
- Height = 2.200000047683716000
- TopRadius = 0.009999999776482582
- TopArrowHeadHeight = 0.200000002980232200
- TopArrowHeadRadius = 0.050000000745058060
- BottomArrowHeadHeight = 0.500000000000000000
- BottomArrowHeadRadius = 0.200000002980232200
- end
- object ZArrow: TGLArrowLine
- Position.Coordinates = {000080BF000080BF000000BF0000803F}
- BottomRadius = 0.009999999776482582
- Height = 1.000000000000000000
- TopRadius = 0.009999999776482582
- TopArrowHeadHeight = 0.200000002980232200
- TopArrowHeadRadius = 0.050000000745058060
- BottomArrowHeadHeight = 0.500000000000000000
- BottomArrowHeadRadius = 0.050000000745058060
- end
- object TxtX: TGLSpaceText
- Direction.Coordinates = {F30435BFF30435BF0000000000000000}
- Position.Coordinates = {CDCCCC3F000080BF000080BF0000803F}
- Scale.Coordinates = {9A99993E9A99993E9A99993E00000000}
- Up.Coordinates = {00000000000000000000803F00000000}
- Extrusion = 0.300000011920929000
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWindowText
- Font.Height = -11
- Font.Name = 'Arial'
- Font.Style = []
- Lines.Strings = (
- 'X')
- CharacterRange = stcrAlphaNum
- end
- object TxtY: TGLSpaceText
- Direction.Coordinates = {F40435BFF20435BF0000000000000000}
- Position.Coordinates = {000080BF9A99D93F000080BF0000803F}
- Scale.Coordinates = {9A99993E9A99993E9A99993E00000000}
- Up.Coordinates = {00000000000000000000803F00000000}
- Extrusion = 0.300000011920929000
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWindowText
- Font.Height = -11
- Font.Name = 'Arial'
- Font.Style = []
- Lines.Strings = (
- 'Y')
- CharacterRange = stcrAlphaNum
- end
- object TxtZ: TGLSpaceText
- Direction.Coordinates = {F304353FF304353F0000000000000000}
- Position.Coordinates = {9A99193ECDCCCCBD0000803F0000803F}
- Scale.Coordinates = {9A99993E9A99993E9A99993E00000000}
- Up.Coordinates = {00000080000000000000803F00000000}
- Extrusion = 0.200000002980232200
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWindowText
- Font.Height = -11
- Font.Name = 'Arial'
- Font.Style = []
- Lines.Strings = (
- 'Z')
- CharacterRange = stcrAlphaNum
- end
- object GLCamera1: TGLCamera
- DepthOfView = 1000.000000000000000000
- FocalLength = 400.000000000000000000
- NearPlaneBias = 0.001000000047497451
- TargetObject = DummyCube1
- Position.Coordinates = {0000B8410000A041000080410000803F}
- Direction.Coordinates = {2EF964BF2EF9E43E0000000000000000}
- Up.Coordinates = {00000000000000000000803F00000000}
- end
- object TopText: TGLHUDText
- Position.Coordinates = {0000A0400000A040000000000000803F}
- BitmapFont = GLWindowsBitmapFont1
- Text = 'TopText'
- Rotation = 0.000000000000000000
- end
- object ObjText: TGLHUDText
- Position.Coordinates = {0000C0400000A841000000000000803F}
- BitmapFont = GLWindowsBitmapFont1
- Text = 'ObjText'
- Rotation = 0.000000000000000000
- end
- end
- object GLWindowsBitmapFont1: TGLWindowsBitmapFont
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWhite
- Font.Height = -11
- Font.Name = 'Tahoma'
- Font.Style = []
- Left = 400
- Top = 8
- end
- end
|