x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to create a truly blank empty project

I'm trying to create a truly "blank" project. Specifically, a C++ project targeting GearVR. However, I've been reading thru the docs and trying things out in the editor and I have not yet figured out how to do this.

What I'm trying to achieve is a simple app with:

  • camera tracking the HMD.

  • no lighting computations (other than the obvious texture lookups implied in 'unlit' shading).

  • simple networking for retrieving images and other data via http(s).

My current best thinking is that the only thing I need is a single camera (with track hmd set to true). Maybe the default Pawn too. But other than that I should not need anything else. And I should be able to turn off things like global illumination and any lighting computations since I want unlit surfaces (mostly UMG widgets).

With this in mind, when starting Unreal, the option that resembles "blank" the closest is "basic code" under C++ templates. If I select that template however, the map that gets created already has a few objects in the outliner:

alt text

If I remove these objects (or if once the project is loaded I create a new map -- aka, all black), once I hit play, a bunch of objects get instantiated in the scene anyway:

alt text

Under Project Settings > Maps & Modes I cannot remove the HUD, Player, Game State, etc classes. And I don't understand as of now where all these objects are being instantiated.

Additionally, neither do I yet understand if setting my materials to unlit and setting all meshes to not cast nor receive shadows is enough to avoid lighting computations or if there is another way of turning lighting off.

The reason for all this is to make sure I am only using the necessary resources, in order to tax the mobile device the least possible.

Product Version: UE 4.14
Tags:
ue1.png (27.3 kB)
ue2.png (60.1 kB)
more ▼

asked Dec 01 '16 at 06:33 AM in Using UE4

avatar image

saldavonschwartz
157 17 19 35

avatar image Xorbert Mar 13 '17 at 04:09 PM

Hi mate,

did you figure out anything about that instantiation?

I'm trying to create a truly blank blueprint project and am getting confused by the same stuff you asked about, that's how I stumbled upon your post. As a total beginner I prefer to get things done from scratch, without having "magic" in a "blank" application.

avatar image saldavonschwartz Jun 03 '17 at 07:57 PM

@Xorbert I posted an answer. Short version: there is no way to opt out of most of the classes that are added by default. Tha engines' gameplay framework requires them. But once you get used to this and read up on the framework the "magic" becomes less so.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

It's been a while since I posted this and I now have a better understanding of the engine architecture.

Since no one gave an answer I'll give my own:

The engine relies on a gameplay framework. So in general you'll be building your game in the context of this framework.

The framework declares a bunch of classes that make up the structure of a typical UE game and provides default implementations of these. You can provide custom implementations too, but otherwise, at the very least your game will always use the framework's defaults. So thats' where the 'magic' comes from.

For example, when you start simulating or playing a level, you will always have:

  • 1 game instance per the whole game.

  • 1 game mode per level (unless you are client in multiplayer).

The game mode in turn instantiates:

  • 1 playercontroller per player, Replicated only to its owning client.

  • 1 pawn per player controller, replicated to all clients.

  • 1 game state, replicated to all clients.

  • 1 player state per player controller, replicated to all clients.

There's more classes than these but these are some of the core ones. And there is no way to opt out of using them. You can however, use your own implementation of these classes. And to do so, you first need to create a subclass of AGameModeBase, which allows you to then replace any of the above classes with your subclasses (i.e. under Maps & Modes in Project Settings or per level, thru the World panel).

more ▼

answered Jun 03 '17 at 07:55 PM

avatar image

saldavonschwartz
157 17 19 35

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question