56 Commits

Author SHA1 Message Date
e1cfd3932c
[CORE][FIX] Fix placing (partial)
- Change placing calculation logic (without sticking)
- Sticking still not working
2022-12-20 00:30:17 +08:00
36225d7ea3
[CORE][FIX] Null safety
- prevent hit test to null terrain
- prevent not initialized model (wrong path)
2022-12-19 22:17:02 +08:00
Linloir
e88edfcb02
Merge branch 'master' into terrain_merge 2022-12-19 21:36:09 +08:00
3455cbf9e1
[CORE][ADD] Settings page 2022-12-19 21:31:03 +08:00
胤龙
35b940a0fe 地形图hittest越界问题 2022-12-19 20:31:42 +08:00
8bdf5cc390
[CORE][ADD] Embed terrain hit test 2022-12-19 19:29:33 +08:00
8c6e6ec16c
Merge terrain 2022-12-19 19:11:27 +08:00
cad41559b1
[UI][ADD] Add API in SceneViewer
- signals
  - onSelect
  - onUpdate
  - onHover
- slots
  - setDragFlag
  - clearDragFlag
  - deleteObject
2022-12-19 17:08:24 +08:00
胤龙
16fba2241e 地形图完成 2022-12-19 12:06:22 +08:00
胤龙
e6b97f5363 地形cpu版本不加贴图 2022-12-19 09:18:50 +08:00
fe305c49aa
[CORE][ADD] Add model from model selector
- Add slot API in sceneviewer
- Add connection in editor page widget
2022-12-19 00:42:38 +08:00
64f65a2555
[CORE][ADD] Click selection test
- Hover detection
- Click detection
- Move / Scale / Rotate(have bug)
- Bounding box display
- Gesture done
2022-12-18 23:48:20 +08:00
947cd9b445
[TEST] Bounding Box Test 2022-12-18 20:05:25 +08:00
9d95220073
[CORE][FIX] Hit test fix
- Add critical debug logs
- Change transforming ray to local space to transforming vex to world space (because of scaling)
- Fix not updating bounding box causing hit test failure
2022-12-18 18:07:18 +08:00
98a1321af2
[CORE][ADD] Hit Test 2022-12-18 17:30:46 +08:00
胤龙
ada32313b8 地形图的hitpoint
使用线性搜索法
2022-12-18 16:59:14 +08:00
db04a46510
[CORE][CHG] Adapt to camera API change 2022-12-18 16:49:37 +08:00
60ecd08ed1
[UI][CHG] Minor tweaking
- Change default window size (bigger)
2022-12-18 16:11:15 +08:00
胤龙
15bcb698bd 修改后的天空盒 2022-12-18 11:09:49 +08:00
957713cda7
[CORE][CHG] SkyBox Test 2022-12-18 10:49:07 +08:00
12f32f5c07
[CORE][ADD] SkyBox Merge 2022-12-18 10:24:54 +08:00
2f4f7b0df1
[CORE][ADD] Light Test Version
- Add point light to the left object
- Add ideal distance test
2022-12-18 10:05:42 +08:00
胤龙
fe28e220ea 将项目中的绝对地址全部改为相对地址了 2022-12-17 17:04:53 +08:00
胤龙
a17c51157e 地形图完成 2022-12-17 16:54:07 +08:00
胤龙
babcdc4832 地形能显示出来了
但一旦显示出来模型就无法显示
2022-12-17 16:19:55 +08:00
cc9ae662a8
Merge lighting 2022-12-17 15:03:52 +08:00
795b542dda
Adapt to previous changes
- Tested version, runnable
2022-12-17 11:43:22 +08:00
ayachi3
f62b15eabd add interface in sceneviewer 2022-12-17 00:32:24 +08:00
ayachi3
f26402461a add function to provide interface 2022-12-16 23:05:08 +08:00
ayachi3
759f4ad688 add shininess attribute in mesh class 2022-12-16 16:03:53 +08:00
ea4c3dcc7e
[UI] Create EditorPage
- Adjusted Sceneviewer for embedding
2022-12-16 11:17:58 +08:00
ayachi3
d181aefde7 lighting without abstraction 2022-12-15 18:43:04 +08:00
ayachi3
8adf864c39 将文件的复制与给予权限抽象成一个函数。
添加光照渲染函数
2022-12-15 16:13:52 +08:00
胤龙
754d6050d8 地形图开发中
未完成
2022-12-15 15:45:24 +08:00
ayachi3
df803c8dea add light and change shader 2022-12-15 11:23:52 +08:00
ayachi3
294cf7efb3 lighting v0.0 2022-12-14 20:14:16 +08:00
胤龙
12aac4c2e7 skybox基本实现
实现了skybox类,添加了一个skybox着色器,能正常显示,目前的bug为贴图上下颠倒
2022-12-14 19:30:48 +08:00
胤龙
608b0fb71a skybox v0.0
旧UI最后版本存档
2022-12-14 17:49:43 +08:00
2511dedf8c
Fix Camera
- Update rotate methods
- Fix view matrix function
2022-12-13 20:47:01 +08:00
Linloir
061461332b
Merge pull request #1 from Linloir/camera_linloir
Update Camera
2022-12-13 20:43:01 +08:00
1792c296c7
Update Camera
- Fix precision loss when rotating (by extracting the locked distance and multiply it back after rotating)
- Implement a new way of rotating the camera: locked center distance
2022-12-13 20:35:46 +08:00
胤龙
59dc5f9e74 第三人称camera
目前是以0,0,0为中心旋转
2022-12-13 20:17:52 +08:00
069aca1cf2
Add camera movement
- Add camera API
- Add mouse event
- Add member
2022-12-13 16:30:49 +08:00
a49f215928
Set matrix when rendering 2022-12-13 13:51:03 +08:00
3ee5f66779
Fix QFile not overriding existing shader
- fix shader not responding to changes
2022-12-13 13:07:19 +08:00
955c8da52e
Update mesh class
- set vertex attribute on setup mesh
- use new API of shader.setUniform
2022-12-13 12:29:54 +08:00
e203ee0ff3
Merge 2022-12-13 10:06:28 +08:00
107f3ce87a
Add extra checks when dispose and ensureInitialized 2022-12-13 10:04:25 +08:00
b5e5b4cfa9
Fix compile time errors 2022-12-13 09:56:34 +08:00
ayachi3
59c4b24a98 modify model to add LOADED status 2022-12-13 09:54:55 +08:00