Results 1 to 1 of 1

Thread: Color Gradiant

  1. #1

    Thread Starter
    Fanatic Member pradeepkrao's Avatar
    Join Date
    Sep 2001
    Location
    New Jersey
    Posts
    534

    Color Gradiant

    Hi,

    I am having a 3D object.. I want to make it look very natural..
    I thought applying a color gradiant would serve the purpose..

    I have applied a color gradiant.. But it still doesnt look good..
    Here is the code.. Can anybody please tell me what is wrong..

    PHP Code:

    ' MAX_PRJ_LENGTH  = max width of the object    
    C1,C2,C3 is the Center of the Object

                Zax 
    = (Sq(1).Sq(2).Sq(3).Sq(4).X) \ 4
                 Zax 
    Zax - (C1 MAX_PRJ_LENGTH 2)
                 
    Zax Zax 256 MAX_PRJ_LENGTH
                 
    If Zax 0 Then Zax = -Zax
                 
                 Zay 
    = (Sq(1).Sq(2).Sq(3).Sq(4).Y) \ 4
                 Zay 
    Zay - (C2 MAX_PRJ_LENGTH 2)
                 
    Zay Zay 256 MAX_PRJ_LENGTH
                 
    If Zay 0 Then Zay = -Zay
                 
                 Zaz 
    = (Zco(1) + Zco(2) + Zco(3) + Zco(4)) \ 4
                 
                 Zaz 
    Zaz - (C3 MAX_PRJ_LENGTH 2)
                 
    Zaz Zaz 256 MAX_PRJ_LENGTH
                 
    If Zaz 0 Then Zaz = -Zaz
                 
                 
                 myColor 
    RGB(ZaxZayZaz
    Thanks in advance,
    Pradeep
    Last edited by pradeepkrao; Sep 23rd, 2002 at 04:07 AM.
    Learn by others experience as you cannot live long to experience them all.
    www.freewebs.com/pradeepkrao

    LOOK AT MY GAMES AT MY WEB SITE.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width