Skip to content

Commit

Permalink
fix no tire trails
Browse files Browse the repository at this point in the history
  • Loading branch information
cryham committed Nov 26, 2024
1 parent 0aa4055 commit cde3788
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions data/materials/Pbs/weather.material
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions docs/Roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/common/RenderConst.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/game/CarModel_Create.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cde3788

Please sign in to comment.