Rendering a composition with bicubic interpolation (I NEED HELP AS SOON AS POSSIBLE!!!!!) thanks!

So I have this composition that I want to render. Some of the layers in that composition has bicubic interpolation enabled. When I rendered that composition, the layers with bicubic interpolation enabled went back to default, seen in the image file attached.
For more information, I'm importing this into a premiere which I will then render again for YouTube. Would this happen again when I render from adobe premiere?

The layers highlighted are the ones with bicubic interpolation enabled. It looks fine in the preview window and in premiere, since this whole after effects comp is a dynamicly linked comp between AE and Premiere. The problem is, when I render this comp in After Effects, those highlighted layers become blurry. Also, if you're wondering why I'm rendering this comp even though it's dynamically linked with premiere, it's because I do it to reduce time in rendering when I color correct/grade in premiere.

Similar Messages

  • HT5622 Hey Hi ! I brought iPhone 5 in Kuwait and now I'm in India now.I noticed my FaceTime option is missing. No option no settings and no data related to FaceTime . I'm very much worried about it. Need help as soon as possible.

    Hey Hi ! I brought iPhone 5 in Kuwait and now I'm in India now.I noticed my FaceTime option is missing. No option no settings and no data related to FaceTime . I'm very much worried about it. Need help as soon as possible.

    Someone could have stolen it in Kuwait...happens all the time .
    Seriously...FaceTime is banned there...there is no way to add it back to your phone...if you wanted FaceTime, you should not have purchased your phone there.
    BTW: You don't have any warranty or support for this phone in India.
    You live & you learn

  • BW Archiving- Need help as soon as possible

    Hi,
    Can Archiving on ODS be implemented using an ABAP program? If the data is loaded on to flat files and if it is required to reload it back to ODS is ABAP a better choice. If any one has worked on this issue earlier please provide me the information as soon as possible. Any input on this issue will be of great help.
    Thanks,
    SP

    Hi sudheer,
    I have gone through few of your requests to SDN network . and found out thta you have worked on  "sap bw archiving ". So, I need a small help from you . need to clear out some of my doubts with sap bw archiving issues . So could you please send me your e-mail id . so that i can be in contact with you . As i am new to SDN .
    Thanking you in advance . I would appreciate your help .
    or Anyone who have experience with "SAP  BW archiving " could you please send me your mail id . Thanks for your help .
    Cheers,
    shailu.

  • I need help as soon as possible please hs to with arrays.

    import java.util.Random;
    public class AviarySimulator
        // Instance variables
        private Aviary aviary;
        private int numberOfDays = 0;
        private Random r;
    public void simulateDay(int amtFeed)
            //a new Day
            numberOfDays++;
            System.out.println("**************************");
            System.out.println ("Day : " + numberOfDays);
            if(!aviary.isEmpty())
                    // Ask the cage to supply its budgie object
                    Budgie theBudgie = aviary.getBudgie();
                    /* Check there really is a Bird in the cage. null means that there is no
                     * bird object assigned to the myBudgie variable in class cage.
                    if(theBudgie != null)
                       // Code moved from below.  PR
                       // Budgie gets older because a day has gone by.                     
                       theBudgie.incAge();
                       // Budgie exercises every day PR
                       theBudgie.exercise(DAILY_EXERCISE);
                        // Feed the budgie
                        // To avoid feeding nothing, check that food is given PR
                        // Also rejects negative feed!
                        if(amtFeed > 0)
                            theBudgie.eat(amtFeed);
                            System.out.println("Just been fed " + amtFeed + " grams of bird seed");
                        // Check if the budgie is still alive
                       if(theBudgie.isDead())
                            System.out.println(theBudgie.getName() + " just died...sob");
                            System.out.println("Here lies " + theBudgie.getName() + " this budgie was much loved by its " +
                                                   theBudgie.getNumEggsLaid() + " eggy ofspring");
                            aviary.removeBudgie();
                        // If alive is it overweight?
                        else if(theBudgie.isObese())
                            System.out.println(theBudgie.getName() + " is obese it needs some exercise");
                            theBudgie.exercise(10);
                        else // Budgie is alive and not overweight
                            System.out.println(theBudgie.toString());
                           // The budgie gets a day older
                           // theBudgie.incAge(); // Moved to above PR
                            // The budgie may lay an egg                   
                            if(theBudgie.layEgg(r))
                                System.out.println(theBudgie.getName() + " has just laid an egg ");
                                System.out.println("The egg has been removed from the cage for artificial incubation \n"
                                                      + "and will be adopted out after hatching");
                else  // No budgie in the cage
                   System.out.println("The cage is empty");
         * Simulate several days without food.
         * @param numDays, the length of the simulation
        public void simulateDays(int numDays)
            for(int i = 0; i < numDays; i++)
                simulateDay(0); // PR
         * Simulate several days with food.
         * @param numDays, the length of the simulation
         * @param amtFeed, the amount of budgie food in grammes
        public void simulateDays(int numDays, int gmsSeed)
            for(int i = 0; i < numDays; i++)
                simulateDay(gmsSeed);
    }This code is supposed to be compatible with this code:
    public Budgie(String name, boolean female) // Added gender PR
            // Initialise instance variables
            age = 0;
            colour = "green"; // Default colour
            canTalk = false;  // Cannot talk yet, can only go "cheep"
                              // Quotes removed PR
            budgiesWords = "cheep";
            weight = 25; // In healthy weight range
            bIsFemale = female; // PR
            water = 10;
            // Record supplied name       
            this.name = name;
         * Teaches a budgie to talk
         * @param phrase - what the budgie can say
        public void teachToTalk(String phrase)
            // Ignore an empty string
            if(phrase != "")
                // Budgie can now talk
                canTalk = true;
                budgiesWords = phrase;
         * Increments a budgie's age by a day
        public void incAge()
            age++;
         * The budgie is dead if it is too old or too fat or starved or too thirsty.
        public boolean isDead()
            return (diedOfOldAge() || diedFromOverFeeding() || isStarved() || diedOfThirst());
         * The budgie is too old if it is older than the budgie's maximum age.
        public boolean diedOfOldAge()
            return (age > MAX_AGE);
         * The budgie is too thirsty if it is has less than 10mls of water.
        public boolean diedOfThirst()
            return (water < MIN_DRINK);
         * The budgie is too heavy to live if it is more than double a
         * budgie's sensible weight limit.
        public boolean diedFromOverFeeding()
            return (weight >= TOO_FAT*2);
         * The budgie is obese if it is more than a budgie's sensible
         *  weight limit.
        public boolean isObese()
            return (weight >= TOO_FAT);
         * The budgie is starved if it is less than a budgie's sensible
         *  minimum weight.
        public boolean isStarved()
            return (weight <= TOO_THIN);
         *  The budgie has been fed.  It will put on weight.
         *  @param gmsOfBirdFeed, the amount of food eaten in grammes
        public void eat(int gmsOfBirdFeed)
            // Convert to gms fat
            double fat = gmsOfBirdFeed/10.0;
            weight = weight + fat;
         *  The budgie has drunk.
         *  @param mlsofwater, the amount of water drunk in mls
        public void drink(int mlsOfWater)
            water = mlsOfWater;
         *  The budgie has done some exercise.  It will lose weight.
         *  @param minutesOfExercise, the time of the exercise
        public void exercise(int minutesOfExercise)
            double weightLoss = minutesOfExercise * 0.1; // For each minute lose 0.1 gms fat      
            weight -= weightLoss;
            System.out.println("Budgie exercising for " + minutesOfExercise + " minutes, has lost " + weightLoss + " grammes in weight." );
        *  The budgie may lay an egg.  Only adults can lay eggs.
        *  @param rnd, a random object
        public boolean layEgg(Random rnd)
           boolean bLaying = false; // default
           // Only hens can lay eggs // PR
           if(bIsFemale)
               int probability = rnd.nextInt(10);
               // Random chance that it will lay
               // Added that cannot lay if last egg laid yesterday PR
               if((probability >= 5) && (age > ADULT_AGE ) && (age - lastEgg != 1))
                    // Can only lay eggs if a grown-up
                    numEggsLaid++;
                    bLaying = true;
                    lastEgg = age; // Laid an egg today PR
           return bLaying;      
         *  The budgie talks - display its words.
        public void talk()
            System.out.println(budgiesWords);
         *  Change the colour of the budgie.
         *  @param newColour, new value of budgie's colour
        public void setColor(String newColour)
            colour = newColour;
         *  Return the colour of the budgie.
         *  @return budgie's colour
        public String getColour()
            return colour;
         *  Output the budgie's details.
         *  @return A string containing all details of the budgie
        public String toString()
            String msg = "Budgie " + name + " ";
            if(canTalk)
                msg += "can talk it says ";
            else
                msg += "can not talk it just makes the sound ";
            msg += "'" + budgiesWords + "'";
            msg += "\n";
            msg += " Its colour is : " + colour;
            msg += "\n Its age is : " + age + " days.";
           return msg;
         *  Return the number of eggs the budgie has laid.
         *  @return eggs laid by budgie
        public int getNumEggsLaid()
            return numEggsLaid;
         *  Return the budgie's age.
         *  @return age of budgie
        public int getAge()
            return age;
         *  Return the budgie's name.
         *  @return name of budgie
        public String getName()
            return name;
         *  Return the budgie's gender.
         *  @return true if budgie is female
        public boolean isFemale()
            return bIsFemale;
    But everytime I try to compile it highlight this bit in the simulator:Budgie theBudgie = aviary.getBudgie();With an error message:
    getBudgie in Aviary cannot be applied to ()
    Im sorry for the long post please help would be most apreciated.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    NO prob man thank for such a quick response
    import java.util.ArrayList;
    * A Aviary for budgies to live in.
    * A maximum of one budgie can live in aviary
    * @author (Jacqui Whalley)
    *  Modified by Phil Robbins
    * @version (v0.2)
    *  9-3-2006 Fixed bugs from stage 1.
    *           Added stage 2 code
    public class Aviary
        // Instance variables
        private ArrayList budgies; // The budgies that live in the aviary
       // private boolean empty;   // Removed PR
         * Constructor for objects of class aviary.
        public Aviary()
            //empty = true; // removed PR
            budgies = new ArrayList(); // Semi colon added PR 
         *  Add a budgie to the aviary.
         *  @param bird, the budgie to add to the aviary.
        public void addBudgie(Budgie bird)
            // Can only have one budgie
            budgies.add(bird);
         * Remove the budgie - eg if it has died.
        public void removeBudgie(int index)
            if (index <= budgies.size() && index > 0)
                // Can only remove if there is a budgie there
                budgies.remove(index);
            else
                System.out.println("Error");
         * Returns the Aviary's budgie (which my be null).
         * @return The budgie that lives in the Aviary
        public void getBudgie(int index)
            if (index <= budgies.size() && index > 0)
                // Can only remove if there is a budgie there
                System.out.println(budgies.get(index));
            else
                System.out.println("Error");
         * Returns true if the cage is Aviary.
         * @return the emptiness of the Aviary
        public boolean isEmpty()
            //return empty; // Removed PR
            return budgies.size() == 0;
         * List budgies and there details
        public void listBudgieDetails()
            for(int i = 0;i < budgies.size();i++)
                System.out.println(budgies.get(i));
    }

  • Wanted Main window only on Task bar ...Need help as soon as possible

    Hello All,
    We are creating one application.
    We have main window(JFrame) with four subwindows.
    By clicking buttons on main window the subwindows will be opened.
    By using Iconified method we are able to minimise all the subwindows when main window is minimised.
    But on the task bar all the windows are showed.
    But we want to show main window only on the task bar while minimising
    That means all the sub windows should come under main window.
    Will Deiconified satifies this condition while maximisation.
    Need some ones help.
    Thank You All.
    Rajiv.V

    Use show() and hide() on your subwindows instead of iconifying and deiconifying them. Minimizing a window should produce exactly the behavior you're seeing. Using the right tool will get you the right result.

  • I need help as soon as possible

    Can anyone please help me and explain how can I do this white effect on dark background? Can I do this in Illustrator or I must use Photoshop?
    Thank you.

    1.     Use a black rectangle to make your black background.
    2.     Create your mountain shape using the pen tool.
    3.     Make a ellipse in the shape of your white glow. Set its stacking order to be behind your mountain, but in front of your background (or use different layers).
    4     Set the fill of your ellipse to be a radial gradient from white to black.
    5.    Select your ellipse and go to Effect > Texture > Grain. Play with the sliders until you achieve the desired effect. You may need to bounce back and forth between your gradient settings and the texture settings to get it right.
    Tip* You can access the settings of the texture effect again after you apply them by going to your appearance palette and selecting it.

  • NEED HELP AS SOON AS POSSIBLE!

    my computer crashed just recently and i got my account back for itunes, but my library is empty. so i plugged my ipod in to put my songs from my ipod to my library, but it wont work. i went to my account page and it says "one machine is authorized to play music purchased with this account". how do i authorize another computer to play music?

    With iTunes open, look at the very top of the screen, just a bit to the left of center.

  • I need help as soon as possible. statement wont execute the if statement

    I can not seen to make my "if statement work" can someone guide me in the right direction.
    import java.util.Scanner;
    import java.lang.Math;
    public class bm
    * main
    public static void main(String[] args) throws Exception
    Scanner scanner1,scanner2,scanner3;
    String sGradeType,sGrade="",sUGrade;
    char cGrade;
    double dGrade;
    long drGrade;
    int iGrade=0;
    System.out.println("Type of Entry (Chars(C)/Digits(D)");
    scanner1 = new Scanner(System.in);
    scanner2 = new Scanner(System.in);
    sGradeType = scanner1.next();
    sGradeType = "D";
    if (sGradeType == "D")
    System.out.println("Enter Grade number");
    scanner2 = new Scanner(System.in);
    dGrade = scanner2.nextDouble();
    drGrade = Math.round(dGrade);
    iGrade = (int)dGrade;
    switch (iGrade)
    case 75 :
    sGrade = "A" ;
    break ;
    case 60 :
    sGrade = "B";
    break ;
    case 50 :
    sGrade = "C";
    break ;
    case 40 :
    sGrade = "D";
    break ;
    default :
    System.out.print("illegal Grade !") ;
    System.out.printf("Grade Value, %8.3f. Grade %s", dGrade, sGrade);
    } else if (sGradeType == "C")
    System.out.println("Enter Grade Letter");
    scanner3 = new Scanner(System.in);
    sGrade = scanner3.next();
    sUGrade = sGrade.toUpperCase();
    cGrade = sUGrade.charAt(0);
    switch (cGrade)
    case 'A' :
    iGrade = 75 ;
    break ;
    case 'B' :
    iGrade = 60;
    break ;
    case 'C' :
    iGrade = 50;
    break ;
    case 'D' :
    iGrade = 40;
    break ;
    default :
    System.out.print("illegal Grade !") ;
    System.out.printf("Grade Value, %d, Grade %s", iGrade, sGrade);
    } // end of method main
    }

    Oops! Hit the wrong button.
    OK.
    First up - welcome to the Sun forums.
    A few points.
    >
    I can not seen to make my "if statement work" can someone guide me in the right direction.>1) Maybe the if statement is just a little tired. Give it a good night's rest and it will probably do twice the work tomorrow.
    Or to put that a less funny way..
    Please describe what it was supposed to do, why you thought it would do that, and what it actually did.
    2) Which 'if' statement? There are two if statements in that code.
    3) String comparison should not be done using '==', instead use string1.equals(string2)
    4) Please use the code formatting tags when posting code, and indent code using the common conventions.
    This is what I mean..
    import java.util.Scanner;
    import java.lang.Math;
    public class bm
    * main
         public static void main(String[] args) throws Exception
              Scanner scanner1,scanner2,scanner3;
              String sGradeType,sGrade="",sUGrade;
              char cGrade;
              double dGrade;
              long drGrade;
              int iGrade=0;
              System.out.println("Type of Entry (Chars(C)/Digits(D)");
              scanner1 = new Scanner(System.in);
              scanner2 = new Scanner(System.in);
              sGradeType = scanner1.next();
              sGradeType = "D";
              if (sGradeType == "D")
                   System.out.println("Enter Grade number");
                   scanner2 = new Scanner(System.in);
                   dGrade = scanner2.nextDouble();
                   drGrade = Math.round(dGrade);
                   iGrade = (int)dGrade;
                   switch (iGrade)
                        case 75 :
                             sGrade = "A" ;
                             break ;
                        case 60 :
                             sGrade = "B";
                             break ;
                        case 50 :
                             sGrade = "C";
                             break ;
                        case 40 :
                             sGrade = "D";
                             break ;
                        default :
                             System.out.print("illegal Grade !") ;
                   System.out.printf("Grade Value, %8.3f. Grade %s", dGrade, sGrade);
              } else if (sGradeType == "C")
                   System.out.println("Enter Grade Letter");
                   scanner3 = new Scanner(System.in);
                   sGrade = scanner3.next();
                   sUGrade = sGrade.toUpperCase();
                   cGrade = sUGrade.charAt(0);
                   switch (cGrade)
                        case 'A' :
                             iGrade = 75 ;
                             break ;
                        case 'B' :
                             iGrade = 60;
                             break ;
                        case 'C' :
                             iGrade = 50;
                             break ;
                        case 'D' :
                             iGrade = 40;
                             break ;
                        default :
                             System.out.print("illegal Grade !") ;
                   System.out.printf("Grade Value, %d, Grade %s", iGrade, sGrade);
         } // end of method main
    } Edited by: AndrewThompson64 on Apr 12, 2009 10:47 PM

  • .save problem, need help as soon as possible !

    function dataGrabbed(event:Event):void
    var dataText = input_txt.text
    saver.addEventListener(Event.COMPLETE, dataSaved);
    saver.save("saver.php","data.xml",dataText);
    the above code is a code I am trying to use, but dataText as you can se is just a var, how do I tell ActionScript3 to put dataText into dataXML.options.info.uid ?
    saver.php content:
    <?php
    $content = $_POST['content'];
    $file = $_POST['fileName'];
    $content = stripslashes($content);
    $writeFile = fopen($file, "w");
    if(fwrite($writeFile, $content))
      echo $content;
    else
      echo "Error writing to file";
    fclose($writeFile);
    ?>

    use:
    var urlR:URLRequest = new URLRequest("saver.php");
    var ldr:URLLoader= new URLLoader();
    ldr.dataFormat = URLLoaderDataFormat.VARIABLES;
    var urlV:URLVariables = new URLVariables();
    urlV.content = input_txt.text;
    urlV.fileName = "data.xml";
    urlR.data = urlV;
    urlR.method = URLRequestMethod.POST;
    ldr.addEventListener(Event.COMPLETE, completeF);
    ldr.addEventListener(IOErrorEvent.IO_ERROR, IOErrorF);
    ldr.load(urlR);
    function completeF(e:Event):void {
    function IOErrorF(e:IOErrorEvent):void {

  • After entering the redemption code from Adobe Photoshop CC, I keep getting an error saying "This card was purchased in a country that does not match your Adobe ID. You can try signing in with a different Adobe ID or get in touch with us if you need help."

    Hi. I'm a Mac user. After entering the redemption code from Adobe Photoshop CC, I keep getting an error saying "This card was purchased in a country that does not match your Adobe ID. You can try signing in with a different Adobe ID or get in touch with us if you need help." What should I do?

    Did you purchase the software in another country than where you live?

  • Hi, Hi, Hi  I have the old MacBook Pro. Upgraded to Mountain Lion which completely wrecked the system. So downgraded to Snow Leopard. The updated the combo update. Now stuck on blue screen at start-up. Need help. Greatly appreciated. Thank you.

    Hi,
    I have the old MacBook Pro. Upgraded to Mountain Lion which completely wrecked the system. So downgraded to Snow Leopard.
    Then updated the combo update. Now stuck on blue screen at start-up.
    Need help. Greatly appreciated. Thank you.

    Downgrade Lion/Mountain Lion to Snow Leopard
      1. Boot from your Snow Leopard Installer Disc. After the installer
          loads select your language and click on the Continue
          button. When the menu bar appears select Disk Utility from the
          Utilities menu.
      2. After DU loads select your hard drive (this is the entry with the
          mfgr.'s ID and size) from the left side list. Note the SMART status
          of the drive in DU's status area.  If it does not say "Verified" then
          the drive is failing or has failed and will need replacing.  SMART
          info will not be reported  on external drives. Otherwise, click on
          the Partition tab in the DU main window.
      3. Under the Volume Scheme heading set the number of partitions
          from the drop down menu to one. Set the format type to Mac OS
          Extended (Journaled.) Click on the Options button, set the
          partition scheme to GUID then click on the OK button. Click on
          the Partition button and wait until the process has completed.
      4. Quit DU and return to the installer. Install Snow Leopard.
    This will erase the whole drive so be sure to backup your files if you don't have a backup already. If you have performed a TM backup using Lion be aware that you cannot restore from that backup in Snow Leopard (see below.) I suggest you make a separate backup using Carbon Copy Cloner.
    If you have Snow Leopard Time Machine backups, do a full system restore per #14 in Time Machine - Frequently Asked Questions.  If you have subsequent backups from Lion, you can restore newer items selectively, via the "Star Wars" display, per #15 there, but be careful; some Snow Leopard apps may not work with the Lion files.

  • Java using GUI's mixed with opengl... needs help...urgent....

    guys, i need help.... is anyone there have an idea about opengl...? ill attach 4 files that needs to be enhanced or debug for possible errors. to see the canvas... you should have atleast all the needed lib and jar of opengl in your pc.
    its urgent, its for our thesis actually....ill be dividing the codes with the use of (" **** ")sign...
    * Main.java
    * Created on 29 January 2007, 08:12
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package longgong;
    * @author welcome
    public class Main {
        /** Creates a new instance of Main */
        public Main() {
         * @param args the command line arguments
        public static void main(String[] args) {
            // TODO code application logic here
            frmMain f = new frmMain();
    * frmMain.java
    * Created on November 10, 2006, 10:52 AM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package longgong; // create a floder named longgong and add the class inside
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    * @author all user
    public class frmMain extends JFrame implements ActionListener, ChangeListener, ItemListener{
        JPanel pnlWest, pnlEast, pnlCenter, pnlSouth, pnlTitle, pnlSlider, pnlPlayers;
        JSlider slrSpeed;
        JList lstResults;
        String varResults [] = new String[31];
        JLabel lblPlayers, lblTitle;
        JCheckBox lblPlayer1, lblPlayer2, lblPlayer3, lblPlayer4, lblPlayer5, lblPlayer6;
        ImageIcon imgDice1;
        MyCanvas canvas;
        JButton btnStart, btnStop;
        JMenuBar menuBar;
        JMenu menuFile, menuView, menuHelp;
        JMenuItem menuNew, menuExit, menuIn, menuOut, menuHigh, menuPlay, menuAbout;
        boolean isNew = false;
        /** Creates a new instance of frmMain */
        public frmMain() {
            setLayout(new BorderLayout());
            setTitle("Longgong");
            setSize(780,600);
            canvas = new MyCanvas(getSize().width, getSize().height);
            imgDice1 = new ImageIcon("c:\\java\\images\\one.png");
            menuBar = new JMenuBar();
            menuFile = new JMenu("File");
            menuView = new JMenu("View");
            menuHelp = new JMenu("Help");
            menuNew = new JMenuItem ("New Game");
            menuNew.addActionListener(this);
            menuExit = new JMenuItem ("Exit");
            menuExit.addActionListener(this);
            menuIn = new JMenuItem ("Zoom In");
            menuIn.addActionListener(this);
            menuOut = new JMenuItem ("Zoom Out");
            menuOut.addActionListener(this);
            menuHigh = new JMenuItem ("High Score");
            menuPlay = new JMenuItem ("How To Play");
            menuPlay.addActionListener(this);
            menuAbout = new JMenuItem ("About");
            menuAbout.addActionListener(this);
            menuFile.add(menuNew);
            menuFile.add(menuExit);
            menuView.add(menuIn);
            menuView.add(menuOut);
            menuView.add(menuHigh);
            menuHelp.add(menuPlay);
            menuHelp.add(menuAbout);
            menuBar.add(menuFile);
            menuBar.add(menuView);
            menuBar.add(menuHelp);
            setJMenuBar(menuBar);
            varResults[0] = "Dice Results";
            varResults[1] = "1. 3-4-2";
            varResults[2] = "2. 3-1-4";
            varResults[3] = "3. 3-6-5";
            slrSpeed = new JSlider(0, 100, 0);
            slrSpeed.setPaintTicks(true);
            slrSpeed.setMinorTickSpacing(1);
            slrSpeed.setPaintLabels(true);
            slrSpeed.setSnapToTicks(true);
            slrSpeed.addChangeListener(this);
            slrSpeed.setEnabled(false);
            btnStart =  new JButton("Start");
            btnStart.addActionListener(this);
            btnStop =  new JButton("Stop");
            btnStop.addActionListener(this);
            pnlWest = new JPanel();
            pnlEast = new JPanel();
            pnlCenter = new JPanel();
            pnlSouth = new JPanel();
            pnlTitle = new JPanel();
            pnlSlider = new JPanel();       
            pnlPlayers = new JPanel();
            pnlWest.setLayout(new BorderLayout());
            pnlEast.setLayout(new BorderLayout());
            pnlEast.setPreferredSize(new Dimension(100,400));
            pnlCenter.setLayout(new BorderLayout());
            pnlSouth.setLayout(new FlowLayout());
            pnlTitle.setLayout(new FlowLayout());
            pnlSlider.setLayout(new FlowLayout());       
            pnlPlayers.setLayout(new BoxLayout(pnlPlayers,BoxLayout.Y_AXIS));
            pnlPlayers.setPreferredSize(new Dimension(150,400));
            lblPlayers = new JLabel("  Players: Choice (s)");
            lblPlayer1 = new JCheckBox("None");
            lblPlayer1.addItemListener(this);
            lblPlayer2 = new JCheckBox("None");
            lblPlayer2.addItemListener(this);
            lblPlayer3 = new JCheckBox("None");
            lblPlayer3.addItemListener(this);
            lblPlayer4 = new JCheckBox("None");
            lblPlayer4.addItemListener(this);
            lblPlayer5 = new JCheckBox("None");
            lblPlayer5.addItemListener(this);
            lblPlayer6 = new JCheckBox("None");
            lblPlayer6.addItemListener(this);
            lstResults = new JList(varResults);
            pnlPlayers.add(lblPlayers);
            pnlPlayers.add(lblPlayer1);
            pnlPlayers.add(lblPlayer2);
            pnlPlayers.add(lblPlayer3);
            pnlPlayers.add(lblPlayer4);
            pnlPlayers.add(lblPlayer5);
            pnlPlayers.add(lblPlayer6);
            pnlSlider.add(slrSpeed);
            pnlSlider.add(btnStart);
            pnlSlider.add(btnStop);
            pnlEast.add(BorderLayout.CENTER, lstResults);
            pnlCenter.add(BorderLayout.SOUTH, pnlSlider);    
            pnlCenter.add(BorderLayout.CENTER, canvas);    
            lblTitle = new JLabel("LONGGONG DICE GAME SIMULATION");
            pnlTitle.add(lblTitle);
            getContentPane().add(BorderLayout.NORTH,pnlTitle);   
            getContentPane().add(BorderLayout.WEST,pnlPlayers);
            getContentPane().add(BorderLayout.EAST,pnlEast);
            getContentPane().add(BorderLayout.CENTER, pnlCenter);
            getContentPane().add(BorderLayout.SOUTH,pnlSouth);
            setResizable(false);
            canvas.start();
            show();       
        //name change when player is selected
        public void itemStateChanged(ItemEvent e) {
        Object source = e.getItemSelectable();
        int choice;
        if (source == lblPlayer1) {
            if (lblPlayer1.isSelected()) {
                frmChoices fchoices = new frmChoices(lblPlayer1);
        if (source == lblPlayer2) {
            if (lblPlayer2.isSelected()) {
                frmChoices fchoices = new frmChoices(lblPlayer2);
        if (source == lblPlayer3) {
            if (lblPlayer3.isSelected()) {
                frmChoices fchoices = new frmChoices(lblPlayer3);
        if (source == lblPlayer4) {
            if (lblPlayer4.isSelected()) {
                frmChoices fchoices = new frmChoices(lblPlayer4);
        if (source == lblPlayer5) {
            if (lblPlayer5.isSelected()) {
                frmChoices fchoices = new frmChoices(lblPlayer5);
        if (source == lblPlayer6) {
            if (lblPlayer6.isSelected()) {
                frmChoices fchoices = new frmChoices(lblPlayer6);
           // if (e.getStateChange() == ItemEvent.DESELECTED)
            //...make a note of it...
        //slider speed change
        public void stateChanged(ChangeEvent e){      
               canvas.speed(slrSpeed.getValue());
        public void actionPerformed (ActionEvent e){
            if (e.getActionCommand().equals ("Exit")){
                System.exit (0);     
            //connects to frmNew
            if (e.getActionCommand().equals ("New Game")){
                frmNew n = new frmNew(this);   
                lblPlayer1.setText("None");
                lblPlayer2.setText("None");
                lblPlayer3.setText("None");
                lblPlayer4.setText("None");
                lblPlayer5.setText("None");
                lblPlayer6.setText("None");
                isNew = true;
                lblPlayer1.setSelected(false);
                lblPlayer2.setSelected(false);
                lblPlayer3.setSelected(false);
                lblPlayer4.setSelected(false);
                lblPlayer5.setSelected(false);
                lblPlayer6.setSelected(false);
            if (e.getActionCommand().equals ("Start")){
               slrSpeed.setEnabled(true);
               canvas.setRandomDicePosition();
            if (e.getActionCommand().equals ("Stop")){
                slrSpeed.setValue(0);
                slrSpeed.setEnabled(false);
            //ADDED
             if (e.getActionCommand().equals ("New Game")){
               frmNew n = new frmNew(this);           
            if (e.getActionCommand().equals ("Zoom In")){
                canvas.zoomIn();          
            if (e.getActionCommand().equals ("Zoom Out")){
                canvas.zoomOut();          
            if (e.getActionCommand().equals ("How To Play")){
                frmPlay p = new frmPlay();           
            if (e.getActionCommand().equals ("About")){
                frmAbout a = new frmAbout();           
    package longgong;
    // Java  classes
       import java.awt.*;
       import java.awt.event.*;
       import java.net.URL;
    // GL4Java classes
       import gl4java.GLContext;
       import gl4java.awt.GLAnimCanvas;
       import gl4java.utils.textures.*;
       class MyCanvas extends GLAnimCanvas implements KeyListener, MouseListener
         // holds information on which keys are held down.
          boolean[] keys=new boolean[256];
          float     xrot;                    // X Rotation ( NEW )
          float     yrot;                    // Y Rotation ( NEW )
          float     zrot;                    // Z Rotation ( NEW )
          float[] diceRotX = new float[3];
          float[] diceRotY = new float[3];
          float[] diceRotZ = new float[3];
          float[] diceTranX = new float[3];
          float[] diceTranY = new float[3];
          float[] diceTranZ = new float[3];     
          float speedValue;
          Dice[] D;
          float zoom = -15.0f;
          public MyCanvas(int w, int h)
             super(w, h);
             //Registers this canvas to process keyboard events, and Mouse events
             addKeyListener(this);
             addMouseListener(this);  
             setAnimateFps(60); // seemed to be essential in getting any performance
             speedValue=0.0f;
             diceTranX[0] = -2.0f;
             diceTranY[0] = 2.0f;
             diceTranZ[0] = zoom;
             diceTranX[1] = 2.0f;
             diceTranY[1] = 1.0f;
             diceTranZ[1] = zoom;
             diceTranX[2] = 0.0f;
             diceTranY[2] = -2.0f;
             diceTranZ[2] = zoom;
          public void zoomIn(){
              zoom=zoom+1.0f;
           public void zoomOut(){
              zoom=zoom-1.0f;
          public void speed(float s){
            speedValue=s/100;
        /** void reshape(int width, int height) Called after the first paint command.  */  
          public void reshape(int width, int height)
             if(height==0)height=1;
             gl.glViewport(0, 0, width, height);                       // Reset The Current Viewport And Perspective Transformation
             gl.glMatrixMode(GL_PROJECTION);                           // Select The Projection Matrix
             gl.glLoadIdentity();                                      // Reset The Projection Matrix
             glu.gluPerspective(45.0f, width / height, 0.1f, 100.0f);  // Calculate The Aspect Ratio Of The Window
             gl.glMatrixMode(GL_MODELVIEW);                            // Select The Modelview Matrix
             gl.glLoadIdentity();                                      // Reset The ModalView Matrix     
       /** void preInit() Called just BEFORE the GL-Context is created. */  
          public void preInit()
          { doubleBuffer = true; stereoView = false; // buffering but not stereoview
          public void setRandomDicePosition(){
             for (int i=0; i<3; i++){
               D.setCoordinates(diceRotX[i],diceRotY[i],diceRotZ[i],diceTranX[i],diceTranY[i],diceTranZ[i]);
    D[i].getRandomDice();
    /** void init() Called just AFTER the GL-Context is created. */
    public void init()
    //float width = (float)getSize().width;
    //float height = (float)getSize().height;
    D = new Dice[5];
    D[0] = new Dice(this);
    D[1] = new Dice(this);
    D[2] = new Dice(this);
    //initialize dice location
    for (int i=0; i<3; i++){
    D[i].setCoordinates(diceRotX[i],diceRotY[i],diceRotZ[i],diceTranX[i],diceTranY[i],diceTranZ[i]);
    D[i].getRandomDice();
    gl.glEnable(GL_TEXTURE_2D);                              //Enable Texture Mapping ( NEW )
    gl.glShadeModel(GL_SMOOTH); //Enables Smooth Color Shading
    gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f); //This Will Clear The Background Color To Black
    gl.glClearDepth(1.0); //Enables Clearing Of The Depth Buffer
    gl.glEnable(GL_DEPTH_TEST); //Enables Depth Testing
    gl.glDepthFunc(GL_LEQUAL); //The Type Of Depth Test To Do
    gl.glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST); //Really Nice Perspective Calculations
    public void DrawBoundaries(){
    double x,y;
    double radius = 5.0f;
    gl.glLoadIdentity();                                             // Reset The View
    gl.glTranslatef(0.0f,0.0f,zoom-1.0f);
    gl.glRotatef(90.0f,0.0f,0.0f,1.0f);
    gl.glColor3f(0.6f,0.3f,0.3f);
    gl.glBegin(gl.GL_POLYGON);
    // angle is
    // x = radius * (cosine of angle)
    // y = radius * (sine of angle)
    for (double a=0; a<360; a++) {
    x = radius * (Math.cos(a));
    y = radius * (Math.sin(a));
    gl.glVertex3d(x, y, 0.0f);
    gl.glEnd();
    gl.glColor3f(1.0f,1.0f,1.0f);
    public void DrawGLScene()
    gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);     // Clear The Screen And The Depth Buffer
    DrawBoundaries();
    for (int i=0; i<3; i++){
    D[i].startDiceMovement();
    D[i].setTz(zoom);
    D[i].setSpeed(speedValue);
    D[i].drawDice();
    for (int i=0; i<3; i++){
    //start of loop
    if(i!=0){    
    if (D[0].getMoveLeft()==true){        
    if ( (D[0].getTx()>=D[i].getTx()-1.0f) && (D[0].getTx()<=D[i].getTx()) ){
    if (D[0].getMoveLeft()== true) D[0].setMoveLeft(false);
    else D[0].setMoveLeft(true);
    }else{
    if ( (D[0].getTx()-1<=D[i].getTx()) && (D[0].getTx()-1>=D[i].getTx()-1) ){
    if (D[0].getMoveLeft()== true) D[0].setMoveLeft(false);
    else D[0].setMoveLeft(true);
    if (D[0].getMoveUp()==true){        
    if ( (D[0].getTy()>=D[i].getTy()-1.0f) && (D[0].getTy()<=D[i].getTy()) ){
    if (D[0].getMoveUp()== true) D[0].setMoveUp(false);
    else D[0].setMoveUp(true);
    }else{
    if ( (D[0].getTy()-1<=D[i].getTy()) && (D[0].getTy()-1>=D[i].getTy()-1) ){
    if (D[0].getMoveUp()== true) D[0].setMoveUp(false);
    else D[0].setMoveUp(true);
    }//end of if i!=0
    if(i!=1){    
    if (D[1].getMoveLeft()==true){        
    if ( (D[1].getTx()>=D[i].getTx()-1.0f) && (D[1].getTx()<=D[i].getTx()) ){
    if (D[1].getMoveLeft()== true) D[1].setMoveLeft(false);
    else D[1].setMoveLeft(true);
    }else{
    if ( (D[1].getTx()-1<=D[i].getTx()) && (D[1].getTx()-1>=D[i].getTx()-1) ){
    if (D[1].getMoveLeft()== true) D[1].setMoveLeft(false);
    else D[1].setMoveLeft(true);
    if (D[1].getMoveUp()==true){        
    if ( (D[1].getTy()>=D[i].getTy()-1.0f) && (D[1].getTy()<=D[i].getTy()) ){
    if (D[1].getMoveUp()== true) D[1].setMoveUp(false);
    else D[1].setMoveUp(true);
    }else{
    if ( (D[1].getTy()-1<=D[i].getTy()) && (D[1].getTy()-1>=D[i].getTy()-1) ){
    if (D[1].getMoveUp()== true) D[1].setMoveUp(false);
    else D[1].setMoveUp(true);
    }//end of if i!=1
    if(i!=2){    
    if (D[2].getMoveLeft()==true){        
    if ( (D[2].getTx()>=D[i].getTx()-1.0f) && (D[2].getTx()<=D[i].getTx()) ){
    if (D[2].getMoveLeft()== true) D[2].setMoveLeft(false);
    else D[2].setMoveLeft(true);
    }else{
    if ( (D[2].getTx()-1<=D[i].getTx()) && (D[2].getTx()-1>=D[i].getTx()-1) ){
    if (D[2].getMoveLeft()== true) D[2].setMoveLeft(false);
    else D[2].setMoveLeft(true);
    if (D[2].getMoveUp()==true){        
    if ( (D[2].getTy()>=D[i].getTy()-1.0f) && (D[2].getTy()<=D[i].getTy()) ){
    if (D[2].getMoveUp()== true) D[2].setMoveUp(false);
    else D[2].setMoveUp(true);
    }else{
    if ( (D[2].getTy()-1<=D[i].getTy()) && (D[2].getTy()-1>=D[i].getTy()-1) ){
    if (D[2].getMoveUp()== true) D[2].setMoveUp(false);
    else D[2].setMoveUp(true);
    }//end of if i!=2
    //end of loop for i
    /** void display() Draw to the canvas. */
    // Purely a Java thing. Simple calls DrawGLScene once GL is Initialized
    public void display()
    for(int i=0;i<3;i++){
    glj.gljMakeCurrent(); //Ensure GL is initialised correctly
    DrawGLScene();
    glj.gljSwap(); //Swap buffers
    glj.gljFree(); // release GL
    // Key Listener events
    public void keyTyped(KeyEvent e){
    public void keyPressed(KeyEvent e){
    switch(e.getKeyCode())
    //Kill app
    case KeyEvent.VK_ESCAPE:
    System.exit(0);
    break;
    default :
    if(e.getKeyCode()<250) // only interested in first 250 key codes, are there more?
    keys[e.getKeyCode()]=true;     
    break;
    public void keyReleased(KeyEvent e){
    if(e.getKeyCode()<250) // only interested in first 250 key codes, are there more?
    keys[e.getKeyCode()]=false;
    // mouse listener events
    public void mouseEntered( MouseEvent evt )
    Component comp = evt.getComponent();
    if( comp.equals(this ) )
    //requestFocus();
    public void mouseExited( MouseEvent evt ){
    public void mousePressed( MouseEvent evt ){
    public void mouseReleased( MouseEvent evt ){
    public void mouseClicked( MouseEvent evt )
    Component comp = evt.getComponent();
    if( comp.equals(this ) )
    requestFocus();
    * Dice.java
    * Created on 08 February 2007, 22:26
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package longgong;
    import java.net.URL;
    import gl4java.GLContext;
    import gl4java.awt.GLAnimCanvas;
    import gl4java.utils.textures.*;
    * @author welcome
    public class Dice {
          GLAnimCanvas glCanvas ;
          URL codeBase;
          int[]texture1 = new int[1]; //Storage for one texture ( NEW )    
          int[]texture2 = new int[1]; //Storage for one texture ( NEW )    
          int[]texture3 = new int[1]; //Storage for one texture ( NEW )    
          int[]texture4 = new int[1]; //Storage for one texture ( NEW )    
          int[]texture5 = new int[1]; //Storage for one texture ( NEW )    
          int[]texture6 = new int[1]; //Storage for one texture ( NEW )    
          float rx;
          float ry;
          float rz;
          float tx;
          float ty;
          float tz;
          float speed;
          boolean txMoveLeft;
          boolean tyMoveUp;
          boolean tzMoveFront;
        /** Creates a new instance of Dice */
        public Dice(GLAnimCanvas g) {
            glCanvas = g;       
            if(!LoadGLTexture("c:\\java\\images\\one.png",texture1)){
                System.out.println("Failed to load Textures,Bailing!");
                System.exit(0);
            if(!LoadGLTexture("c:\\java\\images\\two.png",texture2)){
                System.out.println("Failed to load Textures,Bailing!");
                System.exit(0);
            if(!LoadGLTexture("c:\\java\\images\\three.png",texture3)){
                System.out.println("Failed to load Textures,Bailing!");
                System.exit(0);
            if(!LoadGLTexture("c:\\java\\images\\four.png",texture4)){
                System.out.println("Failed to load Textures,Bailing!");
                System.exit(0);
            if(!LoadGLTexture("c:\\java\\images\\five.png",texture5)){
                System.out.println("Failed to load Textures,Bailing!");
                System.exit(0);
            if(!LoadGLTexture("c:\\java\\images\\six.png",texture6)){
                System.out.println("Failed to load Textures,Bailing!");
                System.exit(0);
            txMoveLeft = true;
            tyMoveUp = true;
         public boolean inCircleBoundaries(float x, float y, float radius)
            float r;       
            r = (float)Math.sqrt((x*x) + (y*y));
            if (r <= radius)
                return  true;
            else
                return false;
        public void setCoordinates(float corRx,float corRy,float corRz,float corTx,float corTy,float corTz){
            rx = corRx;
            ry = corRy;
            rz = corRz;
            tx = corTx;
            ty = corTy;
            tz = corTz;
        public void getRandomDice(){
            int num = (int)(Math.random() * 6);
            if (num==1){
                rx=0.0f;
                ry=0.0f;
                rz=0.0f;
            else if (num==2){
                rx=90.0f;
                ry=0.0f;
                rz=0.0f;
            else if (num==3){
                rx=0.0f;
                ry=-90.0f;
                rz=0.0f;
            else if (num==4){
                rx=0.0f;
                ry=90.0f;
                rz=0.0f;
            else if (num==5){
                rx=-90.0f;
                ry=0.0f;
                rz=0.0f;
            else{
                rx=180.0f;
                ry=0.0f;
                rz=0.0f;
        public float getTx(){
            return tx+0.5f;
        public float getTy(){
            return ty+0.5f;
        public float getTz(){
            return tz+0.5f;
        public void setTz(float z){
            tz=z;
        public boolean getMoveLeft(){
            return txMoveLeft;
        public boolean getMoveUp(){
            return tyMoveUp;
        public void setMoveLeft(boolean m){
            txMoveLeft = m;
        public void setMoveUp(boolean m){
            tyMoveUp = m;
        public void startDiceMovement(){    
            if (txMoveLeft==true) {
                tx+=speed;           
            else {
                tx-=speed;
            if (tyMoveUp==true) {
                ty+=speed;
            else {
                ty-=speed;
            ry+=(speed*4);
            rx+=(speed*4);
            //rz+=(speed*2);
            //tx+=speed;
            //ty+=speed;
            //tz+=speed;             
         if (inCircleBoundaries(tx,ty,3.5f)==false) {  
            if (tx>=3.0f) txMoveLeft = false;
            if (tx<=-3.0f) txMoveLeft = true;
            if (ty>=3.0f) tyMoveUp = false;
            if (ty<=-3.0f) tyMoveUp = true;
        public void setSpeed(float s){
            speed = s;
         public void drawDice(){        
             glCanvas.gl.glLoadIdentity();                                             // Reset The View
             glCanvas.gl.glTranslatef(tx,ty,tz);
             glCanvas.gl.glRotatef(rx,1.0f,0.0f,0.0f);
             glCanvas.gl.glRotatef(ry,0.0f,1.0f,0.0f);
             glCanvas.gl.glRotatef(rz,0.0f,0.0f,1.0f);
             glCanvas.gl.glBindTexture(glCanvas.gl.GL_TEXTURE_2D, texture1[0]);        
             glCanvas.gl.glBegin(glCanvas.gl.GL_QUADS);        
                // Front Face
             glCanvas.gl.glTexCoord2f(0.0f, 0.0f); glCanvas.gl.glVertex3f(-1.0f, -1.0f,  1.0f);
             glCanvas.gl.glTexCoord2f(1.0f, 0.0f); glCanvas.gl.glVertex3f( 1.0f, -1.0f,  1.0f);
             glCanvas.gl.glTexCoord2f(1.0f, 1.0f); glCanvas.gl.glVertex3f( 1.0f,  1.0f,  1.0f);
             glCanvas.gl.glTexCoord2f(0.0f, 1.0f); glCanvas.gl.glVertex3f(-1.0f,  1.0f,  1.0f);
             glCanvas.gl.glEnd();
             glCanvas.gl.glBindTexture(glCanvas.gl.GL_TEXTURE_2D, texture6[0]);
             glCanvas.gl.glBegin(glCanvas.gl.GL_QUADS);        
               // Back Face          
             glCanvas.gl.glTexCoord2f(1.0f, 0.0f); glCanvas.gl.glVertex3f(-1.0f, -1.0f, -1.0f);
             glCanvas.gl.glTexCoord2f(1.0f, 1.0f); glCanvas.gl.glVertex3f(-1.0f,  1.0f, -1.0f);
             glCanvas.gl.glTexCoord2f(0.0f, 1.0f); glCanvas.gl.glVertex3f( 1.0f,  1.0f, -1.0f);
             glCanvas.gl.glTexCoord2f(0.0f, 0.0f); glCanvas.gl.glVertex3f( 1.0f, -1.0f, -1.0f);
             glCanvas.gl.glEnd();
             glCanvas.gl.glBindTexture(glCanvas.gl.GL_TEXTURE_2D, texture2[0]);
             glCanvas.gl.glBegin(glCanvas.gl.GL_QUADS);        
                // Top Face
             glCanvas.gl.glTexCoord2f(0.0f, 1.0f); glCanvas.gl.glVertex3f(-1.0f,  1.0f, -1.0f);
             glCanvas.gl.glTexCoord2f(0.0f, 0.0f); glCanvas.gl.glVertex3f(-1.0f,  1.0f,  1.0f);
             glCanvas.gl.glTexCoord2f(1.0f, 0.0f); glCanvas.gl.glVertex3f( 1.0f,  1.0f,  1.0f);
             glCanvas.gl.glTexCoord2f(1.0f, 1.0f); glCanvas.gl.glVertex3f( 1.0f,  1.0f, -1.0f);
             glCanvas.gl.glEnd();
             glCanvas.gl.glBindTexture(glCanvas.gl.GL_TEXTURE_2D, texture5[0]);
             glCanvas.gl.glBegin(glCanvas.gl.GL_QUADS);        
                // Bottom Face
             glCanvas.gl.glTexCoord2f(1.0f, 1.0f); glCanvas.gl.glVertex3f(-1.0f, -1.0f, -1.0f);
             glCanvas.gl.glTexCoord2f(0.0f, 1.0f); glCanvas.gl.glVertex3f( 1.0f, -1.0f, -1.0f);
             glCanvas.gl.glTexCoord2f(0.0f, 0.0f); glCanvas.gl.glVertex3f( 1.0f, -1.0f,  1.0f);
             glCanvas.gl.glTexCoord2f(1.0f, 0.0f); glCanvas.gl.glVertex3f(-1.0f, -1.0f,  1.0f);
             glCanvas.gl.glEnd();
             glCanvas.gl.glBindTexture(glCanvas.gl.GL_TEXTURE_2D, texture3[0]);
             glCanvas.gl.glBegin(glCanvas.gl.GL_QUADS);        
                // Right face
             glCanvas.gl.glTexCoord2f(1.0f, 0.0f); glCanvas.gl.glVertex3f( 1.0f, -1.0f, -1.0f);
             glCanvas.gl.glTexCoord2f(1.0f, 1.0f); glCanvas.gl.glVertex3f( 1.0f,  1.0f, -1.0f);
             glCanvas.gl.glTexCoord2f(0.0f, 1.0f); glCanvas.gl.glVertex3f( 1.0f,  1.0f,  1.0f);
             glCanvas.gl.glTexCoord2f(0.0f, 0.0f); glCanvas.gl.glVertex3f( 1.0f, -1.0f,  1.0f);
             glCanvas.gl.glEnd();
             glCanvas.gl.glBindTexture(glCanvas.gl.GL_TEXTURE_2D, texture4[0]);
             glCanvas.gl.glBegin(glCanvas.gl.GL_QUADS);        
                // Left Face
             glCanvas.gl.glTexCoord2f(0.0f, 0.0f); glCanvas.gl.glVertex3f(-1.0f, -1.0f, -1.0f);
             glCanvas.gl.glTexCoord2f(1.0f, 0.0f); glCanvas.gl.glVertex3f(-1.0f, -1.0f,  1.0f);
             glCanvas.gl.glTexCoord2f(1.0f, 1.0f); glCanvas.gl.glVertex3f(-1.0f,  1.0f,  1.0f);
             glCanvas.gl.glTexCoord2f(0.0f, 1.0f); glCanvas.gl.glVertex3f(-1.0f,  1.0f, -1.0f);
             glCanvas.gl.glEnd();
          public boolean LoadGLTexture(String fileName, int textureNumber[])
             PngTextureLoader texLoader = new PngTextureLoader(glCanvas.gl, glCanvas.glu);
             if(codeBase!=null)  
                texLoader.readTexture(codeBase, fileName);
             else
                texLoader.readTexture(fileName);
             if(texLoader.isOk())
                //Create Texture
                glCanvas.gl.glGenTextures(1, textureNumber);
                glCanvas.gl.glBindTexture(glCanvas.gl.GL_TEXTURE_2D, textureNumber[0]);
                glCanvas.gl.glTexParameteri(glCanvas.gl.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

    ill attach 4 files that needs to be
    enhanced or debug for possible errors. i hate to break it to you, but even if you post this for the seventh time, finding and fixing errors in your code remains your task.

  • Iphoto update is messed how, i do i fix it. Photos that i try to sync aren't showing up in my "Last Import" or "Last Month" What's wrong with it? I need help a.s.a.p

    please i need help on this. I really need to fix this

    Remember: we cannot see your machine. There are 9 different versions of iPhoto and they run on 8 different versions of the Operating System. The tricks and tips for dealing with issues vary depending on the version of iPhoto and the version of the OS.  So to get help you need to give as much information as you can. Basic things like :
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. As full a description of the problem as you can. For instance: 'iPhoto won't export' is best explained by describing how you are trying to export, and so on.
    - History: Is this going on long? Has anything been installed or deleted?
    - Are there error messages?
    - What steps have you tried already to solve the issue.
    - Anything unusual about your set up? Or how you use iPhoto?
    Anything else you can think of that might help someone understand the problem you have.
    Posts that consist of "iPhoto doesn't work. Help" or "iPhoto won't print" or "Suddenly I have no photos!!!!!!!!!!" mean that any helper is simply guessing. More information means you get better assistance.

  • Problem with a Form field, need help

    I work for a small police agency and I am our IT guy.  Most of my IT tasks have many been hardware and system software and networking.  I have been trying to learn and teach myself programming.  I also create forms for agency use.  I have been working on a form and want to add increased functionality to allow our officers to issue a citation with the least amount of time spend on the form.  One main issue is that we have to have a unique citation number.  We have come up with a format that will specify as such:  YYYY(Officer's 4 Digit ID Number)-(Auto Incrementing number).  So, for instance, if this is my 55th citation issued and my ID number is 0100 the citation number would appear like this:  20120100-0055.  The ID number will be entered by the officer earlier in the form.  The problem I can't seem to vision around is how I will keep the number to increase by one and have it maintain that way.  I want it to be form specific, because each officer has their own vehicle and MDT that the PDF will reside on at this time. 
    So far, what I have toyed with in the past 30 minutes is this:
    var Ticker = 0001;
    var Year = getFullYear();
    var x = getField('OfcIDNo').value;
    Eventually the form will be autocreated by a program that will be run from a centralized server.  I have even thought about running the from from a server and taking all the data and INSERTing it into a SQL Server 2008 Express DB table on a server, but I'd still have to have the citation number created at the form as the officer fills in the data.  The last four of the number doesn't have to reset when the year changes, but it would be a plus.  Any information anyone can help with I would appreciate it. 
    Thanks in advance

    Seems like it was too easy, is it safe to assume that javascript and javascript functioning in Adobe PDF is a bit different learning curve?  That does help, the only thing that I'm missing is the Auto Incrementing 4 digit number.  I was toying with assigning a variable in the globals that would auto increment but having problems with how I would execute it.  Each copy of the form would be installed on each officers MDT so the number would be specific to that officer. The format will be YYYY"OFCIDNo"-####.  I would like to assign the number to the global variable on the execution of the Print Dialog.  This way the officer an clear the form if he/she needs to start over and then it stays whether or not they close the file and reopen it. 
    That syntax has been very helpful to get started. 
    Thank you,
    David

  • Problem with My photo stream need help.

    Hi.I just use my photo stream with icloud control panel.First it's work,my pictures upload automatically to my pc but now when I take new photos,they are not sent.
    It was happened after I had deleted all my photo stream but my setting still same. I don't know the reason and need help.Thank regards.

    In my iPhone,at first my photo stream still uploaded but now when I took a photos,it didn't upload to my photo stream.

Maybe you are looking for