71 Commits

Author SHA1 Message Date
Linloir
e59cac7408
Remove old license 2022-12-16 19:50:33 +08:00
Linloir
76bf08d815
Change license to GPL v3
According to the QT License documentation at https://doc.qt.io/qt-6/licensing.html
2022-12-16 19:49:13 +08:00
Liu Yuming
7aba45cdfe
Merge pull request #2 from Linloir/boundingBox
Bounding box
2022-12-14 17:10:25 +08:00
Liu Yuming
8fa81048c3
Merge branch 'master' into boundingBox 2022-12-14 17:06:51 +08:00
984c53340c
UI update: frameless window
- window skeleton
- multi screen resize support
- auto maximize
2022-12-14 08:41:47 +08:00
7f46566c64
Fix texture loading
- Fix corrupted texture by reverse y-axis
2022-12-13 21:10:38 +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
ayachi3
95c899f546 change sequence of model * rotation 2022-12-13 20:25:16 +08:00
胤龙
59dc5f9e74 第三人称camera
目前是以0,0,0为中心旋转
2022-12-13 20:17:52 +08:00
ayachi3
cef83fe19e fix bug and add test code 2022-12-13 20:09:50 +08:00
ayachi3
13bd34973c implement check_boundary 2022-12-13 19:02:44 +08:00
ayachi3
5ec0a5718e modify constructor of renderable and update skeleton 2022-12-13 17:23:11 +08:00
ayachi3
cabdc8b5e8 add comment to remind user 2022-12-13 16:48:47 +08:00
ayachi3
14a3a08bf6 add check_boundary 2022-12-13 16:42:44 +08:00
069aca1cf2
Add camera movement
- Add camera API
- Add mouse event
- Add member
2022-12-13 16:30:49 +08:00
ayachi3
30fe45b773 define function to get boundary 2022-12-13 16:03:28 +08:00
ayachi3
b145dbc567 set boundary in loop 2022-12-13 15:54:19 +08:00
ayachi3
a7212b893e 添加包围盒的两个顶点 2022-12-13 15:41:19 +08:00
ayachi3
68cbbbafe4 添加包围盒的两个顶点 2022-12-13 15:37:50 +08:00
ayachi3
01bfc5065d 添加包围盒的两个顶点 2022-12-13 15:25:01 +08:00
f5f2247274
Update Camera class
- remove roll
- add constructor (position, yaw, pitch)
- add API setPosition(pos)
- set default zoom to 90
2022-12-13 13:52:15 +08:00
a49f215928
Set matrix when rendering 2022-12-13 13:51:03 +08:00
b9ce5af24b
Minor fixes 2022-12-13 13:07:34 +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
c911ac1613
Fix model loading
- Fix texture path storing full path instead of texture name making the texture loaded check always fail
2022-12-13 12:26:58 +08:00
b6b0da76d4
Merge branch 'master' of https://github.com/Linloir/SceneEditor 2022-12-13 10:52:22 +08:00
5f07f8896c
Fix set uniform methods
- Move wrongly placed methods (Shader -> ShaderProgram)
- Set methods as 'inline'
- Use overload
- Check for uniform validity
2022-12-13 10:52:11 +08:00
9d0aec3756
Fix set uniform methods 2022-12-13 10:48:25 +08:00
胤龙
4c137d1e9f 给shader添加了uniform的功能
直接添加在基类Shader中的
2022-12-13 10:34:09 +08:00
df6ebf1157
Fix shader program attaching shader
- Add link function
2022-12-13 10:19:10 +08:00
e02160435a
Add id check when disposing ebo and vbo 2022-12-13 10:12:57 +08:00
58593822a3
Add extra checks to ebo, vao and vbo 2022-12-13 10:10:10 +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
7ce0a4e27d
Add "ensureInitialize" function and now we can make empty objects 2022-12-13 09:43:54 +08:00
ayachi3
0cc3672c33 update model to set LOADED 2022-12-13 09:43:43 +08:00
38731299fd
Revert "Revert "Add model for testing""
This reverts commit 28332745b9efdfc54da033539c70ded9e4ca0cd8.
2022-12-13 09:08:31 +08:00
28332745b9
Revert "Add model for testing"
This reverts commit 74bb98d56817a5a0d966168f7b8dbf8e4660f11a.
2022-12-13 09:07:41 +08:00
74bb98d568
Add model for testing 2022-12-13 09:06:29 +08:00
c9667342bf
Add shader files to qrc 2022-12-13 08:58:32 +08:00
258423ccae
Test for qrc 2022-12-13 08:58:03 +08:00
7f7d99caa8
Change test layout 2022-12-13 08:18:17 +08:00
8c990f447f
Change shader version 2022-12-13 08:17:55 +08:00
451d3e0c35
Fix shader compiler 2022-12-12 23:40:07 +08:00
f0a44afb4a
Hello Triangle Test 2022-12-12 23:29:29 +08:00