[Help] How to change the outline of items ?

Results 1 to 6 of 6
  1. #1
    Professional RageZone XxFuR4xX is offline
    MemberRank
    Jun 2013 Join Date
    ENG / FRLocation
    253Posts

    config [Help] How to change the outline of items ?

    Hello I would like to change the color that surrounds the items. They are blue by default I would put yellow or green. Thank you for your help.
    Last edited by DNC; 22-07-14 at 05:15 PM. Reason: There are NO custom title tags [Help] Or [Request] only in help section


  2. #2
    Valued Member MrCrazyDude115 is offline
    MemberRank
    Oct 2013 Join Date
    Look Behind YouLocation
    139Posts

    Re: [Help] How to change the outline of items ?

    I would like to know the same thing

  3. #3
    Enthusiast manhaston is offline
    MemberRank
    Dec 2013 Join Date
    40Posts

    Re: [Help] How to change the outline of items ?

    void MeshDeferredHighlightRenderable::DoDraw( Renderable* RThis, float distance, const r3dCamera& Cam )
    {
    D3DPERF_BeginEvent( 0, L"MeshDeferredHighlightRenderable::Draw" );


    MeshDeferredHighlightRenderable * This = static_cast<MeshDeferredHighlightRenderable*>( RThis );
    r3dMesh* Mesh = This->Mesh;


    r3dColor color( r3dColor::white );


    r3dRenderer->SetVertexShader( VS_FILLGBUFFER_EXTRUDE_ID );


    float factor = r_highlight_thickness->GetFloat();


    const float LINE_SATURATE = 2.0f;


    if( distance < LINE_SATURATE )
    factor *= distance / LINE_SATURATE;


    float vsConst[ 4 ] = { factor / Mesh->unpackScale.x, factor / Mesh->unpackScale.y, factor / Mesh->unpackScale.z, 0 };


    // float4x3 vExtrudeMatrix : register( c17 );
    D3D_V( r3dRenderer->pd3ddev->SetVertexShaderConstantF( 17, vsConst, 1 ) );


    r3dPoint3D normal( 0, 1, 0 );


    normal.Normalize();


    SetFillGBufferConstantPixelShader( r3dColor::blue, 1.0f, normal, 0.0f, 0.0f, r_highlight_glow->GetFloat(), 0.f );


    Mesh->DrawMeshSimple( 0 );


    D3DPERF_EndEvent();
    }
    ------------------------
    And Search
    const r3dColor r3dColor::yellow(255,255,0);

    const r3dColor r3dColor::yellow(255,255,0);
    const r3dColor r3dColor::black(0, 0, 0);
    const r3dColor r3dColor::grey(80,80,80);
    const r3dColor r3dColor::white(255, 255, 255);
    const r3dColor r3dColor::red(255, 0, 0);
    const r3dColor r3dColor::green(0, 255, 0);
    const r3dColor r3dColor::blue(0, 0, 255);
    const r3dColor r3dColor::pink(255, 20, 147); // Add more

  4. #4
    Professional RageZone XxFuR4xX is offline
    MemberRank
    Jun 2013 Join Date
    ENG / FRLocation
    253Posts

    Re: [Help] How to change the outline of items ?

    Quote Originally Posted by manhaston View Post
    void MeshDeferredHighlightRenderable::DoDraw( Renderable* RThis, float distance, const r3dCamera& Cam )
    {
    D3DPERF_BeginEvent( 0, L"MeshDeferredHighlightRenderable::Draw" );


    MeshDeferredHighlightRenderable * This = static_cast<MeshDeferredHighlightRenderable*>( RThis );
    r3dMesh* Mesh = This->Mesh;


    r3dColor color( r3dColor::white );


    r3dRenderer->SetVertexShader( VS_FILLGBUFFER_EXTRUDE_ID );


    float factor = r_highlight_thickness->GetFloat();


    const float LINE_SATURATE = 2.0f;


    if( distance < LINE_SATURATE )
    factor *= distance / LINE_SATURATE;


    float vsConst[ 4 ] = { factor / Mesh->unpackScale.x, factor / Mesh->unpackScale.y, factor / Mesh->unpackScale.z, 0 };


    // float4x3 vExtrudeMatrix : register( c17 );
    D3D_V( r3dRenderer->pd3ddev->SetVertexShaderConstantF( 17, vsConst, 1 ) );


    r3dPoint3D normal( 0, 1, 0 );


    normal.Normalize();


    SetFillGBufferConstantPixelShader( r3dColor::blue, 1.0f, normal, 0.0f, 0.0f, r_highlight_glow->GetFloat(), 0.f );


    Mesh->DrawMeshSimple( 0 );


    D3DPERF_EndEvent();
    }
    ------------------------
    And Search
    const r3dColor r3dColor::yellow(255,255,0);

    const r3dColor r3dColor::yellow(255,255,0);
    const r3dColor r3dColor::black(0, 0, 0);
    const r3dColor r3dColor::grey(80,80,80);
    const r3dColor r3dColor::white(255, 255, 255);
    const r3dColor r3dColor::red(255, 0, 0);
    const r3dColor r3dColor::green(0, 255, 0);
    const r3dColor r3dColor::blue(0, 0, 255);
    const r3dColor r3dColor::pink(255, 20, 147); // Add more

    Thx You Guys :)

  5. #5
    Valued Member mehmetcan21 is offline
    MemberRank
    Sep 2013 Join Date
    TurkeyLocation
    120Posts

    Re: [Help] How to change the outline of items ?

    But,why do you need to change it? :D

  6. #6
    Professional RageZone XxFuR4xX is offline
    MemberRank
    Jun 2013 Join Date
    ENG / FRLocation
    253Posts

    Re: [Help] How to change the outline of items ?

    Quote Originally Posted by mehmetcan21 View Post
    But,why do you need to change it? :D
    To make more beautiful, but for players



Advertisement