Commit graph

52 commits

Author SHA1 Message Date
xemuth
906b89b2ae SurfaceCtrl: Added skybox, it now show it by default
git-svn-id: svn://ultimatepp.org/upp/trunk@14900 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-25 13:26:30 +00:00
xemuth
8d9e748912 SurfaceCtrl: fixed some bug
git-svn-id: svn://ultimatepp.org/upp/trunk@14888 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-23 22:39:14 +00:00
xemuth
b8363ba9af SurfaceCtrl: Now mesh can get textured, see SurfaceCtrl_demo
git-svn-id: svn://ultimatepp.org/upp/trunk@14886 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-23 20:48:32 +00:00
xemuth
fcc81ec62e SurfaceCtrl: Now using assimp to perform model loading, It work well. Note that you need to use USEMALLOC flag :(
git-svn-id: svn://ultimatepp.org/upp/trunk@14876 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-22 15:56:20 +00:00
xemuth
b19d802ec4 SurfaceCtrl: Added Mesh class, Now object3D carry Mesh ( it will allow loading of complexe obj file)
git-svn-id: svn://ultimatepp.org/upp/trunk@14865 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-22 01:33:49 +00:00
xemuth
2a1396969d SurfaceCtrl: Smale function name change (SetDefaultShader) instead of (AddDefaultShader)
git-svn-id: svn://ultimatepp.org/upp/trunk@14861 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-21 16:31:17 +00:00
xemuth
dcef957b63 SurfaceCtrl: Updated Shader, Made everythings easier, allowing object3D to carry program, Have clean many useless shader
git-svn-id: svn://ultimatepp.org/upp/trunk@14860 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-21 16:17:45 +00:00
xemuth
dc17fbd033 SurfaceCtrl: Removed many constructor of Object3D, Added a move semantic to Object3D, field has been prepared to receive texture...
git-svn-id: svn://ultimatepp.org/upp/trunk@14857 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-21 14:52:33 +00:00
xemuth
429bf65b43 SurfaceCtrl: Big update, new Stl Loader (allowing to load stl without using surface)
git-svn-id: svn://ultimatepp.org/upp/trunk@14854 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-21 02:00:08 +00:00
xemuth
f8ca63a90f SurfaceCtrl: Bounding box generation have been moved to Object3D instead of using the Surface Env
git-svn-id: svn://ultimatepp.org/upp/trunk@14851 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-20 21:06:21 +00:00
xemuth
6aeb4510d6 SurfaceCtrl: Readded Shift mouse move
git-svn-id: svn://ultimatepp.org/upp/trunk@14850 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-20 20:18:28 +00:00
xemuth
50af63544d SurfaceCtrl: Major Update, First re factoring of code, not yet finished but in good progress.
git-svn-id: svn://ultimatepp.org/upp/trunk@14849 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-20 20:05:14 +00:00
xemuth
9446534e4a SurfaceCtrl: Updated Transform object (fixing a bug with rotation) updated Object3DProvider (bug with axis)
git-svn-id: svn://ultimatepp.org/upp/trunk@14848 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-20 13:50:33 +00:00
xemuth
c870441ee1 SurfaceCtrl: fix first rotation issue
git-svn-id: svn://ultimatepp.org/upp/trunk@14840 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-19 18:01:43 +00:00
xemuth
28d12915a0 SurfaceCtrl: Adding Timer (delta / ellapsed Time) + FastMode (enable perma refreshing or when action refreshing) + Auto resize
git-svn-id: svn://ultimatepp.org/upp/trunk@14839 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-19 17:19:28 +00:00
xemuth
697b9d1143 SurfaceCtrl: Added option to delete object
git-svn-id: svn://ultimatepp.org/upp/trunk@14830 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-18 14:42:46 +00:00
xemuth
34c28c34a5 SurfaceCtrl: added pointLight implementation, placed it at origin by now (temporary)
git-svn-id: svn://ultimatepp.org/upp/trunk@14826 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-15 19:21:43 +00:00
xemuth
029f616df0 SurfaceCtrl: Added Zoom on Object feature, it will now zoom on object when cursor is on
git-svn-id: svn://ultimatepp.org/upp/trunk@14824 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-15 16:02:17 +00:00
xemuth
c28765d3ae SurfaceCtrl: improved click select, added multi selection via shift + click
git-svn-id: svn://ultimatepp.org/upp/trunk@14823 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-15 15:25:14 +00:00
xemuth
02cb43b94f SurfaceCtrl: Adding click and drag
git-svn-id: svn://ultimatepp.org/upp/trunk@14822 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-14 15:26:34 +00:00
xemuth
608dec743f SurfaceCtrl: Changed Vector to Array
git-svn-id: svn://ultimatepp.org/upp/trunk@14815 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-13 15:43:48 +00:00
xemuth
e4e8db586a SurfaceCtrl: quick update
git-svn-id: svn://ultimatepp.org/upp/trunk@14813 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-13 15:03:51 +00:00
xemuth
81dce2ce48 SurfaceCtrl: added multiple Selection control, allowing to have multiple object on screen
git-svn-id: svn://ultimatepp.org/upp/trunk@14810 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-13 14:41:24 +00:00
xemuth
4c20f9306a SurfaceCtrl: updated magic camera, now the camera will attempt to zome on focus if user is too far from it, focus can be changed by clicking object to focus, when pressing escape, focus is reset to 0 0 0
git-svn-id: svn://ultimatepp.org/upp/trunk@14806 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-13 01:51:07 +00:00
xemuth
8484b533e0 SurfaceCtrl: Updating camera and BoundingBox
git-svn-id: svn://ultimatepp.org/upp/trunk@14805 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-13 01:22:22 +00:00
xemuth
bc45bec0c0 SurfaceCtrl: Magic camera first commit
git-svn-id: svn://ultimatepp.org/upp/trunk@14802 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-12 16:45:59 +00:00
xemuth
d350aeade7 SurfaceCtrl: Refactorisation of Camera class, start of new camera named magic camera
git-svn-id: svn://ultimatepp.org/upp/trunk@14801 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-12 14:46:49 +00:00
xemuth
c8beb4192f SurfaceCtrl: added picking mecanique via Raytracing, you can now click on object to show their hitbox ! (Camera need a rework, again...)
git-svn-id: svn://ultimatepp.org/upp/trunk@14794 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-12 01:10:24 +00:00
xemuth
58a456288e SurfaceCtrl: premise of ray tracing picking
git-svn-id: svn://ultimatepp.org/upp/trunk@14793 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-11 16:06:57 +00:00
xemuth
16fff43fe6 SurfaceCtrl: Added bounding box, (picking from ray tracing and dynamic rotation axis is coming)
git-svn-id: svn://ultimatepp.org/upp/trunk@14790 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-11 14:22:52 +00:00
xemuth
fb68aaf46a SurfaceCtrl: Translation via Shift+MouseWheelClick
git-svn-id: svn://ultimatepp.org/upp/trunk@14789 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-11 12:30:58 +00:00
xemuth
a305038cd7 SurfaceCtrl: Added a new sketchup camera working differently
git-svn-id: svn://ultimatepp.org/upp/trunk@14788 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-11 02:20:12 +00:00
xemuth
6d95d107a4 SurfaceCtrl: Orthogonal view now center on object
git-svn-id: svn://ultimatepp.org/upp/trunk@14785 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-10 15:42:58 +00:00
xemuth
a8b7d89d3b SurfaceCtrl: added MemoryIgnoreLeaksBlock and Fixed Orthographic camera
git-svn-id: svn://ultimatepp.org/upp/trunk@14781 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-10 13:49:42 +00:00
xemuth
92dec7f0a2 SurfaceCtrl: fixing return issue, and left mouse handler
git-svn-id: svn://ultimatepp.org/upp/trunk@14779 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-09 15:45:42 +00:00
xemuth
4ed2726841 SurfaceCtrl: Added a forceZoom feature, press Ctrl while mousewheel to force zoom without translating camera
git-svn-id: svn://ultimatepp.org/upp/trunk@14778 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-09 01:32:28 +00:00
xemuth
49068d85b9 SurfaceCtrl: New zoom/dezoom it's now like a SketchupCamera !
git-svn-id: svn://ultimatepp.org/upp/trunk@14777 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-09 01:19:14 +00:00
xemuth
d39162ba3a SurfaceCtrl: New way of moving camera arround using left mouse
git-svn-id: svn://ultimatepp.org/upp/trunk@14776 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-08 23:34:54 +00:00
xemuth
8cd930a717 SurfaceCtrl: Fixed bug about focus and zoom, improved the way trackball is handled
git-svn-id: svn://ultimatepp.org/upp/trunk@14774 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-07 21:51:25 +00:00
xemuth
711b0273e6 SurfaceCtrl: Fixed the way Trackball and zoom is working (it now work with different focus point)
git-svn-id: svn://ultimatepp.org/upp/trunk@14773 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-07 20:08:26 +00:00
xemuth
0be991aee8 SurfaceCtrl: Updated the zoom in SketchupCamera, it's now smooth !
git-svn-id: svn://ultimatepp.org/upp/trunk@14772 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-07 17:28:01 +00:00
xemuth
7a5536cd09 SurfaceCtrl: updated the main camera, Updated Transform object, Improved how camera is moving arround axis
git-svn-id: svn://ultimatepp.org/upp/trunk@14770 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-07 15:17:04 +00:00
xemuth
85ca624669 SurfaceCtrl: removed SetFocus() on MouseMove
git-svn-id: svn://ultimatepp.org/upp/trunk@14763 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-06 15:16:06 +00:00
xemuth
72c395818d SurfaceCtrl: fixed key button to move left (changed from A to Q)
git-svn-id: svn://ultimatepp.org/upp/trunk@14761 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-06 14:35:24 +00:00
xemuth
2c637956b7 SurfaceCtrl: Updated the SurfaceCtrl to improve Qwerty keyboard usage
git-svn-id: svn://ultimatepp.org/upp/trunk@14760 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-06 13:08:39 +00:00
xemuth
4f482b3700 SurfaceCtrl: Added a freeCamera, swapping to it by pressing MouseWheel, SurfaceCtrl now work with a camera ptr
git-svn-id: svn://ultimatepp.org/upp/trunk@14759 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-06 13:07:36 +00:00
xemuth
08e6b6ca22 SurfaceCtrl: Added premise of camera mouvement, press MouseWheel to allow camera to move freely then press ZQSD(French keyboard) to move around (this solution is temporary and will be improved
git-svn-id: svn://ultimatepp.org/upp/trunk@14753 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-05 14:41:49 +00:00
xemuth
6e92879e0a SurfaceCtrl: Changed the way zooming is working (FOV zoom instead of real zoom)
git-svn-id: svn://ultimatepp.org/upp/trunk@14748 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-04 13:54:05 +00:00
xemuth
5a7ecc7145 SurfaceCtrl: added material object allowing modification of light reflection property on object3D, added SetLineWidth and GetLineWidth to change line drawing width
git-svn-id: svn://ultimatepp.org/upp/trunk@14747 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-03 14:54:38 +00:00
xemuth
e3ec6c4b2c SurfaceCtrl: Added axis, show it by pressing A
git-svn-id: svn://ultimatepp.org/upp/trunk@14744 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-08-01 20:35:23 +00:00