16
General Jo Engine Help / Re: Help With SGL: Back-Face Culling and Camera Clipping
« on: January 15, 2019, 03:56:46 am »
My clipping issue was solved by , thanks guys.
It has, however, introduced a new issue. The camera seems to warp objects near the edge of the screen. I'm not sure if this is a fundamental issue with projections, a feature, or a setting I'm not changing. Images attached. I don't want to go full on orthographic, but the warping seems a bit extreme.
I have also made an attempt to use the Jo Map Editor to import a 3D file I made in Blender and exported as a Collada file, a simple textured cube. I'm fairly certain I created and exported the file correctly, but attempts at loading and drawing the converted 3d model + texture have left nothing on screen. I also discovered that the coordinate points that are apparently generated for my model are massive compared to the numbers I'm used to using. I tried moving backwards by more than the 3276800 units but still saw nothing and polygon counts confirm it. The generated header from the Map Editor .dae conversion is partially below:
Code: [Select]
slZdsplevel(7);
It has, however, introduced a new issue. The camera seems to warp objects near the edge of the screen. I'm not sure if this is a fundamental issue with projections, a feature, or a setting I'm not changing. Images attached. I don't want to go full on orthographic, but the warping seems a bit extreme.
I have also made an attempt to use the Jo Map Editor to import a 3D file I made in Blender and exported as a Collada file, a simple textured cube. I'm fairly certain I created and exported the file correctly, but attempts at loading and drawing the converted 3d model + texture have left nothing on screen. I also discovered that the coordinate points that are apparently generated for my model are massive compared to the numbers I'm used to using. I tried moving backwards by more than the 3276800 units but still saw nothing and polygon counts confirm it. The generated header from the Map Editor .dae conversion is partially below:
Code: [Select]
static POINT PointCube[] =
{
{3276800, 3276800, -3276800},
{3276800, -3276800, -3276800},
{-3276800, -3276799, -3276800},
{-3276799, 3276800, -3276800},
{3276800, 3276798, 3276800},
{3276798, -3276803, 3276800},
{-3276800, -3276799, 3276800},
{-3276800, 3276800, 3276800},
};
static POLYGON PolygonCube[] =
{
{{0, 0, -65536}, {0, 1, 2, 3}},
{{0, -65536, 0}, {4, 7, 6, 5}},
{{-65536, 0, 0}, {0, 4, 5, 1}},
{{0, 0, 65536}, {1, 5, 6, 2}},
{{0, 65536, 65536}, {2, 6, 7, 3}},
{{65536, 65536, 0}, {4, 0, 3, 7}},
};