From cde3788fd7b4bb2eb9733c843bc1e62e3011bca3 Mon Sep 17 00:00:00 2001 From: cryham Date: Wed, 27 Nov 2024 00:43:24 +0100 Subject: [PATCH] fix no tire trails --- data/materials/Pbs/weather.material | 4 ++-- docs/Roadmap.md | 3 --- src/common/RenderConst.h | 6 +++--- src/game/CarModel_Create.cpp | 1 + 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/data/materials/Pbs/weather.material b/data/materials/Pbs/weather.material index 16c3ff9a..d77cbae2 100644 --- a/data/materials/Pbs/weather.material +++ b/data/materials/Pbs/weather.material @@ -60,7 +60,7 @@ hlms TireTrail unlit depth_write off depth_bias 3 cull_mode none - // diffuse_map trail.png // todo: alpha borders + // diffuse_map trail.png // todo: fix in ogre, for alpha borders .. //diffuse_address_mode mirror // 2d texture not supported } @@ -144,7 +144,7 @@ hlms FluidWater unlit diffuse_map fluid-water.png scene_blend alpha_blend alpha_rejection greater 64 - depth_write off + depth_write off } hlms FluidMudWhite unlit diff --git a/docs/Roadmap.md b/docs/Roadmap.md index db80aee2..1f066594 100644 --- a/docs/Roadmap.md +++ b/docs/Roadmap.md @@ -60,9 +60,6 @@ move all from SR3.compositor to AppGui_Compositor.cpp manual update ed RTTs^ fix ed RTTs no fluids -SSAO: add to depth? car glass - -no tire **trails** no specular on terrain rivers wrong way diff --git a/src/common/RenderConst.h b/src/common/RenderConst.h index bbf80eb9..ac3c483c 100644 --- a/src/common/RenderConst.h +++ b/src/common/RenderConst.h @@ -22,8 +22,8 @@ //------------------------------------------------------------------------ const Ogre::uint8 RQ_7 = 70, - RQ_GlassV2 = 80, - RQ_GlassV1 = 105, //105, 225 + RQ_GlassV2 = 80, // < 100 or >= 200 + RQ_GlassV1 = 105, // >= 100 or >= 225 V1_ RQ_OVERLAY = 220, // 200 // ⛅ sky @@ -44,7 +44,7 @@ const Ogre::uint8 // 💎 glass, transparent RQG_Grass = RQ_7 +5, // 🌿 veget grass - RQG_CarTrails = RQ_7 +6, // v1 trails after glass //RQ_GlassV1 + RQG_CarTrails = RQ_GlassV1 +6, // v1 trails after glass //RQ_GlassV1 RQG_PipeGlass = RQ_GlassV2 +2, // ⭕ glass pipe road RQG_AlphaVegObj = RQ_GlassV2 +3, // 💎 veget,objects transparent diff --git a/src/game/CarModel_Create.cpp b/src/game/CarModel_Create.cpp index fcef2046..14542e34 100644 --- a/src/game/CarModel_Create.cpp +++ b/src/game/CarModel_Create.cpp @@ -581,6 +581,7 @@ void CarModel::Create() { par[p][w] = mSceneMgr->createParticleSystem(sName[p]); ToDel(par[p][w]); par[p][w]->setVisibilityFlags(RV_Particles); + // par[p][w]->setRenderQueueGroup(RQG_CarParticles); // in UpdParsTrails SceneNode* np = ndRoot->createChildSceneNode(); ToDel(np); np->attachObject(par[p][w]); par[p][w]->getEmitter(0)->setEmissionRate(0.f);