A question about color ?

Results 1 to 9 of 9
  1. #1
    Valued Member goder2910 is offline
    MemberRank
    Jun 2009 Join Date
    114Posts

    A question about color ?

    I want to change color on this file, and i know "Color Max" and "Color Min" relate to color. When i try to delete "-65536" và "-301308", the color become "white color" instead old "red color".
    I think this is a hex code of color. Someone can share me some website color generator relate to this code ?
    I tried Color Hex Color Codes but i have no result. This is another kind of color hex code.

    MOXTVersion: 58
    DedaultScale: 1.000000
    PlaySpeed: 1.200000
    DefaultAlpha: 0.600000
    Raytrace: 0
    FaceToViewer: 0
    FadeByDist: 0
    FadeStart: 10.000000
    FadeEnd: 50.000000
    Vec: -1.380749, -1.651210, -1.602925
    Vec: 1.380150, 2.153396, 1.634187
    UseAABB: 1
    ShakeCam: 0
    NoChangeDir: 0
    2DRender: 0
    2DBackLayer: 0
    GFXELEMENTCOUNT: 1
    GFXELEMENTID: 123
    Name: Unnamed1
    SrcBlend: 5
    DestBlend: 2
    RepeatCount: 1
    RepeatDelay: 0
    TexFile: ÑÌ»ð\Æø³å³ö2.dds
    BindEle:
    ZEnable: 1
    MatchGrnd: 0
    GroundHeight: 0
    TexRow: 1
    TexCol: 1
    TexInterval: 50
    Priority: 2
    IsDummy: 0
    DummyEle:
    Warp: 0
    TileMode: 0
    TexSpeed: 0.000000
    TexSpeed: 0.000000
    UReverse: 0
    VReverse: 0
    UVExchg: 0
    RenderLayer: 0
    NoDownSample: 0
    Quota: -1
    ParticleWidth: 1.000000
    ParticleHeight: 1.000000
    3DParticle: 0
    Facing: 0
    ScaleNoOff: 0
    NoScale: 0
    NoScale: 0
    OrgPt: 0.500000
    OrgPt: 0.500000
    EmissionRate: 100.000000
    Angle: 0.000000
    Speed: 1.500000
    ParAcc: 0.000000
    AccDir: 0.000000, 0.000000, -1.000000
    Acc: 0.000000
    TTL: 1.000000
    ColorMin: -65536
    ColorMax: -301308

    ScaleMin: 1.000000
    ScaleMax: 0.500000
    RotMin: 0.000000
    RotMax: 6.283185
    IsSurface: 0
    IsBind: 0
    IsDrag: 0
    DragPow: 1.000000
    AreaSize: 1.400000, 1.400000, 1.400000
    AffectorCount: 1
    CtrlType: 106
    StartTime: 0.000000
    EndTime: -1.000000
    ScaleChage: -1.000000, 0.010000, 9999.000000
    StartTime: 0
    KEYPOINTCOUNT: 1
    InterpolateMode: 0
    TimeSpan: -1
    Position: 0.000000, 0.000000, 0.000000
    Color: -1
    Scale: 1.000000
    Direction: -0.707107, 0.000000, 0.000000, 0.707107
    Rad_2D: 0.000000
    CtrlMethodCount: 0


  2. #2
    Apprentice KOS_void is offline
    MemberRank
    Jun 2009 Join Date
    Virtual City αLocation
    20Posts

    Re: A question about color ?

    The GFXELEMENTID you're using requires a min and max color. If you want only a single color, make both values the same.

    Additionally, the colors represented in the gfx files are decimal values. If you take an ARGB color such as blue (FF0000FF) and convert it to decimal, it would be "-16776961". Your Windows calculator can do this. (At least on Win7 it does)

    Hope that helps.

  3. #3
    Valued Member goder2910 is offline
    MemberRank
    Jun 2009 Join Date
    114Posts

    Re: A question about color ?

    Haha, that 's all i need ^^. Thank you very much. But i have a problem
    I try convert "FF0000FF" to decimal , and i have "4278190335". Myself is difference with yourself. Do you know any websites to convert ARGB to Decimal except "Win 7 Calulator', because i use win xp ^^ ?
    Last edited by goder2910; 12-12-10 at 08:36 AM.

  4. #4
    Apprentice KOS_void is offline
    MemberRank
    Jun 2009 Join Date
    Virtual City αLocation
    20Posts

    Re: A question about color ?

    Quote Originally Posted by goder2910 View Post
    Haha, that 's all i need ^^. Thank you very much. But i have a problem
    I try convert "FF0000FF" to decimal , and i have "4278190335". Myself is difference with yourself. Do you know any websites to convert ARGB to Decimal except "Win 7 Calulator', because i use win xp ^^ ?
    Lol, that's the qword conversion. I'm sorry, I meant to mention that when you convert the hex, make sure it's on "Dword". This way it is 32 bit (FFFFFFFF)

  5. #5
    Valued Member goder2910 is offline
    MemberRank
    Jun 2009 Join Date
    114Posts

    Re: A question about color ?

    Quote Originally Posted by KOS_void View Post
    Lol, that's the qword conversion. I'm sorry, I meant to mention that when you convert the hex, make sure it's on "Dword". This way it is 32 bit (FFFFFFFF)
    i converted -301308 Decimal to FFFB6704 Hex.
    But when i try conver FFFB6704 Hex TO Decimal, it turn into "4294665988". Why it cant convert again into -301308 ??
    Last edited by goder2910; 12-12-10 at 12:16 PM.

  6. #6
    Black Magic Development das7002 is offline
    MemberRank
    Apr 2010 Join Date
    EarthLocation
    2,188Posts

    Re: A question about color ?

    Quote Originally Posted by goder2910 View Post
    i converted -301308 Decimal to FFFB6704 Hex, after i delete 2 'FF' to FB6704, i have red color.
    But when i try conver FFFB6704 Hex TO Decimal, it turn into "4294665988". Why it cant convert again into -301308 ??
    Hex numbers are almost always ASSUMED to be unsigned, nothing you can do about that, to see if the number is negative look at the binary itself (or use php's hexdex since that only gives signed numbers anyway)

  7. #7
    Valued Member goder2910 is offline
    MemberRank
    Jun 2009 Join Date
    114Posts

    Re: A question about color ?

    Quote Originally Posted by das7002 View Post
    Hex numbers are almost always ASSUMED to be unsigned, nothing you can do about that, to see if the number is negative look at the binary itself (or use php's hexdex since that only gives signed numbers anyway)
    So, i like black color and i want add it Color Max, how can i change Hex Black Color into Decimal ? Any idea ?

  8. #8
    Black Magic Development das7002 is offline
    MemberRank
    Apr 2010 Join Date
    EarthLocation
    2,188Posts

    Re: A question about color ?

    Quote Originally Posted by goder2910 View Post
    So, i like black color and i want add it Color Max, how can i change Hex Black Color into Decimal ? Any idea ?
    Black is full off, or 000000 an int would just be 0

    White is ffffff which is 16777215 since I'm assuming its using 24 bit color (like normal hex codes)

  9. #9
    Valued Member goder2910 is offline
    MemberRank
    Jun 2009 Join Date
    114Posts

    Re: A question about color ?

    Quote Originally Posted by das7002 View Post
    Black is full off, or 000000 an int would just be 0

    White is ffffff which is 16777215 since I'm assuming its using 24 bit color (like normal hex codes)
    Haha, i found a way to add color. We can add every kind of color code and client allways understand these code ^^
    Thank dnas ^^



Advertisement