Difference between revisions of "Category:3D Combat Engine"

From BotF2-Wiki
Jump to: navigation, search
Line 17: Line 17:
 
................2. With cursor in the view window press control + A and apply rotation so transform rotation shows 0, 0, 0
 
................2. With cursor in the view window press control + A and apply rotation so transform rotation shows 0, 0, 0
  
................3. Same the .blend model in the Dropbox / Supremacy / Models / (ship name folder)
+
................3. Save the .blend model in the Dropbox / Supremacy / Models / (ship name folder)
  
 
................4. Copy the .blend file from the Models folder to the Dropbox / Unity / (game name) / Assets / Models folder
 
................4. Copy the .blend file from the Models folder to the Dropbox / Unity / (game name) / Assets / Models folder
  
................5. Open Unity and it should now import the model on it's own with correct orientation creating the .FBX model file and supporting files.
+
................5. Open Unity and it should now import the model on it's own with correct orientation by creating the .FBX model file and supporting files.
  
 
................6. To see your model in Unity, drag it from the Project View into the Scene View.
 
................6. To see your model in Unity, drag it from the Project View into the Scene View.

Revision as of 15:19, 21 June 2017

_

Intro

All about 3D combat engine

Unity

We are looking at Unity to develop 3D combat: (There is a free version at the link)

....FBX 3d model format has the largest array of supported features in Unity and is also acceptable to Unreal Engine. Will use .fbx as the default file format.

..............Y = Vertical, Z = Forwards, X = Left - Right

................1. In Blender / In object mode, set the model so it faces negative y, up positive z and left positive x.

................2. With cursor in the view window press control + A and apply rotation so transform rotation shows 0, 0, 0

................3. Save the .blend model in the Dropbox / Supremacy / Models / (ship name folder)

................4. Copy the .blend file from the Models folder to the Dropbox / Unity / (game name) / Assets / Models folder

................5. Open Unity and it should now import the model on it's own with correct orientation by creating the .FBX model file and supporting files.

................6. To see your model in Unity, drag it from the Project View into the Scene View.

....................If you modify your .blend file, Unity will automatically update whenever you save.


....You can begin learning Unity here:

..........https://unity3d.com/learn

....C# coding for beginners in Unity here:

..........https://unity3d.com/learn/tutorials/s/scripting

..........http://catlikecoding.com/unity/tutorials/

..........https://www.youtube.com/user/AwfulMedia

Unreal

>> main page >> Unreal

We had done some work with Unreal Engine to develop 3D combat: (It is free for non commercial use)

.... You can begin learning Unreal Engine for space combat here:

......https://www.youtube.com/channel/UCgRPPSQK_r4ynfwQ6rdHFoA

......https://www.youtube.com/watch?v=ZtdeLyrSOdo


....In your Blueprints folder hover over content to find the (Blueprint Class) items and look for the "Native Parent Class" such as an Actor or Pawn.

....Can right click on the blueprint and take "Copy Reference" to grab the name

....Go to File>New C++ Class>(Your Class Type Here) and click Next where you past in the path for name field (and reduce the path to a name.)

....Click on "Public" button and Next. This should open Visual Studio with your public .h and private .cpp files.

....Open the .h header file and between the [include "FileName.generated.h"]line and the [CLASS()]line enter new lines like this:

      USTRUCT(BlueprintType)
      struct F(name of file hear) work in progress..........




Blender

>> main page >> Blender

  • Blender is a free 3D modeling program. See also Autodesk Maya, 3d Max, Lighwave 3D, ...

...... Export models in the .FBX file format: https://wiki.unrealengine.com/Static_Mesh_from_Blender#Overview

...... The basic unit in Unreal is 1 cm. Set blender to this by selecting an object, then go to properties, scene, units and set length: metric and unit scale: 0.01 (down from meter to cm), save your startup file in the file pull-down menu. No faces in UV unwrap can be overlapping (sorry, that is an .fbx file thing with UE4), Set the objects Pivot Point to (0,0,0) center of the world rather than center of mesh object. Build your model facing to the + x axis (global). {Blender defaults to -y} Use the static mesh editor to delete collision and add it back as generated capsule collision.

The static mesh, texture and material appear to go in the BluePrint folder in UE the way we are building the engine.

.........See also creating and editing and applying materials at these links

Pages in category "3D Combat Engine"

The following 3 pages are in this category, out of 3 total.