Applying a texture to a triangle - and have the texture shrink/scale

I'm hoping to find a way to apply a texture to an arbitrary triangle while having the texture scale to fit inside the triangle.
Imagine taking an Image (the texture) and defining three points (a,b, and c). Then imagine creating Polygon where you define points d, e, and f. I'd like to paint the texture such that points a/d b/e and c/f align. To do this the texture would need to be scaled appropriately
I've done this sort of task using OpenGL and I think doing it with the 3D libraries in Java would be possible. But for this application I need to do it in 2D
any tips?
thanks!
-CG

Hmm... I don't think there's anything in the standard API that can skew/stretch in a non-linear fashion, you may have to roll your own. Unless someone else already has, and you can get hold of the package.
db

Similar Messages

  • Hi All, I have just applied an update to Photoshop CC and now the product won't open. I get an error

    Hi All, I have just applied an update to Photoshop CC and now the product won't open. I get an error message 'Photoshop.exe - Entry Point Not Found'... any suggestions?

    It won't open at all...  that's the problem. When I try to execute the program, I get the 'Photoshop.exe - Entry Point Not Found' error message.

  • I am a Creative Cloud Member and have the Membership for one Year but in one month it syays expired

    I am a Creative Cloud Member and have the Membership for one Year. It has been only one Month and the Plan says expired. I am not sure what has happened but I am unable to find any Customer Care Number of Adobe.  Can anyone please help. Its Urgent. I use MAC.

    Moving this discussion to the Adobe Creative Cloud forum.
    Abhishek_zico you should be able to contact our support team at Contact Customer Care.  You will want to work directly with our support team regarding the status of your subscription.

  • How do I install Yosemite on a 2nd HDD I have added and have the Mac Pro boot from the new HDD?

    My MacPro's HD seems to be failing. None of the tests I run indicate that, but I get constant spinning balls and everything takes a long time. I bought a 2nd HDD and installed it in the 2nd bayou my Early 2009 Mac Pro. I formatted it and want to install Yosemite and have the Mac boot off the new drive. It is currently running OS X 10.9.5. When I go to update to Yosemite it begins to download. Will it give me the option of which drive to install on? Or will it just upgrade the original Mac's HD?

    A Samsung 850 EVO 128GB SSD $75 now and makes a huge improvement. But get the 250GB which is $99. 500GB $199
    Wish you asked us first   Awesome prices and performance.
    Output from Etrecheck is an easy "quick check" of what your system is carrying around and what baggage it has.
    Move data to a 'data and media library" drive.
    Use CCC to skip the user data folders except ~/Library and clone to SSD
    And might want to save the installer .ESD package for use as clean installer and to be able to boot from.

  • I am using a work laptop and have the same problem. When I try to change the "configure proxy", they only available option is "use this proxy server for all protocols". Could it be that my system administrator blocked me from changing it since they don'

    I am using a work laptop and have the same problem. When I try to change the "configure proxy", they only available option is "use this proxy server for all protocols". Could it be that my system administrator blocked me from changing it since they don't want us to use Firefox.
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.4; FNGP_SYS)

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the ''Safe mode'' start window.
    You have to close and restart Firefox after each change via "File > Exit" (on Mac: "Firefox > Quit")

  • I can't send emails from Mail. I have three different accounts set up and have the same problem with all. The mail just sits in my outbox. All worked fine until Yosemite upgrade. Recent update has not fixed problem.

    I can't send emails from Mail. I have three different accounts set up and have the same problem with all. The mail just sits in my outbox. All worked fine until Yosemite upgrade. Recent update has not fixed problem.

    I have been experiencing the same problem. My mail app won't even open on my Late 2011 Macbook Pro. It will show as open, but the app will never actually show up.

  • Technical question:  Is it possible to work on the same Lightroom catalog across two computers and have the catalog sync? If so, how??

    Technical question:
    Is it possible to work on the same Lightroom catalog across two computers and have the catalog sync? If so, how??
    Here's a little more information on what I am trying to do.
    I have a desktop computer with 4tb worth of pictures that has Lightroom and Photoshop on it. I also have a laptop with Photoshop and Lightroom. I would like to be able to edit those same pictures with their current edits that are currently on my desktop on my laptop. If this can be done, I'm sure I need to be on the same wifi network for my laptop to be able to access my desktop's photo library. I am technically savvy enough to map a network drive, but how do I get my two Lightroom catalogs to sync when I make a change on one of my computers? Would i be working only on one catalog? Or two separate catalogs that would need to be manually synced to the other computer? Would it be beneficial to put my lightroom catalog on something like dropbox?
    I'd appreciate any information or tutorials if someone knows how to do this.

    I do this by having my LR catalog and photos on an external drive that I swap between the two computers.  I am on Windows and have the same drive letter assigned to the drive on both computers.
    Because the photos are on a portable drive I back up the portable drive to another hard-drive every night or after important work, because portable drives are susceptible to damage or loss.

  • In iTunes, is there any way to play one song at at time and have the song stop at its end.  I want to play guitar with a track and have that track stop playing rather than going to the next song.

    I want to play a single song in iTunes on my ipad and have the track stop when the song finishes, rather than itunes playing the next track.  I play guitar with the track and need iTunes to stop at the end of the song.
    I have worked around this issue by creating a separate play list for each song, then inserting the song into the play list.  I would like to find a more straight forward solution that would eliminate this extra step.  On my PC, I use QuickTime to bring up an individual song and then can play one track at a time.
    Thanks!

    On the IPod if the shuffle icon is colored blue it is ON, if it is colored white it is OFF. This control is global, if it is ON any album or list will be shuffled.

  • I have aperture 3.2.4 on my laptop and have the serial number, but just bought a new MAC and I can't get the Ver 3.0 link to work. Anyone know how to move it from my laptop to our new mac?

    I have aperture 3.2.4 on my laptop and have the serial number, but just bought a new MAC and I can't get the Ver 3.0 link to work. Anyone know how to move it from my laptop to our new mac?

    I am talking about the Ver 3 download link that came with the purchase email.
    That link is no longer available. Use "Migration Assistant" to copy your Applications from your old mac to the new Mac, then immediately run software update. Aperture Version 3.2 will not run on your new mac with Mavericks, you will have to Upgrade to version 3.4.5 at least - you can download this update from the Support page: Aperture 3.4.5
    Then launch Aperture and enter your registration key and try now too update from version 3.4.5 to 3.5 from the AppStore. The AppStore will change your Aperture registration to an AppStore version, so you will able to reinstall by downloading from the AppSTore in future.
    If you want transfer only Aperture and no other applications, do it manually: You will have to copy not only the application but folders from the libraries as well:
    /Applications/Aperture.app
    /Library/Application Support/Aperture/
    ~/Library/Application Support/Aperture/
    Leonie

  • How can I remove my company's iCloud Contacts account from a former employee's iPhone and have the current information removed as well?

    How can I remove my company’s iCloud Contacts account from a former employee's iPhone and have the current information removed from their iPhone at the same time as well? Will just changing the iCloud password be enough? Our company shares an iCloud account for convenience but when someone leaves we don't want the information to stay on their iPhone.

    Changing the password would only block them from accessing the iCloud information.  They would still have access to the local copy on thier phone.  To delete the local information, you would need to go to Settings>iCloud on the phone, tap Delete Account, then choose Delete from My iPhone.  (This only deletes the iCloud account and data from the phone, not from iCloud.)  This, obviously, must be done during the exit process as it requires access to the phone.

  • How do I transfer my boot disc data to a new disc and have the new disc become the boot disc?

    My original 500 Gb boot drive is full (~800 Mb available).  I purchased a 1 Tb drive and installed it (no problems).  Now I want to transfer everything on my original boot disc to the new drive and have the new drive become the boot disc.  I would then wipe the original disc and use it for data backup.
    Can I simply copy all the contents of the original disc to the new disc (this seems too easy...)?  I am in that process, now, but am feeling insecure about it.  I do have Time Capsule.  However, when I went into it to restore to the new disc it wouldn't perform the task - maybe I am overlooking something...
    Suggestions are welcome!
    Thanks
    Jim

    No, the system won't 'copy' but you can clone it.
    http://macperformanceguide.com/Mac-HowToClone-backup.html
    http://macperformanceguide.com/Mac-HowToClone.html
    http://www.bombich.com/software/ccc.html
    You could also copy or clone  /Users to the new drive and leave the system where it is and free up most of the file space being used. OS X only needs 100GB. That way all the data is on the new drive.
    And I think you want to add CCC along with TimeMachine to your backup strategy.
    https://support.apple.com/kb/HT1427
    http://www.apple.com/support/timemachine/

  • My family shares one apple id. Is there any way to make an apple id for each member of my family and have it all connected to the same credit card and have the same previous downloads open to download by signing in to each members personal apple id?

    My family shares one apple id. Is there any way to make an apple id for each member of my family and have it all connected to the same credit card and have the same previous downloads open to download by signing in to each members personal apple id?

    Hi cindy,
    If you all have individual Apple IDs, then you would be able to dowload music from a shared iTunes library on a computer, but you would not be able to sign on each individual ID on an iOS device in order to download music purchased under the original Apple ID without a 90-day waiting period between sign-ons.
    Here's what I mean:
    If you were to sign on a new Apple ID on, say, an iPhone, and then were to purchase and download some music from iTunes, then you would have to wait 90 days before you could sign on the old Apple ID to that iPhone in order to download previously purchased material (and vice versa).
    However, if all of the music purchased by that origjnal Apple ID is in an iTunes library on a shared computer, then you can hook up the device and selectively sync any music in that library to the device. You can also sign on any of the Apple IDs to that shared iTunes library and purchase music to be added to the library.
    You would need to authorize the computer for each of the new Apple IDs.
    Each of the Apple IDs would also be able to download that music purchased either by syncing to the iTunes library on the computer or by downloading it OTA on the device.
    So, each Apple ID can download music, movies, etc. purchased with that Apple ID OTA to the device. Also each Apple ID can sync any music, movies, etc. that are in the iTunes library on the computer regardless of who purchased them.
    The only other thing you would need to remember is that if an App needed to be updated, then the original Apple ID that was used to purchase that App would come up, and the password that goes with that Apple ID would be required to do the update.
    Hope that helps,
    GB

  • Is there a way to use Edge as Navigation and Have the rest of the page in HTML

    Hi,
    I want to create a three-column CSS layout.  I want the left column (navigation) to be in Edge and have the remainder (plus header & footer) in static HTML.  I'm new to Edge and am hoping this is possible.  I know it will take some hard work, but before I get started, I'm wondering if this is possible, or should I just code the entire page in HTML? 
    Thanks!
    Jon

    hi jon,
    yes - this is totally possible.  here's a site i'm getting ready to take live next week.
    http://174.120.146.114/~spacemac/
    left nav bar is all edge - rest of the site standard html except for the animated edge banner on the homepage
    create your div placeholders and just drop the edge code in.
    hope this helps!
    best,
    keith

  • If I bought my iPhone in America from an Apple Store and have the receipt can I return it to a Japanese Apple store?

    If I bought my iPhone in America from an Apple Store and have the receipt can I return it to a Japanese Apple store? Yes it is within 30 days, I bought it July 21st, meaning it is within 15 days, as well.

    I would doubt it, but there's nobody here who can speak on behalf of Apple.  Phone the Japanese store: they will know far better than us fellow users.

  • I need to be able to right click on a saved document and have the option to convert to Adobe PDF. I have the Abobe Acrobat Xl Pro and used to have this option until I had to create a new subscription. What do I need to do in order to have this option?

    I need to be able to right click on a saved document and have the option to convert to Adobe PDF. I have the Abobe Acrobat Xl Pro and used to have this option until I had to create a new subscription. What do I need to do in order to have this option? I use windows 7

    If you are New to Mac... you may also find these links of Value
    Mac 101
    http://www.apple.com/support/mac101/
    http://www.apple.com/support/switch101/     Switching from PC
    MBP Support
    http://www.apple.com/support/macbookpro
    Cheers,

Maybe you are looking for