diff --git a/doc/demo_camera/camera.md b/doc/demo_camera/camera.md index f4a3b91..bd033cd 100644 --- a/doc/demo_camera/camera.md +++ b/doc/demo_camera/camera.md @@ -1,6 +1,29 @@ +# camera ![Image text](image/camera1.png) ![Image text](image/camera2.png) ![Image text](image/camera3.png) ![Image text](image/camera4.png) ![Image text](image/camera5.png) ![Image text](image/camera6.png) + + + +# viewport(视口,可视化窗口) +- root就是根节点的viewport + ![Image text](image/viewport1.png) + ![Image text](image/viewport2.png) + ![Image text](image/viewport3.png) + ![Image text](image/viewport4.png) + ![Image text](image/viewport5.png) + ![Image text](image/viewport6.png) + ![Image text](image/viewport7.png) + ![Image text](image/viewport8.png) + ![Image text](image/viewport9.png) + ![Image text](image/viewport10.png) + ![Image text](image/viewport11.png) + +# canvas layer +- 它是一个节点, 为所有子代和孙代添加一个单独的2D渲染层.Viewport的子节点默认在图层 "0 " 处绘制, 而CanvasLayer将在任何数字层处绘制. +- 数字较大的图层将绘制在数字较小的图层之上.CanvasLayers也有自己的变换, 不依赖于其他层的变换. 这使得当我们对游戏世界的观察发生变化时,UI可以固定在屏幕空间中. + +![Image text](image/canvaslayers.png) diff --git a/doc/demo_camera/image/canvaslayers.png b/doc/demo_camera/image/canvaslayers.png new file mode 100644 index 0000000..ba959de Binary files /dev/null and b/doc/demo_camera/image/canvaslayers.png differ diff --git a/doc/demo_camera/image/canvaslayers.png.import b/doc/demo_camera/image/canvaslayers.png.import new file mode 100644 index 0000000..39eab5b --- /dev/null +++ b/doc/demo_camera/image/canvaslayers.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/canvaslayers.png-74d5cfd5f0971dd06d4bebbecb1192df.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://doc/demo_camera/image/canvaslayers.png" +dest_files=[ "res://.import/canvaslayers.png-74d5cfd5f0971dd06d4bebbecb1192df.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/doc/demo_camera/image/viewport1.png b/doc/demo_camera/image/viewport1.png new file mode 100644 index 0000000..488d944 Binary files /dev/null and b/doc/demo_camera/image/viewport1.png differ diff --git a/doc/demo_camera/image/viewport1.png.import b/doc/demo_camera/image/viewport1.png.import new file mode 100644 index 0000000..fd77a1c --- /dev/null +++ b/doc/demo_camera/image/viewport1.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/viewport1.png-3695208b412824287d5782e72c830540.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://doc/demo_camera/image/viewport1.png" +dest_files=[ "res://.import/viewport1.png-3695208b412824287d5782e72c830540.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/doc/demo_camera/image/viewport10.png b/doc/demo_camera/image/viewport10.png new file mode 100644 index 0000000..2fcbf44 Binary files /dev/null and b/doc/demo_camera/image/viewport10.png differ diff --git a/doc/demo_camera/image/viewport10.png.import b/doc/demo_camera/image/viewport10.png.import new file mode 100644 index 0000000..c1c722a --- /dev/null +++ b/doc/demo_camera/image/viewport10.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/viewport10.png-5d19078ce5f7a81a3f9441a0f24f9627.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://doc/demo_camera/image/viewport10.png" +dest_files=[ "res://.import/viewport10.png-5d19078ce5f7a81a3f9441a0f24f9627.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/doc/demo_camera/image/viewport11.png b/doc/demo_camera/image/viewport11.png new file mode 100644 index 0000000..81b4a89 Binary files /dev/null and b/doc/demo_camera/image/viewport11.png differ diff --git a/doc/demo_camera/image/viewport11.png.import b/doc/demo_camera/image/viewport11.png.import new file mode 100644 index 0000000..5052a41 --- /dev/null +++ b/doc/demo_camera/image/viewport11.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/viewport11.png-49c34f067db449d6d361b85bed4577d6.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://doc/demo_camera/image/viewport11.png" +dest_files=[ "res://.import/viewport11.png-49c34f067db449d6d361b85bed4577d6.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/doc/demo_camera/image/viewport2.png b/doc/demo_camera/image/viewport2.png new file mode 100644 index 0000000..95e7b31 Binary files /dev/null and b/doc/demo_camera/image/viewport2.png differ diff --git a/doc/demo_camera/image/viewport2.png.import b/doc/demo_camera/image/viewport2.png.import new file mode 100644 index 0000000..c77d8ef --- /dev/null +++ b/doc/demo_camera/image/viewport2.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/viewport2.png-f6c9974766f9212697348273936e3a9e.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://doc/demo_camera/image/viewport2.png" +dest_files=[ "res://.import/viewport2.png-f6c9974766f9212697348273936e3a9e.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/doc/demo_camera/image/viewport3.png b/doc/demo_camera/image/viewport3.png new file mode 100644 index 0000000..2593563 Binary files /dev/null and b/doc/demo_camera/image/viewport3.png differ diff --git a/doc/demo_camera/image/viewport3.png.import b/doc/demo_camera/image/viewport3.png.import new file mode 100644 index 0000000..3981285 --- /dev/null +++ b/doc/demo_camera/image/viewport3.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/viewport3.png-ab73905cd1f8e50dcafbc07f68bb7e29.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://doc/demo_camera/image/viewport3.png" +dest_files=[ "res://.import/viewport3.png-ab73905cd1f8e50dcafbc07f68bb7e29.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/doc/demo_camera/image/viewport4.png b/doc/demo_camera/image/viewport4.png new file mode 100644 index 0000000..513fb38 Binary files /dev/null and b/doc/demo_camera/image/viewport4.png differ diff --git a/doc/demo_camera/image/viewport4.png.import b/doc/demo_camera/image/viewport4.png.import new file mode 100644 index 0000000..6e5a02d --- /dev/null +++ b/doc/demo_camera/image/viewport4.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/viewport4.png-cfa3982b37b69b519cfd84d7fa2f28de.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://doc/demo_camera/image/viewport4.png" +dest_files=[ "res://.import/viewport4.png-cfa3982b37b69b519cfd84d7fa2f28de.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/doc/demo_camera/image/viewport5.png b/doc/demo_camera/image/viewport5.png new file mode 100644 index 0000000..9668048 Binary files /dev/null and b/doc/demo_camera/image/viewport5.png differ diff --git a/doc/demo_camera/image/viewport5.png.import b/doc/demo_camera/image/viewport5.png.import new file mode 100644 index 0000000..5be65b2 --- /dev/null +++ b/doc/demo_camera/image/viewport5.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/viewport5.png-c6d38332a54784c90267212faf71ce3a.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://doc/demo_camera/image/viewport5.png" +dest_files=[ "res://.import/viewport5.png-c6d38332a54784c90267212faf71ce3a.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/doc/demo_camera/image/viewport6.png b/doc/demo_camera/image/viewport6.png new file mode 100644 index 0000000..702031c Binary files /dev/null and b/doc/demo_camera/image/viewport6.png differ diff --git a/doc/demo_camera/image/viewport6.png.import b/doc/demo_camera/image/viewport6.png.import new file mode 100644 index 0000000..6589b4f --- /dev/null +++ b/doc/demo_camera/image/viewport6.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/viewport6.png-b03b6d5926778cef31f4809b939681ab.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://doc/demo_camera/image/viewport6.png" +dest_files=[ "res://.import/viewport6.png-b03b6d5926778cef31f4809b939681ab.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/doc/demo_camera/image/viewport7.png b/doc/demo_camera/image/viewport7.png new file mode 100644 index 0000000..222598a Binary files /dev/null and b/doc/demo_camera/image/viewport7.png differ diff --git a/doc/demo_camera/image/viewport7.png.import b/doc/demo_camera/image/viewport7.png.import new file mode 100644 index 0000000..e3ed28b --- /dev/null +++ b/doc/demo_camera/image/viewport7.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/viewport7.png-de0248d21b4efb61417bd60bdb0c41d3.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://doc/demo_camera/image/viewport7.png" +dest_files=[ "res://.import/viewport7.png-de0248d21b4efb61417bd60bdb0c41d3.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/doc/demo_camera/image/viewport8.png b/doc/demo_camera/image/viewport8.png new file mode 100644 index 0000000..db30520 Binary files /dev/null and b/doc/demo_camera/image/viewport8.png differ diff --git a/doc/demo_camera/image/viewport8.png.import b/doc/demo_camera/image/viewport8.png.import new file mode 100644 index 0000000..a99334c --- /dev/null +++ b/doc/demo_camera/image/viewport8.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/viewport8.png-cedcfc816b6e093adad0fc6f983c6a27.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://doc/demo_camera/image/viewport8.png" +dest_files=[ "res://.import/viewport8.png-cedcfc816b6e093adad0fc6f983c6a27.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/doc/demo_camera/image/viewport9.png b/doc/demo_camera/image/viewport9.png new file mode 100644 index 0000000..38d65e0 Binary files /dev/null and b/doc/demo_camera/image/viewport9.png differ diff --git a/doc/demo_camera/image/viewport9.png.import b/doc/demo_camera/image/viewport9.png.import new file mode 100644 index 0000000..0d7a622 --- /dev/null +++ b/doc/demo_camera/image/viewport9.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/viewport9.png-8d0e6342ecc800abe9c3ec63869b061c.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://doc/demo_camera/image/viewport9.png" +dest_files=[ "res://.import/viewport9.png-8d0e6342ecc800abe9c3ec63869b061c.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/doc/demo_gui/image/viewport1.png.import b/doc/demo_gui/image/viewport1.png.import new file mode 100644 index 0000000..ce1b801 --- /dev/null +++ b/doc/demo_gui/image/viewport1.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/viewport1.png-2ada517f8006ce451b1309721c8897ae.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://doc/demo_gui/image/viewport1.png" +dest_files=[ "res://.import/viewport1.png-2ada517f8006ce451b1309721c8897ae.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/doc/demo_gui/image/viewport10.png.import b/doc/demo_gui/image/viewport10.png.import new file mode 100644 index 0000000..f129e8d --- /dev/null +++ b/doc/demo_gui/image/viewport10.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/viewport10.png-24cf0b2ab13f39f78c9c3a0a1d6f5bcd.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://doc/demo_gui/image/viewport10.png" +dest_files=[ "res://.import/viewport10.png-24cf0b2ab13f39f78c9c3a0a1d6f5bcd.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/doc/demo_gui/image/viewport11.png.import b/doc/demo_gui/image/viewport11.png.import new file mode 100644 index 0000000..ea523e4 --- /dev/null +++ b/doc/demo_gui/image/viewport11.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/viewport11.png-dfba73251f55e8c5d59232573944f692.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://doc/demo_gui/image/viewport11.png" +dest_files=[ "res://.import/viewport11.png-dfba73251f55e8c5d59232573944f692.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/doc/demo_gui/image/viewport2.png.import b/doc/demo_gui/image/viewport2.png.import new file mode 100644 index 0000000..908a0d8 --- /dev/null +++ b/doc/demo_gui/image/viewport2.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/viewport2.png-1d943d7f5c24ab4e99c366c03d9f6fe6.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://doc/demo_gui/image/viewport2.png" +dest_files=[ "res://.import/viewport2.png-1d943d7f5c24ab4e99c366c03d9f6fe6.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/doc/demo_gui/image/viewport3.png.import b/doc/demo_gui/image/viewport3.png.import new file mode 100644 index 0000000..fc1f893 --- /dev/null +++ b/doc/demo_gui/image/viewport3.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/viewport3.png-734f55dc82cb802d6dfe631a520b9a5d.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://doc/demo_gui/image/viewport3.png" +dest_files=[ "res://.import/viewport3.png-734f55dc82cb802d6dfe631a520b9a5d.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/doc/demo_gui/image/viewport4.png.import b/doc/demo_gui/image/viewport4.png.import new file mode 100644 index 0000000..1cf8f3c --- /dev/null +++ b/doc/demo_gui/image/viewport4.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/viewport4.png-793038a9881e92975602c6e8f009c1da.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://doc/demo_gui/image/viewport4.png" +dest_files=[ "res://.import/viewport4.png-793038a9881e92975602c6e8f009c1da.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/doc/demo_gui/image/viewport5.png.import b/doc/demo_gui/image/viewport5.png.import new file mode 100644 index 0000000..a795735 --- /dev/null +++ b/doc/demo_gui/image/viewport5.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/viewport5.png-209a34e806cc86df0b59a2c59ac44ee8.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://doc/demo_gui/image/viewport5.png" +dest_files=[ "res://.import/viewport5.png-209a34e806cc86df0b59a2c59ac44ee8.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/doc/demo_gui/image/viewport6.png.import b/doc/demo_gui/image/viewport6.png.import new file mode 100644 index 0000000..44d7631 --- /dev/null +++ b/doc/demo_gui/image/viewport6.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/viewport6.png-8e5f250bab17c6959fafe5fbf685d527.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://doc/demo_gui/image/viewport6.png" +dest_files=[ "res://.import/viewport6.png-8e5f250bab17c6959fafe5fbf685d527.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/doc/demo_gui/image/viewport7.png.import b/doc/demo_gui/image/viewport7.png.import new file mode 100644 index 0000000..0b0131f --- /dev/null +++ b/doc/demo_gui/image/viewport7.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/viewport7.png-aea8ac19413279de1f8e0b54de68447a.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://doc/demo_gui/image/viewport7.png" +dest_files=[ "res://.import/viewport7.png-aea8ac19413279de1f8e0b54de68447a.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/doc/demo_gui/image/viewport8.png.import b/doc/demo_gui/image/viewport8.png.import new file mode 100644 index 0000000..e531179 --- /dev/null +++ b/doc/demo_gui/image/viewport8.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/viewport8.png-aae2778e89c12eaf5a5109f83547bd78.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://doc/demo_gui/image/viewport8.png" +dest_files=[ "res://.import/viewport8.png-aae2778e89c12eaf5a5109f83547bd78.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/doc/demo_gui/image/viewport9.png.import b/doc/demo_gui/image/viewport9.png.import new file mode 100644 index 0000000..ca04e92 --- /dev/null +++ b/doc/demo_gui/image/viewport9.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/viewport9.png-1e42fb4fb94a46e7f1aeaa2948895441.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://doc/demo_gui/image/viewport9.png" +dest_files=[ "res://.import/viewport9.png-1e42fb4fb94a46e7f1aeaa2948895441.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/scene/demo_camera/mini.tscn b/scene/demo_camera/mini.tscn new file mode 100644 index 0000000..09081f8 --- /dev/null +++ b/scene/demo_camera/mini.tscn @@ -0,0 +1,14 @@ +[gd_scene load_steps=3 format=2] + +[ext_resource path="res://scene/demo_camera/move_camera.tscn" type="PackedScene" id=1] +[ext_resource path="res://scene/demo_camera/mini_viewport.tscn" type="PackedScene" id=2] + +[node name="Node2D" type="Node2D"] + +[node name="Node2D" parent="." instance=ExtResource( 1 )] + +[node name="CanvasLayer" type="CanvasLayer" parent="."] + +[node name="Control" parent="CanvasLayer" instance=ExtResource( 2 )] +margin_right = 0.0 +margin_bottom = 0.0 diff --git a/scene/demo_camera/mini_viewport.tscn b/scene/demo_camera/mini_viewport.tscn new file mode 100644 index 0000000..0688d5f --- /dev/null +++ b/scene/demo_camera/mini_viewport.tscn @@ -0,0 +1,30 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://scene/demo_camera/move_camera.tscn" type="PackedScene" id=1] + +[node name="Control" type="Control"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_right = -1024.0 +margin_bottom = -600.0 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="ViewportContainer" type="ViewportContainer" parent="."] +margin_left = 773.127 +margin_top = 444.248 +margin_right = 1023.13 +margin_bottom = 594.248 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="Viewport" type="Viewport" parent="ViewportContainer"] +size = Vector2( 250, 150 ) +handle_input_locally = false +render_target_update_mode = 3 + +[node name="Camera2D" type="Camera2D" parent="ViewportContainer/Viewport"] + +[node name="Node2D" parent="ViewportContainer/Viewport" instance=ExtResource( 1 )] diff --git a/scene/demo_camera/simple_viewport.tscn b/scene/demo_camera/simple_viewport.tscn new file mode 100644 index 0000000..5dc0084 --- /dev/null +++ b/scene/demo_camera/simple_viewport.tscn @@ -0,0 +1,38 @@ +[gd_scene load_steps=3 format=2] + +[ext_resource path="res://script/demo_camera/player.gd" type="Script" id=1] +[ext_resource path="res://icon.png" type="Texture" id=2] + +[node name="Node2D" type="Node2D"] + +[node name="icon" type="Sprite" parent="."] +position = Vector2( 73.0152, 64.7613 ) +texture = ExtResource( 2 ) + +[node name="Control" type="Control" parent="."] +margin_left = 1.0 +margin_right = 1024.0 +margin_bottom = 601.0 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="ViewportContainer" type="ViewportContainer" parent="Control"] +modulate = Color( 0.0352941, 0.894118, 0.65098, 1 ) +margin_left = 770.879 +margin_top = 437.506 +margin_right = 1020.88 +margin_bottom = 587.506 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="Viewport" type="Viewport" parent="Control/ViewportContainer"] +size = Vector2( 250, 150 ) +handle_input_locally = false +render_target_update_mode = 3 + +[node name="Sprite" type="Sprite" parent="Control/ViewportContainer/Viewport"] +position = Vector2( 100, 100 ) +texture = ExtResource( 2 ) +script = ExtResource( 1 ) diff --git a/scene/demo_test/demo_test.tscn b/scene/demo_test/demo_test.tscn index c2e723d..a7a625b 100644 --- a/scene/demo_test/demo_test.tscn +++ b/scene/demo_test/demo_test.tscn @@ -9,3 +9,5 @@ script = ExtResource( 1 ) [node name="icon" type="Sprite" parent="."] position = Vector2( 958.772, 540.059 ) texture = ExtResource( 2 ) + +[node name="Node2D" type="Node2D" parent="."]