You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-14Lines changed: 22 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,15 +20,21 @@ Check out the documentation (WIP) here: https://gscept.github.io/nebula-doc/
20
20
3. Added to PATH
21
21
4. Installed with debugging symbols and binaries
22
22
23
+
#### Other useful references and tools
24
+
*[Vulkan SDK](https://vulkan.lunarg.com/) and [Vulkan Documentation](https://docs.vulkan.org/) for render pipeline debugging
25
+
*[What is Fips](https://floooh.github.io/fips/)
26
+
23
27
## Quick Start
24
28
25
29
The fastest way to setup and test nebula is to clone the [Nebula-demo](https://github.com/gscept/nebula-demo) instead. It contains a setup.bat which will setup dependencies and configure a
26
-
solution for you to run. If you add a `-editor` commandline argument it will start with the editor ui enabled.
30
+
solution for you to run via `fips open`.
31
+
Alternatively you can build and run the project manually with `fips build`, `fips run assetbatcher` and `fips run nebula-demo --`. If you add a `-editor` commandline argument it will start with the editor ui enabled.
27
32
Apart from that there are a few simple projects in the test folder.
28
33
Fips will take care of getting the relevant dependencies (including the actual engine in case you are setting up a external project)
29
34
30
35
## Normal setup
31
36
If you want to proceed with the normal setup you can follow the instructions below.
37
+
Proceed to the project iteration section afterwards.
32
38
33
39
#### Setup config
34
40
@@ -40,36 +46,38 @@ If you want to proceed with the normal setup you can follow the instructions bel
40
46
Run `fips nebula` verb to set work and toolkit directory registry variables:
41
47
42
48
*`fips nebula set work {PATH}` (If you are building an external project, this would be the current path)
43
-
*`fips nebula set toolkit {PATH}` (this is the path to where the nebula checkout resides, if an external project that would be ../nebula)
49
+
*`fips nebula set toolkit {PATH}` (this is the path to where the nebula checkout resides, if an external project that would be `../nebula`)
44
50
45
-
#### Build project
51
+
#### Build project dependencies
46
52
47
53
In your project directory:
48
54
49
55
1.`fips physx build vc17 debug` (if you are running VS 2022, use `vc16` or `vc15` for vs 2019/2017 instead)
50
56
2.`fips anyfx setup`
51
-
3.`fips gen` to generate the required build system files, e.g. a visual studio solution
52
-
4.`fips build` to directly compile the project
53
-
or
54
-
`fips open` to open the generated solution in your selected environment
55
57
56
58
## Iterating on the project
57
-
Once the project is setup and working there are some common operations that you may have to perform.
59
+
Once the project is set up and working there are some common operations that you may have to perform.
60
+
Most of the steps and operations are required to be completed at least once to be able to run the project.
58
61
59
-
### Adding files
62
+
### Adding files – `fips gen`
60
63
If you are adding new files, either source or templates or other flatbuffer things that you add to cmake or a cmake subfolder will typically picked up by running `fips gen`. This will regenerate your solution via cmake, in case you are using visual studio it will normally
61
64
notice and prompt reloading. Generally calling `fips gen` is a safe operation you can do if dependencies change etc.
62
65
63
-
### Updating dependencies
66
+
#### Location of build files
67
+
Fips will place the solution and makefiles and the like in the `../fips-build/{PROJECT-NAME}/{CONFIG}/` folder. Easiest is to just use `fips open` to start your editor
68
+
69
+
### Updating dependencies – `fips update`
64
70
The project you are working in is commonly synced with e.g. git or some other version control, if you have other fips dependencies that changed, you can do a `fips update` to perform a git pull on the depencies used.
65
71
66
-
### Dealing with content
72
+
### Compiling the project – `fips build`
73
+
(Re-)Building the project is possible either via the generated solution (`fips open` to open it quickly) or manually with `fips build`.
74
+
75
+
### Dealing with content – `fips run assetbatcher --`
67
76
Content is usually batched using the `assetbatcher` contained in the nebula repository which is built by default by projects as well. Running it will incrementally convert or cook content in your `work` folder to an export folder in the project location. It has a number of options to force or only batch specific folders, as well as
68
77
the option to be run in parallel. Running it with `-help` will print some of the options available.
69
78
70
-
### Location of build files
71
-
Fips will place the solution and makefiles and the like in the ../fips-build/projectname/projectconfig/ folder. Easiest is to just use `fips open` to start your editor
72
-
79
+
## Running the project
80
+
To run the debug project without editor tools, use `fips run {PROJECT-NAME}` or run a debug session in your solution opened with `fips open`. Use `fips run {PROJECT-NAME} -- -editor` to run the project with editor ui enabled.
73
81
74
82
## Features
75
83
Nebula is being developed continuously, which means that features keep getting added all the time. Currently, we support this:
0 commit comments