Create PVR texture from png file

Hi,
I have one image file in png format. I want to create texture out of that image. To convert into texture format .pvr I am using following command:
$ ./texturetool -e PVRTC -o ./image.pvr ./image.png
image.pvr file is getting created but with zero bytes file size. I loaded and tested it nothing comes blank screen.
Please tell me syntax of conversion from png or jpg to .pvr.
Regards,
Ganesh Pisal
Vavni Inc

I am using this code to load created texture:
NSString *path = [[NSBundle mainBundle] pathForResource:@"image" ofType:@"pvr"];
NSData *data = [NSData dataWithContentsOfFile:path];
textures[kTextureone] = [[Texture2D alloc] initWithData:[data bytes] pixelFormat:kTexture2DPixelFormatRGBAPVRTC4 pixelsWide:512 pixelsHigh:512 contentSize:CGSizeMake(512,512)];
Not getting texture.

Similar Messages

  • Create still images from video files?

    from http://gadgetwise.blogs.nytimes.com/2009/04/16/5-new-photoshop-tips-for-photographers/ , "You can now preview video in Bridge and create still images from video files."
    I just installed the 5.4 Camera Raw Update.
    I can preview the AVI files from my Nikon D5000, but have not figured out how I might create a still image ( other than stopping the movie, and dragging to copy ) Have tried searching adobe, this forum, have not found more info ion this.

    Stop the video at the desired point, press the Shift, Command, and 4 keys, drag the cursor so that the whole picture is highlighted, let go of the button, and open the PNG on the desktop.
    (35300)

  • Create multiple PDFs from multiple files

    Hi everyone
    I'm trying to use the "Create multiple PDFs from multiple files" function in Acrobat 9 Pro (version 9.4.6) to create about 100 PDFs from InDesign CS5 files. Theoretically this would do the trick for my purpose. BUT: When running the function, it does not use the CS5 InDesign (version 7.0.3), but tries to open the files with InDesign CS3. Of course this does not work. We, as a professional working agency, have installed CS3, CS4 and CS5. Even with making the InDesign CS3 .app invisible an pushing it into the garbage bin during the process did not work. Acrobat still wants to access InDesign CS3. It is not possible to downgrade the files to CS3 files, for there are special (i.e. interactive) functions which only work in CS5. It would be more work than creating the PDFs manually, anyways.
    Does anyone have similar issues? Any ideas how to solve the problem?
    Thanks in advance.
    Thinka

    OK, cool, I found one, which seems to work just fine.
    http://www.kahrel.plus.com/indesign/batch_convert_cs3.html
    found here:
    http://forums.adobe.com/message/3712434#3712434
    Thanks for the hint!

  • How to create Inbound Idoc from XML file-Need help urgently

    Hi,
    can any one tell how to create inbound Idoc from XML file.
    we have xml file in application server Ex. /usr/INT/SMS/PAYTEXT.xml'  we want to generate inbound idoc from this file.we are successfully able to generate outbound XML file from outbound Idoc by using the XML port. But not able to generate idoc from XML file by using we19 or we16.
    Please let me know the process to trigger inbound Idoc with out using  XI and any other components.
    Thanks in advance
    Dora Reddy

    Hi .. Did either of you get a result on this?
    My question is the same really .. I am testing with WE19 and it seems SAP cannot accept an XML inbound file as standard.
    I see lots of mention of using a Function Module.
    Am I correct in saying therefore that ABAP development is required to create a program to run the FM and process the idoc?
    Or is there something tht can be done with Standard SAP?
    Thanks
    Lee

  • Creating Target Group from External File

    Hello Experts
    We need to create target group from external file. (That is to say we will have let's say txt file containing BP that belongs to specific target group and we need to assign these BPs to to specific target group in SAP CRM)
    I have searched for it on sdn and found something benefical. I have found BAPI_TARGETGROUP_CREATE, I have checked it but I don't understand how should we use it becuase as far as we understand it just creates target group, we cannot see anything related with Business Partner. How can we relate BPs with the target group we create by this BAPI.
    What should we do, is anyone have previous experience about it? or is there a way to do it without using BAPI.
    thanks it advance
    M.
    Edited by: Mehmet Ergul on Jan 22, 2009 11:19 AM

    Hi,
    You can do this from within the standard Web UI. It's straight out of the box.
    Create a profile set and in there create a target group in the target group assignment block just by entering the description of the target group. Then enter edit mode of this target group and click the button "Import Members". Remeber to mark "Change selected target group" unless you want to create a new target group.
    /Anders

  • Getting error "Cannot create a BACPAC from a file that does not contain exported data." from SqlManagementClient.Dac.ImportAsync

    We're trying to import a dacpac to azure via the new SqlManagementClient DacOperations ImportAsync api I get an exception with the error: "Cannot create a BACPAC from a file that does not contain exported data."
    This same dacpac imports fine using an alternate but less friendly API from sql server's tooling. We'd like to use the new management SDK instead for various reasons.

    Hi Kyle A Wilt,
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
    Thank you for your understanding and support.
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • How to create JSF application from xsd files?

    Hi,
    We have many xsd files describing xml's which we are supposed to send to web services. Application which we are creating should allow user to fill xml documents with data and then we should send those xml files to some web service. We want to automatize as much as possible the process of application creation to avoid possible errors and to minimize our efforts (there are plenty of quite complex xsd files).
    Our first approach was: we used Oracle JSXB to generate java classes basing on xsd files (using JDeveloper 10.1.3.2.0.4066). Then we tried to generate DataControls, but this action fails with following error:
    Window title: Error in init bean
    Message: Could not complete initbean because it would result in an invalid document
    Details: oracle.bali.xml.model.XmlInvalidOnCommitException: SEVERE: Wartość atrybutu Name nie jest typu ID (Value of Name attribute is not of ID type)
    Wartość musi być następującego typu: (Value must be of following type)
    Nazwa typu: ID (Type name)
    Typ pierwotny: string (Primitive type)
    Z następującymi więzami: (With following constraints)
    zgodne z wzorcem: [\i-[:]][\c-[:]]* (Compliant with template)
    [ node = Name ]
    <JavaBean version="10.1.3.40.66" id="XSLStylesheet" BeanClass="oracle.xml.xslt.XSLStylesheet" Package="oracle.xml.xslt" isJavaBased="true">
    <Attribute Name="classMethodParams" IsUpdateable="0" Type="java.util.Hashtable" />
    We tried Sun implementation fo JAXB - it generated different java classes (with annotation mechanism). Creation of DataControls using those classes was successful. Then we created simple JSF page and tried to put those DataControls on it in order to let the user fill it with data. The thing is that those controls are read only as there is no row created in those DC. We can't create any row in those DC as there are only 'commit' and 'rollback' operations. When we try to call 'CreateInsert' operation on child elements of those DC we get error in JDeveloper log window:
    2007-05-29 10:08:46 oracle.adf.controller.faces.lifecycle.FacesPageLifecycle addMessage
    WARNING: JBO-29000: DataControl:createRowData
    2007-05-29 10:08:46 oracle.adf.controller.faces.lifecycle.FacesPageLifecycle addMessage
    WARNING: DataControl:createRowData
    new row is not created and controls are still read-only.
    The question is:
    1. is there another, more efficient way to create JSF application from xsd files?
    2. if this is the best way to do it, what do we do wrong?
    Leszek

    To anyone who might find it useful: our solution to mentioned problem.
    Few tips how to solve described problem:
    1. Do not use JAXB (we checked Oracle and Sun)
    2. Use castor http://www.castor.org/
    a) for each xsd generate java files in separated package
    b) use java 1.5 to let castor generate lists
    c) use mapping of xml namespaces to java packages to have only 1 implementation of each xsd
    3. Create facades - java files for you root-level java objects
    4. Right click those facades and choose 'Create DataControl' in jdev
    5. Now you may drag and drop you DataControls and use them in your JSF (or UIX) application
    I hope it will help someone :)
    Leszek

  • How to create ICon/Cursor from pdf files

         I was able to create ICon from jpg file without problem but I couldn't create ICon from pdf files.
    Here my code:
    var myDoc = app.newDoc();
    myDoc.importIcon("myIcon"); // it worked when I chose a jpeg image, but it didn't
    //when chose a pdf file.
    icon = myDoc.getIcon("myIcon");
    oIcon = util.iconStreamFromIcon(icon);  
    myDoc.closeDoc(true);
    app.addToolButton({
                   cName: "myButtoon",
                   oIcon: oIcon,
                   cExec: "app.alert('Someone pressed me!')",
                   cTooltext: "Push Me!",
                   cEnable: true,     
                   nPos: 4
       //app.removeToolButton("myButtoon");
    My goal is to create buttons which have icons from a pdf file (stamp) and when user click on these buttons, the cursors become the icon . And then, when user click on the document, the iCon will be showed in the document. The point is: is there anyway to create icons/cursors/stamps from one pdf file. Because the stamp is changeable, when user changes the color/shape of the pdf file, the icons/cursors/stamps will automatically change
    What kind of pdf format do I have to use?
    I used the sample "SignHere.pdf" in stamps folder of Acrobat but it didn't work.
    Thanks.

    The SDK has all the information - but certainly there are only samples for those common actions that users have been doing for years.  Most developers don't recreate stuff already present in the application - such as the Stamp plugin - so we don't have samples of such things.
    But all the pieces you need are present in the SDK - it's just necessary obvious.  You will need to learn about the details of how the plugin APIs work to create the toolbars and toolbuttons, and then how to handle cursors.  You will then need to learn about PDF details in order to be able to take an existing PDF, potentially modify it (eg. Change the color(s)) and then place it onto another PDF.  
    The methods you listed are from JavaScript - there are alternative methods for plugins, such as the AVConversion APIs.

  • Dynamically create Value Objects from XML file

    Hi
    I want to create a value object from Xml file dynamically,like in the xml file i have the name of the variable and the datatype of the variable.is it possible do that,if so how.

    Read about apache's Digester tool. This is part of the Jakartha project. This tool helps in creating java objects from the XML files. I am not sure, if that is what u r looking for.

  • How to create Business partner from uploaded file by Function module?

    Hi Experts,
    I have uploaded Business partner data from a file to server now from individual records I have to create Business partner and have to update the records in the tables. Means from on record i have to create one business partner in sap system.
    I have uploaded the records in the system and stored in a internal table.Now my task is to create business partner and have to update tables.
    I need a function module which create BP by each records uploaded and update the respective tables of BP and exports business partner ID.
    Please respond soon Its a requirement form the client.
    Prem.

    HI,
       You can use the bapi 'BAPI_BUPA_CREATE_FROM_DATA' to create a business partner .
    call function 'BAPI_BUPA_CREATE_FROM_DATA'
              exporting
                businesspartnerextern              = g_bpartner-partn
                partnercategory                    = partnercategory
                partnergroup                       = partnegroup
                centraldata                        = centraldata
                centraldataperson                  = centraldataperson
                centraldataorganization            = centraldataorganization
    *       CENTRALDATAGROUP                   =
                addressdata                        = addressdata
    *       DUPLICATE_MESSAGE_TYPE             =
    *         IMPORTING
    *            BUSINESSPARTNER                    = G_BPARTNER-BUSINESSPARTNER
             tables
                telefondata                        = telefondata
                faxdata                            = faxdata
                e_maildata                         = e_maildata
                return                             = return
    *       ADDRESSDUPLICATES                  =
                addressnotes                       = addressnotes.

  • How to create Blu-Ray from previous files?

    Back in November of 2010 thefifthlion posted a similar question, but the thread was archived so I could not post a follow up in that same thread.
    My question is similar:  how to create a Blu-Ray from previous Compressor files.  His answer was to create a disc image by selecting "Hard Drive" from the Output Device pop up menu.  Then use Toast or Disc Utility to burn the copies.  Fine, but here's my revised question to that:
    Compressor just spent nearly 20 hours compressing a 2+ hour video with "Create Blu-Ray" selected for the When Job Completes.  Before it completed the Blu-Ray burner apparently fell asleep or went offline somehow because the computer wouldn't recognize the drive by the time Compressor was done.  So I had no choice but to selct "Cancel Burn" and stop the process, restart the computer, and get the Blu-Ray burner back online.
    You probably know where I'm going with this.  I now have two files on my desktop - the video and the audio file created of the project from Compressor.  BUT WHAT CAN I DO WITH THOSE FILES NOW?  Needless to say I don't want to go through the entire 20 hour process again - only to have the same thing happen with the burner drive.  As per the below paragraph (copied from thefifthlion's original post in November) is this the best way to burn Blu-Rays in Compressor?  Always create a disc image rather than burn right away... and then use a third party burner like Toast 10 or Disc Utility to burn the disc?  I can't believe Compressor doesn't have an option to open the project again and burn a Blu-Ray straight away.
    > Output Device pop-up menu: Use this pop-up menu to choose the device to format to. The pop-up menu displays a list of your system’s suitable output devices, including optical drives and the computer’s hard disk. Each device also includes the words Blu-ray or AVCHD to indicate which type of disc it creates. Choose Hard Drive to create a disk image (.img) file that you can burn to Blu-ray Disc media at a later time using the Disk Utility application (available in the Utilities folder). Other settings may change depending on the device you choose.
    Thanks very much for any feedback.
    Eric

    Follow up question:
    I went through the process again (approx 20 hours!! ) and this time made the video a disc image.  I don't have Toast (though I think it might be time to get it) but I keep reading that Disc Utility can burn a Blu Ray using that disc image.  So, I went through another multi hour process to burn that 20+ gig file onto a Blu Ray, but it appears that it didn't burn it as a playable disc, rather, more like it put the file on the disc as data files.  All the info is there, 20 some gigs, I can see all the files, but the disc doesn't play.
    Now I apologize if it's a silly question if it's known that you can't make a playable blu ray with Disc Utility, but I don't know either way, that's just what I've read and this is the first time I've tried it. 
    Soooooooo, if I always make a disc image, should I just get Toast and use that to make the blu ray?
    By the way, a brief update:  the whole reason this thread came up was because my Pioneer blur ray burner goes offline (sleep) after an hour or so and doesn't come back or wake up.  So with a long processing time in Compressor the drive goes offline and then can't burn the disc, so I lose that whole session.  Turns out that Pioneer (by their own admission) is not made to be fully compatible with Macs!!  In particular Mac Pros.  I took that drive out and replaced it with an LG.  Haven't tested it yet but I'm looking forward to it.
    Eric

  • XMP metadata lost from PNG files after saveing

    Hello,
    i am using Photosop CS3 SDK. through my plug-in I put some metadata in the file using XMP SDK 4.4.2.
    For PNG files, if the file is modified and saved, all the XMP metadata is lost from the file.
    The following steps are being done.
    1. Put some metadata in PNG file using SXMPMeta::SetProperty and SXMPMeta::AppendArrayItem
    2. modify the file (changed brightness, contrast, flattened the image).
    3. Save this file.
    After saving all the xmp metadata is lost from the PNG file. This works for all other formats.
    What can be wrong that I am doing?
    Is there any other way to put XMP metadata in file?
    Thanks,
    Hitesh

    That's probably because PNG doesn't save or read XMP metadata.
    There really aren't standards for metadata in PNG. (though a few products have tried adding it in ad-hoc ways, without documenting their efforts)

  • How do I create custom ringtones from mp3 files in itunes 11?

    I've upgraded to the iPhone 5 from Blackberry, and I have several custom mp3 ringtones I would like to assign... and can't.  How do I do this in iTunes 11?

    You would have sorted it out by now.
    Anyway,
    1. Go to EDIT =>REFFERENCE
    2. Under General, tick TONES, then you will be able to see TONES folder...
    To create ring tone from mp3.
    1. Make sure your mp3 file playback duration is about 30 sec or less.
    2. Add it to your library as you do with music.
    3. Under MUSIC folder, select SONGS
    4. Find the mp3 file you want for ringtone, right click it and find CREATE AAC VERSION
    5. OPEN window explorer, browse to MY DOCUMENTS/MY MUSICS (XP) or Library/my music (Win 7), there should be iTunes folder in there, find the mp3 file... and change the file extension from [.m4a] into [.m4r]
    6. Back to iTunes, add [filename.m4r]
    Now you should have rinetone under TONES folder in  your iTunes.
    Cheer

  • Create an UDO from XML file

    Hello,
    I would want to create an UDO from an XML file. But I don't see any documentation about it.
    Do you know if there is any sample or something?
    Thanks in advance

    Hi Martin,
    I don't know if this is possible as I looked at the properties of the UDO object (SAPbobsCOM.UserObjectsMD) and there are no XML methods. As with the other meta data objects, like UserTablesMD and UserFieldsMD you have SaveXML and GetAsXML, but not with UDO.
    Hope it helps,
    Adele

  • Error while creating a report from personal files.

    Hi All,
    We are trying to insert a report from excel file( Env BO XIr3 Desktop intelligence)
    Poping up with error "Too many data to display"
    Is there any data limit or data size limit or no of rows limit.
    Thanks in advance...

    Hi Rachna,
    Can you try one thing can you restrict the values to less then 16000 to check the behavior.
    What is the excel version is it 2007 Excel.
    Are you  trying to use an excel sheet which have more then 256 columns 
    Regards
    Kultar

Maybe you are looking for

  • 'Document store operation failed due to missing authorization'

    Hi all,   I am getting the error message 'Document store operation failed due to missing authorization' when trying to save the workbook as the existing Workbook after changing the structure for it. We are using the Authorization Hierarchies. What is

  • Increasing type with shortcuts not giving whole numbers

    Hi, Having an issue with Photoshop increasing and decreasing type shortcuts arriving at points of pixels (or points of points) when using the shortcuts. ie - 12px, 14.92px, 17.84px, etc rather than what which is common other software: 12px, 14px, 16p

  • Having issue with Airport Express and Itunes - Please Help

    Ok, I am having a very odd issue with my wireless music network all of a sudden, and it's driving me nuts. I have searched the forum and I don't get the sense that anyone else is having this issue. My house consists of multiple machines, but I have m

  • Restrict Operational purchase from creating central confirmation

    Dear All, In SRM 7.0 we have  role  /sapsrm/secretary and /sapsrm/op_purchaser.  both of them can create central confirmation. i want  my opertaional purchase user not to be able to create   confirmation for other PO  , he should be able to create co

  • Set a popup Dialog to just below the caret position in TextField

    I have a JTextArea in which I wish to show up a popup dialog box whenever the user presses Ctrl and I want the popup to be visible just below the caret position where the user presses Ctrl. I'm using modelToView() but I'm not able to achieve the targ