diff --git a/Engine/source/gui/worldEditor/worldEditor.cpp b/Engine/source/gui/worldEditor/worldEditor.cpp index 6065b233e..a5b85b6f0 100644 --- a/Engine/source/gui/worldEditor/worldEditor.cpp +++ b/Engine/source/gui/worldEditor/worldEditor.cpp @@ -1303,7 +1303,7 @@ void WorldEditor::renderObjectFace(SceneObject * obj, const VectorF & normal, co PrimBuild::color( col ); - PrimBuild::begin( GFXTriangleFan, 4 ); + PrimBuild::begin( GFXTriangleStrip, 4 ); for(U32 k = 0; k < 4; k++) { PrimBuild::vertex3f(projPnts[k].x, projPnts[k].y, projPnts[k].z); @@ -1492,7 +1492,7 @@ void WorldEditor::renderSplinePath(SimPath::Path *path) F32 tmpT = t; while (tmpT < size - 1) { - tmpT = spline.advanceDist(tmpT, 4.0f); + tmpT = spline.advanceDist(tmpT, 1.0f); vCount++; } @@ -1514,7 +1514,7 @@ void WorldEditor::renderSplinePath(SimPath::Path *path) { CameraSpline::Knot k; spline.value(t, &k); - t = spline.advanceDist(t, 4.0f); + t = spline.advanceDist(t, 1.0f); k.mRotation.mulP(a, &vb[vIdx+0].point); k.mRotation.mulP(b, &vb[vIdx+1].point); @@ -1524,9 +1524,9 @@ void WorldEditor::renderSplinePath(SimPath::Path *path) vb[vIdx+1].point += k.mPosition; vb[vIdx+2].point += k.mPosition; - vb[vIdx+0].color.set(0, 255, 0, 100); - vb[vIdx+1].color.set(0, 255, 0, 100); - vb[vIdx+2].color.set(0, 255, 0, 100); + vb[vIdx+0].color.set(0, 255, 0, 0); + vb[vIdx+1].color.set(0, 255, 0, 255); + vb[vIdx+2].color.set(0, 255, 0, 0); // vb[vIdx+3] = vb[vIdx+1]; diff --git a/Engine/source/scene/simPath.cpp b/Engine/source/scene/simPath.cpp index c25764ad1..edf7b1051 100644 --- a/Engine/source/scene/simPath.cpp +++ b/Engine/source/scene/simPath.cpp @@ -296,11 +296,13 @@ void Marker::initGFXResources() smVertexBuffer.set(GFX, 4, GFXBufferTypeStatic); GFXVertexPC* verts = smVertexBuffer.lock(); - verts[0].point = wedgePoints[0] * 0.25f; - verts[1].point = wedgePoints[1] * 0.25f; - verts[2].point = wedgePoints[2] * 0.25f; - verts[3].point = wedgePoints[3] * 0.25f; - verts[0].color = verts[1].color = verts[2].color = verts[3].color = GFXVertexColor(ColorI(0, 255, 0, 255)); + verts[0].point = wedgePoints[0] * 1.25f; + verts[1].point = wedgePoints[1] * 1.25f; + verts[2].point = wedgePoints[2] * 1.25f; + verts[3].point = wedgePoints[3] * 1.25f; + verts[1].color = GFXVertexColor(ColorI(255, 0, 0, 255)); + verts[0].color = verts[2].color = verts[3].color = GFXVertexColor(ColorI(0, 0, 255, 255)); + smVertexBuffer.unlock(); smPrimitiveBuffer.set(GFX, 24, 12, GFXBufferTypeStatic); @@ -417,7 +419,7 @@ bool Marker::onAdd() if(!Parent::onAdd()) return false; - mObjBox = Box3F(Point3F(-.25, -.25, -.25), Point3F(.25, .25, .25)); + mObjBox = Box3F(Point3F(-1.25, -1.25, -1.25), Point3F(1.25, 1.25, 1.25)); resetWorldBox(); if(gEditingMission)