TODO.txt 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. --------- ALL LONG TERM TASKS / FIXES BELONG TO GOOGLE DOCS: ImplementationTODO OR PossibleImprovements ----------
  2. ----------------------------------------------------------------------
  3. Assembly refresh
  4. When serializing Camera I cannot save the reference to RenderTexture. Make it a Resource?
  5. Possibly set up automatic refresh in debug mode after initialization? As an ad-hoc unit test
  6. Modal windows are set up as persistent but I don't serialize their internal data anywhere
  7. ----------------------------------------------------------------------
  8. C# Material/Shader:
  9. TODO - Implement param block and sampler support
  10. TODO - When creating a Material without a shader, a default one should be used, at least in editor
  11. TODO - Setting Material array parameters isn't possible from C#
  12. GUIResourceField doesn't distinguish between tex2d, tex3d and texcube.
  13. ---------------------------------------------------------------------
  14. ProjectLibrary import
  15. I'm not sure if queued dependencies are handled properly. They're handled on an internal ProjectLibrary loop but perhaps I should
  16. return them in checkForModifications?
  17. ---------------------------------------------------------------------
  18. Prefab diff
  19. Add "dirty object" system to C#. Each ScriptResource and ScriptGameObject should have a dirty flag.
  20. - It should be toggle-able via EditorUtility.SetDirty or similar. (Possibly make this part of ProjectLibrary)
  21. - There should also be a method to check if something is dirty via EditorUtility.IsDirty or similar. (Possibly make this part of ProjectLibrary)
  22. - Hook this up to Scene.IsModified because it is currently not implemented (Might need to keep a link to active Prefab in scene to do this)
  23. - Add a "Save Project" button that automatically saves all dirty assets. Do this automatically when user quits the editor.
  24. - Call SetDirty manually whenever:
  25. - A new object or component is added to the scene
  26. - An object or component is removed from the scene
  27. - An object is reparented
  28. - When component or resource is modified from inspector
  29. - Record all portions where objects & components get modified so I can mark them dirty, will likely need
  30. to use those some points for undo/redo
  31. Test (likely later once I have more editor functionality working):
  32. - Game object handle compare
  33. - ID restore systems
  34. - Native+Managed diff (only the link between the two)
  35. Code quality improvements:
  36. - Modify BinarySerializer so that _encodeIntermediate outputs intermediate format directly without a full on encode
  37. - Consider making ManagedSerializable* array/list/dictionary method/field references static (right now each instance has its own instance
  38. but they're identical)
  39. ----------------------------------------------------------------------
  40. Polish
  41. Move data folder within current repo
  42. - Store default layout asset in Data/Editor folder
  43. - Store data generated by editor runtime at Data/Runtime
  44. Test:
  45. - Opening a new project initially
  46. - Opening a previous project automatically
  47. - Browse for project
  48. - Create project
  49. - See if recent project list is populated and interactable
  50. - Finally test if opening/creating a project while another one is open is possible
  51. - Also test save project
  52. Ribek use:
  53. - Hook up color picker to guicolor field
  54. - When starting drag from hierarchy tree view it tends to select another object (can't repro)
  55. - UseCustomInspector isn't implemented
  56. - Camera, Renderable, Material, Texture inspector
  57. - Test release mode
  58. - Ability to create assets in Project view (At least Material)
  59. - (Optionally, needed for GUI editing) GUISkin resource inspector & a way to inspect and save the default editor skin
  60. First screenshot:
  61. - Additional menu bar items:
  62. - Edit: Undo/Redo, Cut/Copy/Paste/Duplicate/Delete(need to make sure it works in Hierarchy, with shortcuts), Frame Selected, Preferences, Play/Pause/Step, View/Move/rotate/scale
  63. - Assets (also add to context): Create(Folder, Material, Shader, Script, Prefab, GUI Skin), Show in explorer
  64. - Game Object (also add to context): Create(Empty, Empty Child, Camera, Renderable, Point/Spot/Directional Light), Apply prefab, Break prefab, Revert prefab
  65. - Possibly create helper objects: Cube, Sphere, Plane, Quad, Capsule, Cylinder
  66. - Help - About, API Reference (link to site)
  67. - (Optionally) New UI look (tabs, component/array containers, better buttons)
  68. - Foldout in scene tree view is hard to click, make it bigger
  69. - (Optionally) Console window
  70. Other polish:
  71. - Crash on shutdown in mono_gchandle_free
  72. - C# inspectors for Point/Spot/Directional light
  73. - C# interface for Font
  74. - Handle seems to lag behind the selected mesh
  75. - ProjectLibrary seems to import some files on every start-up
  76. - Replace "minimize" button in tabbed title bar with maximize and make sure it works (in both docked and floating mode)
  77. - When I expand inspector elements and them come back to that object it should remember the previous state
  78. - Add a chaching mechanism to inspector (likely based on instance ID & property names)
  79. - This has to work not only when I come back to the object, but whenever inspector rebuilds (e.g. after removing element from array)
  80. - Consider saving this information with the serialized object
  81. - Import option inspectors for Texture, Mesh, Font
  82. Stage 2 polish:
  83. - Inject an icon into an .exe (Win32 specific)
  84. - Prefabs
  85. - Game window
  86. - Game play/pause/step (+ save/restore objects on play/pause switch)
  87. - Resource hotswap
  88. - C# script compiling in editor
  89. - VS integration
  90. - When managed exception happens log an error and continue execution
  91. - Game publishing (Build window, collect resources, output exe, default viewport) (described below)
  92. Finalizing:
  93. - Add copyright notices in all files & change license to GPL
  94. - Move all the code files into subfolders so their hierarchy is similar to VS filters
  95. - Splash screen
  96. - Settings/Preferences window
  97. - Documentation
  98. - Need to generate a proper merge of dev and preview branches
  99. - (Optionally) GUI tabbing to switch between elements
  100. - Undo/Redo
  101. - CmdRecordSO records an SO and all its children but it should only record a single SO
  102. - CmdRecordSO should instead of recording the entire object record a diff
  103. - There should be a CmdRecordSO equivalent for resources (probably)
  104. - Add commands for breaking or reverting a scene object
  105. - Test & finalize undo/redo system
  106. - Update GUISlider so it works with the new style (and to have min/max limits, plus step size)
  107. - Add "focus on object" key (F) - animate it: rotate camera towards then speed towards while zooming in
  108. - Ortographic camera views (+ gizmo in scene view corner that shows camera orientation)
  109. - Drag to select in scene view
  110. - MenuBar - will likely need a way to mark elements as disabled when not appropriate (e.g. no "frame selected unless scene is focused")
  111. - Likely use a user-provided callback to trigger when populating the menus
  112. - Need to list all script components in the Components menu
  113. ----------------------------------------------------------------------
  114. Build system
  115. - Test Resources (if loading works and if they're properly packaged in build)
  116. - The final build procedure for the game should be:
  117. - Copy all the prebuilt binaries (Banshee libraries, Banshee assemblies, 3rd party libraries and prebuilt executable) from Editor install folder to output folder
  118. - Which set of binaries is used depends on selected platform (e.g. win/mac/linux or 32/64bit)
  119. - Recompile script assemblies if needed and copy them from project Internal folder to output folder
  120. - Copy the Builtin resources for engine from Editor install folder to output folder
  121. - Copy all the resources marked with the flag mentioned above to \Data subfolder in the output folder, preserving the same asset structure
  122. - Make sure to go over texture resources and ensure they are saved in the valid format
  123. as we don't want to do format conversion at runtime (Not cruical, but it should be done eventually)
  124. - This should something similar to Unity where when changing the platform all resources get reimported
  125. - Make sure to clear all prefab diffs (possibly store them elsewhere in the first place)
  126. - And all prefab instances should have updateFromPrefab called on them.
  127. ----------------------------------------------------------------------
  128. Other
  129. There is a memory corruption happening. Haven't determined where exactly but it's possible it has something
  130. to do with the opening of ColorPicker window. One time I got a heap read after delete error caused by GUIManager
  131. attempting to allocate a new transient mesh, and another time I got a hang when inserting a script object into a std::set.
  132. Got a crash on shutdown that was caused by locking a mutex in an Event destructor. Event was Platform::onMouseCaptureChanged.
  133. Issue happened when I closed the app via the X button (if that's relevant). It doesn't seem to happen always.
  134. - This is likely due to some other error. When VS finds an exception it triggers a dialog box which triggers the msg loop in-engine and causes another exception.
  135. /*********************************************************************/
  136. /************************ LESS IMPORTANT *****************************/
  137. /*********************************************************************/
  138. ----------------------------------------------------------------------
  139. Mono notes
  140. I can get mono errors by checking g_print calls in goutput.c
  141. - Calling thunks incorrectly can cause those weird errors with no real callstack
  142. Running embedded mono with VS attached causes managed null refs to be registered as access violations
  143. There seems to be a bug in Mono when passing complex structs from C# to C++. e.g. passing Rect3 as a parameter
  144. will corrupt the parameter after it, even if layout and size is exact as the C++ version.
  145. Rect3 has child structs (Vector3) which could be the reason. Be aware of other similar problems.
  146. Mono cannot marshal structures? Taken from their documentation:
  147. Internal calls do not provide support for marshalling structures. This means that any API calls that take a structure
  148. (excluding the system types like int32, int64, etc) must be passed as a pointer, in C# this means passing the value as a "ref" or "out" parameter.
  149. ----------------------------------------------------------------------
  150. MenuItem
  151. - Add keyboard controls to GUIMenuBar (left/right arrows should move between entries if user is not browsing a sub-menu)
  152. - esc should cancel out of the menu bar
  153. - alt should focus the menu bar
  154. ----------------------------------------------------------------------
  155. VisualStudio integration
  156. - VS integration will likely not work with VSExpress or Community edition
  157. - VSExpress doesn't support EnvDTE so the only option is to open it using a shell command which doesn't seem to offer precise parameters
  158. - Community edition should work similarily to Pro, but might have a different executable and/or registry paths
  159. - Make sure that 3rd party assemblies can be imported in the project, and that they are properly referenced in VS project generation and compilation
  160. ----------------------------------------------------------------------
  161. Script compilation
  162. - I need to hook up script compilation with assembly refresh, and the build system.
  163. - e.g. when recompiling inside the editor it should automatically start compiling when changes are detected,
  164. show some kind of visual indicator and refresh assemblies when its done. When publishing it should recompile
  165. assemblies for release. Also hook up console to compiler output?
  166. ----------------------------------------------------------------------
  167. Project window
  168. - Might need to improve search (need to test). Do multiple search keywords work properly?
  169. - Consider delaying search until user stops pressing keys (so not to have thousands of search results in the initial stages)
  170. - Save & restore scroll position when Refresh happens
  171. ----------------------------------------------------------------------
  172. Handles
  173. - Ideally free scale handle indicator should always render and be interactable and never be hidden by axis scale indicators (Not high priority)
  174. - Raycast snapping Ribek suggested
  175. ----------------------------------------------------------------------
  176. Include files:
  177. - Test if default values work
  178. - Test project library dependant resources (e.g. changing an include and seeing if shader is reimported)
  179. ----------------------------------------------------------------------
  180. Scene View
  181. Test:
  182. - Custom handles from C#
  183. - Handle snapping
  184. - Multi-select Move/Rotate/scale