I have made two models which I like to load in Empty Epsilon, but I run into some troubles. As I am not really a programmer myself, at this point I cannot distinguish whether the problem is my model or my effort in loading it.
So far this is what I have done:
I created the model, texture etc.
I followed the steps on the Github wiki regarding the 'adding 3D models' and 'creating ship templates'.
So far so good, everything seems fine: I can setup a game, add the ships as a game master, interact with it.
The only thing that is not working is the 3D model in the main screen.
Now here is the thing: I can look up my ship in the science database and there it seems to work okay-ish: the size of the ship is bad and the camera position is bad and not the entire ship will show, but enough to see that the ship model and texture will load.
The second thing: when I turn the cinematic camera view in just the right angle, suddenly my ship loads, but when the camera turns a little further, the ship disappears again.
I tried to make a screenshots of these occasions, but that didn't work so far. (Only got a shot of the main screen.)
can somebody explain what I am missing or help to find the problem?
the code I used:
model = ModelData()model:setName("A-Station")model:setMesh("Space_Station_1.obj")model:setTexture("Space_Station_1.png")model:setScale(2)model:setRadius(30)model = ModelData()model:setName("AAA")model:setMesh("AAA.obj")model:setTexture("AAA.png")model:setScale(2)model = ModelData()model:setName("BBB")model:setMesh("BBB.obj")model:setTexture("BBB.png")model:setScale(2)model = ModelData()
Base of the ship templates, from here different classes of ships are included to be used within the game.
Each sub-file defines it's own set of ship classes.
* Stations: For different kinds of space stations, from tiny to huge.
* Starfighters: Smallest ships in the game.
* Frigates: Medium sized ships. Operate on a small crew.
* Covette: Large, slower, less maneuverable ships.
* Dreadnaught: Huge things. Everything in here is really really big, and generally really really deadly.
Player ships are in general large frigates to small corvette class
---[[Until these are ready, they are disabled
--For now, we add our old ship templates as well. These should be removed at some point.require("shipTemplates_OLD.lua")
template = ShipTemplate():setName("AAA"):setClass("Starfighter", "bomber"):setModel("AAA")template:setRadarTrace("radar_cruiser.png")
template:setShields(200, 200, 200, 200)
template:setSpeed(30, 3.5, 5)