171 Commits

Author SHA1 Message Date
ayachi3
294cf7efb3 lighting v0.0 2022-12-14 20:14:16 +08:00
胤龙
90c74c1143 skybox实现 2022-12-14 19:37:57 +08:00
胤龙
b760a031db Create skybox.h 2022-12-14 19:31:10 +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
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
e88498cf20
Adjust button ui 2022-12-14 15:54:11 +08:00
f3b6f1759e
Update button
- add alignment API
- fix generate color function
- fix no alpha in style qss
- add fetch layout API
- bugfix
- adjust default color scheme
2022-12-14 15:21:09 +08:00
02f6ec97e6
Modulization
- Abstract out frameless window
2022-12-14 15:19:27 +08:00
d19374f24e
UI Update
- Push Button widget
2022-12-14 14:26:05 +08:00
5df2f8e34b
UI Update:
- Frameless window widget
2022-12-14 14:25:38 +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
68cbbbafe4 添加包围盒的两个顶点 2022-12-13 15:37:50 +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
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
胤龙
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
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