本文整理汇总了C++中ManualObject::setRenderQueueGroup方法的典型用法代码示例。如果您正苦于以下问题:C++ ManualObject::setRenderQueueGroup方法的具体用法?C++ ManualObject::setRenderQueueGroup怎么用?C++ ManualObject::setRenderQueueGroup使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ManualObject
的用法示例。
在下文中一共展示了ManualObject::setRenderQueueGroup方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CreatePart
// CreatePart mesh
//---------------------------------------------------
void CarModel::CreatePart(SceneNode* ndCar, Vector3 vPofs,
String sCar2, String sCarI, String sMesh, String sEnt,
bool ghost, uint32 visFlags,
AxisAlignedBox* bbox, String stMtr, VERTEXARRAY* var, bool bLogInfo)
{
if (FileExists(sCar2 + sMesh))
{
Entity* ent = mSceneMgr->createEntity(sCarI + sEnt, sDirname + sMesh, sCarI);
if (bbox) *bbox = ent->getBoundingBox();
if (ghost) { ent->setRenderQueueGroup(RQG_CarGhost); ent->setCastShadows(false); }
else if (visFlags == RV_CarGlass) ent->setRenderQueueGroup(RQG_CarGlass);
ndCar->attachObject(ent); ent->setVisibilityFlags(visFlags);
if (bLogInfo) LogMeshInfo(ent, sDirname + sMesh);
}
else
{ ManualObject* mo = pApp->CreateModel(mSceneMgr, stMtr, var, vPofs, false, false, sCarI+sEnt);
if (!mo) return;
if (bbox) *bbox = mo->getBoundingBox();
if (ghost) { mo->setRenderQueueGroup(RQG_CarGhost); mo->setCastShadows(false); }
else if (visFlags == RV_CarGlass) mo->setRenderQueueGroup(RQG_CarGlass);
ndCar->attachObject(mo); mo->setVisibilityFlags(visFlags);
/** /// save .mesh
MeshPtr mpCar = mInter->convertToMesh("Mesh" + sEnt);
MeshSerializer* msr = new MeshSerializer();
msr->exportMesh(mpCar.getPointer(), sDirname + sMesh);/**/
}
}
示例2:
// util
//---------------------------------------------------------------------------------------------------------------
ManualObject* App::Create2D(const String& mat, Real s, bool dyn)
{
ManualObject* m = mSceneMgr->createManualObject();
m->setDynamic(dyn);
m->setUseIdentityProjection(true);
m->setUseIdentityView(true);
m->setCastShadows(false);
m->estimateVertexCount(4);
m->begin(mat, RenderOperation::OT_TRIANGLE_STRIP);
m->position(-s,-s*asp, 0); m->textureCoord(0, 1);
m->position( s,-s*asp, 0); m->textureCoord(1, 1);
m->position(-s, s*asp, 0); m->textureCoord(0, 0);
m->position( s, s*asp, 0); m->textureCoord(1, 0);
m->end();
//TODO:replace OT_TRIANGLE_FAN with a more friendly version for D3D11 as it is not supported
/*
m->estimateVertexCount(6);
m->begin(mat, RenderOperation::OT_TRIANGLE_LIST);
m->position(-s,-s*asp, 0); m->textureCoord(0, 1);
m->position( s,-s*asp, 0); m->textureCoord(1, 1);
m->position( s, s*asp, 0); m->textureCoord(1, 0);
m->position(-s, s*asp, 0); m->textureCoord(0, 0);
m->position(-s,-s*asp, 0); m->textureCoord(0, 1);
m->position( s, s*asp, 0); m->textureCoord(1, 0);
m->end();
*/
AxisAlignedBox aabInf; aabInf.setInfinite();
m->setBoundingBox(aabInf); // always visible
m->setRenderQueueGroup(RQG_Hud2);
return m;
}
示例3: createManual
void HelloOgre::createManual(){
Ogre::SceneManager* mSceneMgr= OgreApp::I()->getSceneManager();
#if 1
ManualObject* manual = mSceneMgr->createManualObject("manual");
// specify the material (by name) and rendering type
manual->begin("BaseWhiteNoLighting", RenderOperation::OT_LINE_LIST);
// manual->begin("BaseWhiteNoLighting", RenderOperation::OT_TRIANGLE_STRIP);
// define start and end point
manual->position(-100, -100, -100 );
manual->position(100, 100, 100 );
manual->colour( 1.0f, 1.0f, 1.0f, 1.0f );
// tell Ogre, your definition has finished
manual->end();
// add ManualObject to the RootSceneNode (so it will be visible)
mSceneMgr->getRootSceneNode()->attachObject(manual);
#endif
#if 1
// Create a manual object for 2D
manual = mSceneMgr->createManualObject("manual2");
// Use identity view/projection matrices
manual->setUseIdentityProjection(true);
manual->setUseIdentityView(true);
manual->begin("BaseWhiteNoLighting", RenderOperation::OT_LINE_STRIP);
manual->position(-0.2, -0.2, 0.0);
manual->position( 0.2, -0.2, 0.0);
manual->position( 0.2, 0.2, 0.0);
manual->position(-0.2, 0.2, 0.0);
manual->index(0);
manual->index(1);
manual->index(2);
manual->index(3);
manual->index(0);
manual->end();
// Use infinite AAB to always stay visible
AxisAlignedBox aabInf;
aabInf.setInfinite();
manual->setBoundingBox(aabInf);
// Render just before overlays
manual->setRenderQueueGroup(RENDER_QUEUE_OVERLAY - 1);
// Attach to scene
mSceneMgr->getRootSceneNode()->createChildSceneNode()->attachObject(manual);
#endif
}
示例4: CreateSkyDome
// Sky Dome
//-------------------------------------------------------------------------------------
void CScene::CreateSkyDome(String sMater, Vector3 sc, float yaw)
{
ManualObject* m = app->mSceneMgr->createManualObject();
m->begin(sMater, RenderOperation::OT_TRIANGLE_LIST);
// divisions- quality
int ia = 32*2, ib = 24,iB = 24 +1/*below_*/, i=0;
//int ia = 4, ib = 4, i=0;
// angles, max
float a,b; const float B = PI_d/2.f, A = 2.f*PI_d;
float bb = B/ib, aa = A/ia; // add
ia += 1;
// up/dn y )
for (b = 0.f; b <= B+bb/*1*/*iB; b += bb)
{
float cb = sinf(b), sb = cosf(b);
float y = sb;
// circle xz o
for (a = 0.f; a <= A; a += aa, ++i)
{
float x = cosf(a)*cb, z = sinf(a)*cb;
m->position(x,y,z);
m->textureCoord(a/A, b/B);
if (a > 0.f && b > 0.f) // rect 2tri
{
m->index(i-1); m->index(i); m->index(i-ia);
m->index(i-1); m->index(i-ia); m->index(i-ia-1);
}
}
}
m->end();
AxisAlignedBox aab; aab.setInfinite();
m->setBoundingBox(aab); // always visible
m->setRenderQueueGroup(RQG_Sky);
m->setCastShadows(false);
#ifdef SR_EDITOR
m->setVisibilityFlags(RV_Sky); // hide on minimap
#endif
app->ndSky = app->mSceneMgr->getRootSceneNode()->createChildSceneNode();
app->ndSky->attachObject(m);
app->ndSky->setScale(sc);
Quaternion q; q.FromAngleAxis(Degree(-yaw), Vector3::UNIT_Y);
app->ndSky->setOrientation(q);
}
示例5: createTexturedRect
Ogre::SceneNode* Terminal::createTexturedRect(std::string object_name, std::string texture_name, float left, float top, float right, float bottom)
{
MaterialPtr material = MaterialManager::getSingleton().create(object_name,Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME);
material->getTechnique(0)->getPass(0)->createTextureUnitState(texture_name);
material->getTechnique(0)->getPass(0)->setDepthCheckEnabled(false);
material->getTechnique(0)->getPass(0)->setDepthWriteEnabled(true);
material->getTechnique(0)->getPass(0)->setLightingEnabled(false);
// Ogre::Rectangle2D* rect = new Ogre::Rectangle2D(true);
ManualObject* manual = Entropy::getSingletonPtr()->mSceneMgr->createManualObject(object_name);
manual->setUseIdentityProjection(true);
manual->setUseIdentityView(true);
manual->begin(object_name, RenderOperation::OT_TRIANGLE_STRIP);
manual->position(left, bottom, 0.0);
manual->position(left, top, 0.0);
manual->position(right, bottom, 0.0);
manual->position(right, top, 0.0);
manual->index(0);
manual->index(1);
manual->index(2);
manual->index(3);
manual->end();
// rect->setCorners(left,top,right,bottom);
// rect->setMaterial(object_name);
manual->setRenderQueueGroup(RENDER_QUEUE_OVERLAY);
Ogre::AxisAlignedBox aabInf;
aabInf.setInfinite();
manual->setBoundingBox(aabInf);
Ogre::SceneNode* rect_node = Entropy::getSingletonPtr()->mSceneMgr->getRootSceneNode()->createChildSceneNode(object_name);
rect_node->attachObject(manual);
// rect->setVisible(false);
// rect_node->setPosition(0,0,0);
return rect_node;
}
示例6: if
ManualObject* CHud::Create2D(const String& mat, SceneManager* sceneMgr,
Real s, // scale pos
bool dyn, bool clr,
Real mul, Vector2 ofs,
uint32 vis, uint8 rndQue,
int cnt)
{
ManualObject* m = sceneMgr->createManualObject();
m->setDynamic(dyn);
m->setUseIdentityProjection(true);
m->setUseIdentityView(true);
m->setCastShadows(false);
m->estimateVertexCount(cnt * 4);
m->begin(mat, cnt > 1 ? RenderOperation::OT_TRIANGLE_LIST : RenderOperation::OT_TRIANGLE_STRIP);
const static Vector2 uv[4] = { Vector2(0.f,1.f),Vector2(1.f,1.f),Vector2(0.f,0.f),Vector2(1.f,0.f) };
for (int i=0; i < cnt; ++i)
{ m->position(-s,-s*asp, 0); m->textureCoord(uv[0]*mul + ofs); if (clr) m->colour(0,1,0);
m->position( s,-s*asp, 0); m->textureCoord(uv[1]*mul + ofs); if (clr) m->colour(0,0,0);
m->position(-s, s*asp, 0); m->textureCoord(uv[2]*mul + ofs); if (clr) m->colour(1,1,0);
m->position( s, s*asp, 0); m->textureCoord(uv[3]*mul + ofs); if (clr) m->colour(1,0,0);
}
if (cnt > 1)
for (int i=0; i < cnt; ++i)
{ int n = i*4;
m->quad(n,n+1,n+3,n+2);
}
m->end();
AxisAlignedBox aabInf; aabInf.setInfinite();
m->setBoundingBox(aabInf); // always visible
m->setVisibilityFlags(vis);
m->setRenderQueueGroup(rndQue); //RQG_Hud2
return m;
}
示例7: CreateHUD
void App::CreateHUD()
{
// minimap from road img
asp = 1.f;
if (terrain)
{
ofsX=0; ofsY=0;
float t = sc.td.fTerWorldSize*0.5;
minX = -t; minY = -t; maxX = t; maxY = t;
float fMapSizeX = maxX - minX, fMapSizeY = maxY - minY; // map size
float size = std::max(fMapSizeX, fMapSizeY*asp);
scX = 1.f / size; scY = 1.f / size;
//for (int c=0; c<2; ++c)
String sMat = "circle_minimap"; //*/"road_minimap_inv";
asp = 1.f; //_temp
ManualObject* m = Create2D(sMat,mSplitMgr->mHUDSceneMgr,1,true,true); miniC = m;
//asp = float(mWindow->getWidth())/float(mWindow->getHeight());
m->setVisibilityFlags(RV_Hud); m->setRenderQueueGroup(RQG_Hud1);
/// change minimap image
MaterialPtr mm = MaterialManager::getSingleton().getByName(sMat);
Pass* pass = mm->getTechnique(0)->getPass(0);
TextureUnitState* tus = pass->getTextureUnitState(0);
if (tus) tus->setTextureName(pSet->track + "_mini.png");
tus = pass->getTextureUnitState(2);
if (tus) tus->setTextureName(pSet->track + "_ter.jpg");
UpdMiniTer();
float fHudSize = pSet->size_minimap;
const float marg = 1.f + 0.05f; // from border
fMiniX = 1 - fHudSize * marg, fMiniY = 1 - fHudSize*asp * marg;
ndMap = mSplitMgr->mHUDSceneMgr->getRootSceneNode()->createChildSceneNode(Vector3(fMiniX,fMiniY,0));
ndMap->scale(fHudSize, fHudSize*asp, 1);
ndMap->attachObject(m);
// car pos dot - for all carModels (ghost and remote too)
vMoPos.clear();
vNdPos.clear();
for (int i=0; i < /*pSet->local_players*/carModels.size(); ++i)
{ vMoPos.push_back(0);
vMoPos[i] = Create2D("hud/CarPos", mSplitMgr->mHUDSceneMgr, 0.4f, true, true);
vMoPos[i]->setVisibilityFlags(RV_Hud); vMoPos[i]->setRenderQueueGroup(RQG_Hud3);
vNdPos.push_back(0);
vNdPos[i] = ndMap->createChildSceneNode();
vNdPos[i]->scale(fHudSize*1.5f, fHudSize*1.5f, 1);
vNdPos[i]->attachObject(vMoPos[i]); /*vNdPos[i]->setVisible(false); */}
ndMap->setVisible(false/*pSet->trackmap*/);
}
// backgr gauges
ManualObject* mrpmB = Create2D("hud/rpm",mSplitMgr->mHUDSceneMgr,1); mrpmB->setVisibilityFlags(RV_Hud);
mrpmB->setRenderQueueGroup(RQG_Hud1);
nrpmB = mSplitMgr->mHUDSceneMgr->getRootSceneNode()->createChildSceneNode();
nrpmB->attachObject(mrpmB); nrpmB->setScale(0,0,0); nrpmB->setVisible(false);
ManualObject* mvelBk = Create2D("hud/kmh",mSplitMgr->mHUDSceneMgr,1); mvelBk->setVisibilityFlags(RV_Hud);
mvelBk->setRenderQueueGroup(RQG_Hud1);
nvelBk = mSplitMgr->mHUDSceneMgr->getRootSceneNode()->createChildSceneNode();
nvelBk->attachObject(mvelBk); nvelBk->setScale(0,0,0); mvelBk->setVisible(false);
ManualObject* mvelBm = Create2D("hud/mph",mSplitMgr->mHUDSceneMgr,1); mvelBm->setVisibilityFlags(RV_Hud);
mvelBm->setRenderQueueGroup(RQG_Hud1);
nvelBm = mSplitMgr->mHUDSceneMgr->getRootSceneNode()->createChildSceneNode();
nvelBm->attachObject(mvelBm); nvelBm->setScale(0,0,0); mvelBm->setVisible(false);
// needles
mrpm = Create2D("hud/needle",mSplitMgr->mHUDSceneMgr,1,true); mrpm->setVisibilityFlags(RV_Hud);
mrpm->setRenderQueueGroup(RQG_Hud3);
nrpm = mSplitMgr->mHUDSceneMgr->getRootSceneNode()->createChildSceneNode();
nrpm->attachObject(mrpm); nrpm->setScale(0,0,0); nrpm->setVisible(false);
mvel = Create2D("hud/needle",mSplitMgr->mHUDSceneMgr,1,true); mvel->setVisibilityFlags(RV_Hud);
mvel->setRenderQueueGroup(RQG_Hud3);
nvel = mSplitMgr->mHUDSceneMgr->getRootSceneNode()->createChildSceneNode();
nvel->attachObject(mvel); nvel->setScale(0,0,0); nvel->setVisible(false);
// overlays
OverlayManager& ovr = OverlayManager::getSingleton();
ovCam = ovr.getByName("Car/CameraOverlay");
ovGear = ovr.getByName("Hud/Gear"); hudGear = ovr.getOverlayElement("Hud/GearText");
ovVel = ovr.getByName("Hud/Vel"); hudVel = ovr.getOverlayElement("Hud/VelText");
ovBoost = ovr.getByName("Hud/Boost"); hudBoost = ovr.getOverlayElement("Hud/BoostText");
ovAbsTcs = ovr.getByName("Hud/AbsTcs"); hudAbs = ovr.getOverlayElement("Hud/AbsText");
ovCarDbg = ovr.getByName("Car/Stats"); hudTcs = ovr.getOverlayElement("Hud/TcsText");
ovTimes = ovr.getByName("Hud/Times"); hudTimes = ovr.getOverlayElement("Hud/TimesText");
ovOpp = ovr.getByName("Hud/Opponents"); hudOppB = ovr.getOverlayElement("Hud/OpponentsPanel");
for (int o=0; o < 5; ++o) for (int c=0; c < 3; ++c) {
hudOpp[o][c] = ovr.getOverlayElement("Hud/OppText"+toStr(o)+"_"+toStr(c)); hudOpp[o][c]->setCaption(""); }
for (int o=0; o < carModels.size(); ++o) // fill car names, not changed during play
{
const CarModel* cm = carModels[o];
//.........这里部分代码省略.........
示例8: CreateVdrMinimap
ManualObject* CHud::CreateVdrMinimap()
{
asp = float(app->mWindow->getWidth())/float(app->mWindow->getHeight());
// get track sizes
minX=FLT_MAX; maxX=FLT_MIN; minY=FLT_MAX; maxY=FLT_MIN;
const std::list <ROADSTRIP>& roads = app->pGame->track.GetRoadList();
for (std::list <ROADSTRIP>::const_iterator it = roads.begin(); it != roads.end(); ++it)
{
const std::list <ROADPATCH>& pats = (*it).GetPatchList();
for (std::list <ROADPATCH>::const_iterator i = pats.begin(); i != pats.end(); ++i)
{
for (int iy=0; iy<4; ++iy)
for (int ix=0; ix<4; ++ix)
{
const MATHVECTOR<float,3>& vec = (*i).GetPatch().GetPoint(ix,iy);
Real x = vec[0], y = vec[2];
if (x < minX) minX = x; if (x > maxX) maxX = x;
if (y < minY) minY = y; if (y > maxY) maxY = y;
}
}
}
float fMapSizeX = maxX - minX, fMapSizeY = maxY - minY; // map size
float size = std::max(fMapSizeX, fMapSizeY);
scX = 1.f / size; scY = 1.f / size;
ManualObject* m = app->mSceneMgr->createManualObject();
m->begin("hud/Minimap", RenderOperation::OT_TRIANGLE_LIST);
int ii = 0;
for (std::list <ROADSTRIP>::const_iterator it = roads.begin(); it != roads.end(); ++it)
{
const std::list <ROADPATCH>& pats = (*it).GetPatchList();
for (std::list <ROADPATCH>::const_iterator i = pats.begin(); i != pats.end(); ++i)
{
float p[16][3]; int a=0;
for (int y=0; y<4; ++y)
for (int x=0; x<4; ++x)
{
const MATHVECTOR<float,3>& vec = (*i).GetPatch().GetPoint(x,y);
p[a][0] = vec[0]; p[a][1] = vec[2]; p[a][2] = vec[1]; a++;
}
a = 0;
// normal
Vector3 pos (p[a ][2], -p[a ][0], p[a ][1]);
Vector3 posX(p[a+3][2], -p[a+3][0], p[a+3][1]); posX-=pos; posX.normalise();
Vector3 posY(p[a+12][2],-p[a+12][0],p[a+12][1]); posY-=pos; posY.normalise();
Vector3 norm = posX.crossProduct(posY); norm.normalise();/**/
for (int y=0; y<4; ++y)
for (int x=0; x<4; ++x)
{
Vector3 pos( (p[a][0] - minX)*scX*2-1, // pos x,y = -1..1
-(p[a][1] - minY)*scY*2+1, 0); a++;
m->position(pos);
m->normal(norm);/**/
Real c = std::min(1.f, std::max(0.3f, 1.f - 2.4f * powf( fabs(norm.y)
/*norm.absDotProduct(vLi)*/, 0.7f) ));
m->colour(ColourValue(c,c,c,1));
m->textureCoord(x/3.f,y/3.f);
if (x<3 && y<3)
{
int a = ii+x+y*4;
m->index(a+0); m->index(a+1); m->index(a+4);
m->index(a+1); m->index(a+4); m->index(a+5);
}
}
ii += 16;
}
}
m->end();
m->setUseIdentityProjection(true); m->setUseIdentityView(true); // on hud
m->setCastShadows(false);
AxisAlignedBox aab; aab.setInfinite(); m->setBoundingBox(aab); // draw always
m->setRenderingDistance(100000.f);
m->setRenderQueueGroup(RQG_Hud2); m->setVisibilityFlags(RV_Hud);
return m;
}
示例9: Create
//-------------------------------------------------------------------------------------------------------
// Create
//-------------------------------------------------------------------------------------------------------
void CarModel::Create()
{
//if (!pCar) return;
String strI = toStr(iIndex)+ (eType == CT_TRACK ? "Z" : (eType == CT_GHOST2 ? "V" :""));
mtrId = strI;
String sCarI = "Car" + strI;
resGrpId = sCarI;
String sCars = PATHMANAGER::Cars() + "/" + sDirname;
resCar = sCars + "/textures";
String rCar = resCar + "/" + sDirname;
String sCar = sCars + "/" + sDirname;
bool ghost = false; //isGhost(); //1 || for ghost test
bool bLogInfo = !isGhost(); // log mesh info
bool ghostTrk = isGhostTrk();
// Resource locations -----------------------------------------
/// Add a resource group for this car
ResourceGroupManager::getSingleton().createResourceGroup(resGrpId);
Ogre::Root::getSingletonPtr()->addResourceLocation(sCars, "FileSystem", resGrpId);
Ogre::Root::getSingletonPtr()->addResourceLocation(sCars + "/textures", "FileSystem", resGrpId);
pMainNode = mSceneMgr->getRootSceneNode()->createChildSceneNode();
SceneNode* ndCar = pMainNode->createChildSceneNode();
// -------- Follow Camera --------
if (mCamera && pCar)
{
fCam = new FollowCamera(mCamera, pSet);
fCam->chassis = pCar->dynamics.chassis;
fCam->loadCameras();
// set in-car camera position to driver position
for (std::vector<CameraAngle*>::iterator it=fCam->mCameraAngles.begin();
it!=fCam->mCameraAngles.end(); ++it)
{
if ((*it)->mName == "Car driver")
(*it)->mOffset = Vector3(driver_view[0], driver_view[2], -driver_view[1]);
else if ((*it)->mName == "Car bonnet")
(*it)->mOffset = Vector3(hood_view[0], hood_view[2], -hood_view[1]);
}
}
CreateReflection();
// next checkpoint marker
bool deny = pApp->gui->pChall && !pApp->gui->pChall->chk_beam;
if (eType == CT_LOCAL && !deny)
{
entNextChk = mSceneMgr->createEntity("Chk"+strI, "check.mesh");
entNextChk->setRenderQueueGroup(RQG_Weather); entNextChk->setCastShadows(false);
ndNextChk = mSceneMgr->getRootSceneNode()->createChildSceneNode();
ndNextChk->attachObject(entNextChk); entNextChk->setVisibilityFlags(RV_Hud);
ndNextChk->setVisible(false);
}
///() grass sphere test
#if 0
Entity* es = mSceneMgr->createEntity(sCarI+"s", "sphere.mesh", sCarI);
es->setRenderQueueGroup(RQG_CarGhost);
MaterialPtr mtr = MaterialManager::getSingleton().getByName("pipeGlass");
es->setMaterial(mtr);
ndSph = mSceneMgr->getRootSceneNode()->createChildSceneNode();
ndSph->attachObject(es);
#endif
/// Create Models: body, interior, glass
//-------------------------------------------------
Vector3 vPofs(0,0,0);
AxisAlignedBox bodyBox; uint8 g = RQG_CarGhost;
all_subs=0; all_tris=0; //stats
if (bRotFix)
ndCar->setOrientation(Quaternion(Degree(90),Vector3::UNIT_Y)*Quaternion(Degree(180),Vector3::UNIT_X));
CreatePart(ndCar, vPofs, sCar, sCarI, "_body.mesh", "", ghost, RV_Car, &bodyBox, sMtr[Mtr_CarBody], pCar ? &pCar->bodymodel.mesh : 0, bLogInfo);
vPofs = Vector3(interiorOffset[0],interiorOffset[1],interiorOffset[2]); //x+ back y+ down z+ right
if (!ghost)
CreatePart(ndCar, vPofs, sCar, sCarI, "_interior.mesh", "i", ghost, RV_Car, 0, sMtr[Mtr_CarBody]+"i", pCar ? &pCar->interiormodel.mesh : 0, bLogInfo);
vPofs = Vector3::ZERO;
CreatePart(ndCar, vPofs, sCar, sCarI, "_glass.mesh", "g", ghost, RV_CarGlass, 0, sMtr[Mtr_CarBody]+"g", pCar ? &pCar->glassmodel.mesh : 0, bLogInfo);
// wheels ----------------------
for (int w=0; w < 4; ++w)
{
String siw = "Wheel" + strI + "_" + toStr(w);
ndWh[w] = mSceneMgr->getRootSceneNode()->createChildSceneNode();
//.........这里部分代码省略.........