128 Commits

Author SHA1 Message Date
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
db04a46510
[CORE][CHG] Adapt to camera API change 2022-12-18 16:49:37 +08:00
1dc9959936
[CORE][FIX] Fix header dependency 2022-12-18 16:49:20 +08:00
d98b057a67
[CORE][ADD] Camera ray generation 2022-12-18 16:44:34 +08:00
60ecd08ed1
[UI][CHG] Minor tweaking
- Change default window size (bigger)
2022-12-18 16:11:15 +08:00
e68149bd24
[CORE][ADD] HitRecord Class 2022-12-18 16:10:51 +08:00
10a78360ec
[CORE][CHG] Change Model API
- Remove old APIs related to boundary box
- Add new APIs for boundary generating
- Add APIs for hit test
- Add APIs for mesh data fetching
2022-12-18 16:10:22 +08:00
2977890457
[CORE][ADD] Boundary Class
- Hit test (AABB method)
- API to update current boundary by new point
2022-12-18 16:09:25 +08:00
0d4a22f0ce
[CORE][ADD] Add hit API to Mesh
- Moller Trumbore algorithm is used
2022-12-18 16:08:35 +08:00
308dd81f06
[CORE][CHG] Change boundary APIs
- Add 'updateBoundary' func to update boundary after transformation
- Add 'hit' to get the hit record of a ray
2022-12-18 16:07:58 +08:00
4732c0810c
[CORE][ADD] Ray Class Implementation 2022-12-18 16:06:40 +08:00
a924b4dd30
[CORE][ADD] Ray class 2022-12-18 13:55:17 +08:00
44417cd6ec
[CORE][FIX] Fix sky box rotation 2022-12-18 11:01:10 +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
3158ced31b
[CORE][CHG] Shader update
- Update shader to accept multiple lights
- Add light count uniform
- Clean up code
2022-12-18 10:05:02 +08:00
05a5494693
[CORE][CHG] Update illuminer API
- Add logger to 'updateShader' func
- Add 'toWorldSpace' transform
2022-12-18 10:04:06 +08:00
032d346151
[CORE][ADD] Add light API & function to renderable 2022-12-18 10:03:17 +08:00
aeaac1833f
[CORE][CHG] Add logger in texture loader 2022-12-18 10:02:39 +08:00
b2bcba75ea
[CORE][FIX] Fix illuminer shader update API
- Add index parameter
2022-12-17 22:40:52 +08:00
9604e68aa4
[CORE][ADD] Illuminer Implementation 2022-12-17 22:27:22 +08:00
2ecf3bd14c
[CORE][CHG] Illuminer API 2022-12-17 21:51:50 +08:00
cc9ae662a8
Merge lighting 2022-12-17 15:03:52 +08:00
bef49b7499
Change variable names 2022-12-17 13:19:55 +08:00
849da430e9
Remove invalid code units 2022-12-17 13:09:52 +08:00
Linloir
b87f2d04d9
Merge branch 'master' into ui_dev 2022-12-17 13:03:04 +08:00
Linloir
468798b2e2
Update renderable.cpp 2022-12-17 12:05:23 +08:00
Linloir
8c4eb6284b
Update mesh.h 2022-12-17 12:04:48 +08:00
795b542dda
Adapt to previous changes
- Tested version, runnable
2022-12-17 11:43:22 +08:00
edeaa7f3c6
[UI][ADD] Model selection list 2022-12-17 11:42:32 +08:00
ffa0ac065a
[UI][ADD] Model selectable item button 2022-12-17 11:42:18 +08:00
d818ccd469
[UI][ADD] Model thumbnail widget 2022-12-17 11:41:55 +08:00
5ff60b1e86
[UI][FIX] Fix color name in style sheet 2022-12-17 11:41:41 +08:00
2fd1d6db24
[CORE][ADD] Enable cross context model transferring
- Reload texture on another context
- Copy meshes
- [BUG] memory leak (not fixed yet)
2022-12-17 11:41:13 +08:00
e6bab8a345
[UI][FIX] Fix sidebar color stylesheet
- Include alpha value
2022-12-17 11:39:03 +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
0e1edcc588
[UI][ADD] Scroll List widget
- transplanted from previous work
2022-12-16 21:45:11 +08:00
be3eda82f2
[UI][UPD] Minor updates
- Tested version (Can build & run)
2022-12-16 17:54:22 +08:00
e5abe8c248
[UI][ADD] About Page 2022-12-16 17:53:54 +08:00
43c610ed3e
[UI][CHG] Change pushbutton color generation
- Change default background alpha to 0
2022-12-16 17:53:28 +08:00
b60a35b92d
[UI][FIX] Fix rounded corner widget
- Fix re-initialize bug causing multiple borders
2022-12-16 17:52:57 +08:00
c873268885
[UI][FIX] Sidebar effect update
- Change animation curve
- Change collapsed width
2022-12-16 17:52:23 +08:00
67bf979db5
[UI] Line edit component 2022-12-16 17:51:45 +08:00
ayachi3
759f4ad688 add shininess attribute in mesh class 2022-12-16 16:03:53 +08:00
75f3eef152
[UI] Update main appearance
- Rounded corner window
- Side bar
- Rounded corner view port
2022-12-16 11:18:28 +08:00
ea4c3dcc7e
[UI] Create EditorPage
- Adjusted Sceneviewer for embedding
2022-12-16 11:17:58 +08:00
b198e4d7c5
[UI] Add abstract base class PageWidget
- Used for creating pages suitable for side bars
- stage on and stage off animation
2022-12-16 11:17:09 +08:00