Texture problem with alpha channel

[code]
on createMySphere
sr= p3d.newModelResource("mySphere01", #sphere)
s = p3d.newModel("s", sr)
s.transform.position = vector (0,0,0)
s.shader = p3d.newShader("sShdr2", #standard)
txS= p3d.newTexture("txS", #fromcastmember, member("image"))
s.shader.textureList[1] = txS
sr.radius = 100
sr.resolution =60
end
[code]
im using png image format for textures, because i want to
make user to its alpha channel. The problem comes when the image
has the alpha, The sphere disappears no matter how the alpha is
painted.
how do i make use of the alpha channel, it doesn't even have
to be in the same image.

thanks i used #both on my sphere it shows up but i dont see
the image only black the other side.
i used it on my plane and the texture is gone.
on createPlane
planeR = p3d.newModelResource("plane01", #plane)
planeO = p3d.newModel("planeO", planeR)
planeO.transform.position = vector (0,0,0)
p3d.model("planeO").visibility = #both
planeO.shader = p3d.newShader("pShdr", #standard)
txPlaneO = p3d.newTexture("txPlaneO", #fromcastmember,
member("Asphalt10"))
planeO.shader.textureList[1] = txPlaneO
planeR.width = 5000.0
planeR.length = 5000.0
planeO.rotate (90, 90, 0)
end createPlane

Similar Messages

  • Question: Quick Look in Finder; problems with alpha channels

    Hi
    "Quick look" in Finder is great for quick presentations of a folders selected contents but it only works with images that contains no alpha channels or masks. Is there any way to work around this to display say PhotoShop documents with alpha channels? Or any plug-ins/applications that can help?
    thanks.

    This has been broken forever in OS X, and I don't know why, because it used to work just fine. I suspect the engineers did something to QuickTime that causes this problem, but it has been borked for so long I don't remember when the ability to correctly display files went wrong. I just remember that once upon a time all sorts of things from Apple worked correctly in displaying such files, but pretty much nothing does now. This includes the Finder, Preview, QuickLook, and various third-party image browsers that use Apple's own system level image handling abilities, such as VitaminSee or CocoaViewX. When I need to actually see what's there, I browse with Adobe's Bridge.
    Francine
    Francine
    Schwieder

  • Problem with Alpha Channel

    The top level track on my project contains an alpha channel. However, being the top level track the tracks below it are invisible.
    I have read the "Compositing, alpha channels, and adjusting clip opacity" page. It tells me that I "can choose how to interpret the alpha channel in a file in the Interpret Footage dialog box. Choose Invert Alpha Channel to swap areas of opacity with areas of transparency, or choose Ignore Alpha Channel to not use the alpha channel information at all."
    However, when I do this (ie. inverse the alpha channel in the asset) I get the following before and after results:
    Summary of goal: I want to adjust the transparency of the top track so that the lower tracks appear.
    Help.

    If you want to adjust the transparency of a clip, you modify its Opacity property.
    Changing the alpha channel properties in the Interpret Footage settings is for when the alpha channel of an asset is not being interpreted/used correctly by the application.

  • Problem with aLpha channel export to quicktime

    Hi! after hours of trying this here is my last hope:
    I masked an imported qt-movie with chroma key a person in FCE 4. That was fine. But when I export Quicktime (million+, without compressor, etc.) there is no alphachannel anymore. I need that for the web (FLV). I f I export FLV FCE freezes at 0%.
    I am shure out there is somebody who has an idea. Pleaes

    Do not render the contents of the sequence. If you render, the sequence is exported using the render files. With the sequence unrendered export using the Animation codec with colors set to millions+.

  • Sudden problem with importing tiff files with alpha channel (CS5)

    OK this is driving me nuts. For years I have been importing image files that have an alpha channel  into FCP as.tiff files. I use Photoshop files only when I want to use the layers as they are too cumbersome otherwise). I have recent upgraded Photoshop, etc. to CS5 and now FCP won't import them anymore. I get a message saying: "File error: 1 file(s) recognized, 0 access denied, 1 unknown"
    I am not doing anything different and tiff files created in just the same way in an earlier version of Photoshop import and work just fine. Is this a CS5 bug? Does anyone know of a work around. I want to keep using tiff files as they seem to work best for me with alpha channel work (and I don't see why I need to reinvent the wheel).
    Thanks
    A

    I've had a similar issue recently. Same TIFF files downloaded from the same server, different FCP project, new error. I either see"File error: 1 file(s) recognized, 0 access denied, 1 unknown" or I get the even stranger, "Unrecognized file type."
    I can open them in PS and save them again as TIF, same results. I know these are not CMYK files but even if resave the TIF as RGB, I get the same results, they are not recognized by FCP.
    But if I open them in PS and save them as PNG with alpha, they improt fine.
    I have no idea what's going on.
    bogiesan
    Message was edited by: David Bogie Chq-1

  • Can no longer import QT files with alpha channel

    I have been using these client supplied QT with alpha channel files just fine for weeks, then all of a sudden, after a crash the other day, I was unable to open sequences with these files and exoprt them, the exporter would just freeze.  the clips played in the timeline, but VERY sluggish.
    On the reccomendation of a few posts around here, I removed the clips from the project, and now I cannot import them back in, I get a "the importer reported a generic error" message.  I am able to open in QT pro and export to a new file that will import to PPro, but I lose the alpha channel.
    As always, I'm up against a deadline and any help would be greatly appreciated.
    I have installed QT 7.07, no help.
    I'm on a windows 7 machine running CS master collection 5.0, Quad core AMD with 8 gig RAM.
    These files worked fine just days ago!!!!
    BTW, I just switched over to Premiere a few months ago and to honest I can't understand how anyone would stick with this buggy software, as a professional I've never used anything this bad before.

    Welcome to the forum.
    Try these.  Attempt to re-import after each one:
    Clean the media cache database via Edit | Preferences | Media
    If step 2 doesn't work, then find all the .qtindex, .mpgindex, .cfa and .pek files associated with the media that's supposed to be in your project and delete them.  Then clean the media cache database again.
    Launch Pr and while it's launching, hold down the Alt + Shift keys until the Welcome screen appears.  Alt resets your preferences and Shift resets the plug-in cache.
    To address the other issues you say you've been having with Pr, you should start a different thread (or threads).  Coming from other editors, there may be a difference in the way Pr does things that produce unexpected results that may be seen as bugs.  More serious issues, such as crashes, can often be caused by 3rd-party hardware like AJA, Matrox or BlackMagic and the associated drivers.  Outdated or incorrect drivers for audio and video cards can also cause problems.  I recommend that you start troubleshooting those areas first.
    Other issues may have workarounds.  If you have serious, reproducible problems that have no workaround, then please file bug reports here:
    Adobe - Feature Request/Bug Report Form
    -Jeff

  • No Method of Batch Export for Clips with Alpha Channels?

    Good morning,
    As many a flustered editor has eventually discovered, in order for FCP to export sequences with alpha channels to a 32-bit format, the timeline has to be un-rendered at the time of export, or else the transparent parts will appear black in the outputted file. This sort-of makes sense if you know how FCP and render files work, but in a perfect world I think I'd have designed the export interface a bit differently. Now that I think about it, I'm actually working in an Animation (Millions of Colors +) sequence, so converting transparent areas to black makes no logical sense at all.
    Anyway, I have several sequences that I would like to export as 32-bit TGA QuickTime files, preserving their transparency. If I Export Using Compressor, the process results in pre-rendering of the sequence, turning the transparent areas black. The same problem occurs if I export QuickTime reference movies from FCP and open them directly with Compressor.
    Does anyone know of a way to avoid this silly phenomenon or am I stuck individually exporting each sequence from FCP, one...at.......a................time?
    Thanks,
    Zap

    Thanks, Andy, "Batch Export" eventually did the trick!
    I forgot about that tool because I've never actually had to use it before! After playing around with it for a while, I found that as long as the sequence settings for each sequence in the batch are set to a codec with an activated alpha channel, it works just fine.
    Thanks again,
    Zap

  • ImageIO PNG Writing Slow With Alpha Channel

    I'm writing a project that generates images with alpha channels, which I want to save in PNG format. Currently I'm using javax.ImageIO to do this, using statements such as:
    ImageIO.write(image, "png", file);
    I'm using JDK 1.5.0_06, on Windows XP.
    The problem is that writing PNG files is very slow. It can take 9 or 10 seconds to write a 640x512 pixel image, ending up at around 300kb! I have read endless documentation and forum threads today, some of which detail similar problems. This would be an example:
    [http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6215304|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6215304]
    This surely must be resolvable, but after much searching I've yet to find a solution. If it makes any difference, I ONLY want to write png image, and ONLY with an alpha channel (not ever without), in case there are optimisations that that makes possible.
    If anyone can tell me how to address this problem, I'd be very grateful.
    Many thanks, Robert Redwood.

    This isn't a solution, but rather a refinement of the issue.
    Some of the sources I was reading were implying that the long save time might be due to a CPU heavy conversion process that had to take place before the BufferedImage could be saved. I decided to investigate:
    I loaded back in one of the (slowly) saved PNG images using ImageIO.read(file). Sure enough, the BufferedImage returned differed from the BufferedImage I had created. The biggest difference was the color model, which was DirectColorModel on the image I was generating, and was ComponentColorModel on the image I was loading back in.
    So I decided to manually convert the image to be the same as how it seemed to end up anyway. I wrote the following code:
          * Takes a BufferedImage object, and if the color model is DirectColorModel,
          * converts it to be a ComponentColorModel suitable for fast PNG writing. If
          * the color model is any other color model than DirectColorModel, a
          * reference to the original image is simply returned.
          * @param source The source image.
          * @return The converted image.
         public static BufferedImage convertColorModelPNG(BufferedImage source)
              if (!(source.getColorModel() instanceof DirectColorModel))
                   return source;
              ICC_Profile newProfile = ICC_Profile.getInstance(ColorSpace.CS_sRGB);
              ICC_ColorSpace newSpace = new ICC_ColorSpace(newProfile);
              ComponentColorModel newModel = new ComponentColorModel(newSpace, true, false, ComponentColorModel.TRANSLUCENT, DataBuffer.TYPE_BYTE);
              PixelInterleavedSampleModel newSampleModel = new PixelInterleavedSampleModel(DataBuffer.TYPE_BYTE, source.getWidth(), source.getHeight(), 4, source.getWidth() * 4, new int[] { 0, 1, 2, 3 });
              DataBufferByte newDataBuffer = new DataBufferByte(source.getWidth() * source.getHeight() * 4);
              ByteInterleavedRaster newRaster = new ByteInterleavedRaster(newSampleModel, newDataBuffer, new Point(0, 0));
              BufferedImage dest = new BufferedImage(newModel, newRaster, false, new Hashtable());
              int[] srcData = ((DataBufferInt)source.getRaster().getDataBuffer()).getData();
              byte[] destData = newDataBuffer.getData();
              int j = 0;
              byte argb = 0;
              for (int i = 0; i < srcData.length; i++)
                   j = i * 4;
                   argb = (byte)(srcData[i] >> 24);
                   destData[j] = argb;
                   destData[j + 1] = 0;
                   destData[j + 2] = 0;
                   destData[j + 3] = 0;
              //Graphics2D g2 = dest.createGraphics();
              //g2.drawImage(source, 0, 0, null);
              //g2.dispose();
              return dest;
         }My apologies if that doesn't display correctly in the post.
    Basically, I create a BufferedImage the hard way, matching all the parameters of the image I get when I load in a PNG with alpha channel.
    The last bit, (for simplicity), just makes sure I copy over the alpha channel of old image to the new image, and assumes the color was black. This doesn't make any real speed difference.
    Now that runs lightning quick, but interestingly, see the bit I've commented out? The alternative to setting the ARGB values was to just draw the old image onto the new image. For a 640x512 image, this command (drawImage) took a whopping 36 SECONDS to complete! This may hint that the problem is to do with conversion.
    Anyhow, I got rather excited. The conversion went quickly. Here's the rub though, the image took 9 seconds to save using ImageIO.write, just the same as if I had never converted it. :(
    SOOOOOOOOOOOO... Why have I told you all this?
    Well, I guess I think it narrows dow the problem, but eliminates some solutions (to save people suggesting them).
    Bottom line, I still need to know why saving PNGs using ImageIO is so slow. Is there any other way to fix this, short of writing my own PNG writer, and indeed would THAT fix the issue?
    For the record, I have a piece of C code that does this in well under a second, so it can't JUST be a case of 'too much number-crunching'.
    I really would appreciate any help you can give on this. It's very frustrating.
    Thanks again. Robert Redwood.

  • Smooth conversion of SWF to AVI with Alpha Channel

    today i tried a program which claims the unique program in
    the world can convert
    SWF to AVI with alpha
    channel, i find that this is the best program which can
    synchronization audio and video, and there won't be watermark in
    the middle of your video, i can also use it to capture pictures
    when i play the swf file, it is a good function that i can put the
    picture in my phone

    Hi there Schumi-z!
    Well, it seems many poeple have the very same problem. Let me explain what I have got and what I look for.
    I am working on a simple video editor. This program is to take a video as input, read the video and "chop" it automatically. Taken certain frames to different new videos, from one to 10 or more, according to certain parameters of the frame analized.
    What I have got until today is a way of opening the video, reading it frame by frame, extracting a frame, analize it. But I'm yet to develop a way to write new videos taking a group of this previously separated frames.
    I would like to know, if you are trying to solve the same or similar problem which in any time it envolves writing a new video file, so we can work together and solve this problem as soon as possible.
    This work is also a part of my research to complete my thesis work. It would be an honor to have a quote mentioning someone from around the world.
    Well, I hope to hear from you soon.
    Have a nice day

  • SWF doesn't play with alpha channel

    I have a 500Kb FLV file that plays as a progressive download through a 12Kb SWF. This FLV was encoded using On2 VP6 codec to maintain alpha data. This is a logo animation for a website so it is essential that the video plays with alpha channel intact. Just to make sure my animation had an alpha channel, I brought it into After Effects to test with a colored background behind it and sure enough, the alpha channel was there, perfect!
    Now in Dreamweaver, when I tested, the FLV plays through the SWF, as it should. However, there is a white square around my video now and the alpha channel is lost.
    I even made sure to select Wmode "transparent" and double-checked my code and saw that I had the correct tag <param name="wmode" value="transparent"/>
    View my site at http://www.customchromefx.com
    I have played many embedded SWF's with alpha's before. I think the FLV still has the alpha, and the problem is in the SWF that plays the FLV that is giving me the white box? Is there a way around this, perhaps a transparent SWF player or something? Thank you for viewing...

    Okay, so I figured out a way to make my compressed FLV video play with alpha.
    I imported into Flash. Checked the box to "Embed FLV in SWF" and clicked next, and Finish. I made sure the stage area and FPS was set to the same settings as the FLV video.
    In publish settings I used Flash 9,then un-checked compress movie and Published. This new SWF maintained the same file size as the FLV, while also playing with the alpha channel.
    I then imported the SWF into Dreamweaver, and set Wmode to "transparent." 
    I now have a 45 second video (originally a 115Mb quicktime) squeezed down to a measly 500Kb SWF that also has an alpha channel. Sweet!

  • Layered Photoshop files with alpha channels

    I wondered if anyone had a work around for the problem of layered PSD files with alpha channels not previewing properly in Aperture 3.1.1. I know it's been an issue in previous versions of Aperture but I thought Apple would have sorted this by now, or am I asking too much?

    I tested a file last night as follows:
    Sent file via 'Edit with Photoshop CS5' (as PSD 8-bit, sRGB color space) > changed background to normal layer > created circular selection around subject and inverted to remove most of image leaving transparent area (about 70% of image) > saved file > closed Photoshop > file updated in Aperture with black filling in the transparent area.
    Resent the PSD back to Photoshop (which opened correctly with transparent area) > created two new layers and sent one to background > filled new background layer with White and left top new layer transparent > saved again and closed Photoshop > file updated in Aperture with white showing in transparent areas (no black).
    AFAIK, this is how it is designed to work.
    My only other suggestion would be for you to create a new empty library (press Option while launching Aperture > Create New..) and then import one RAW or JPEG file and test.
    Note - you can reset Photoshop by holding down 'Command + Option + Shift' immediately after launching Photoshop and clicking 'Yes', then set the 'Maximize Compatibility...' to 'Always' again. Doing this prior to sending the file from new library would probably be best.
    Apologies in advance if you have already tried this and for outlining procedures that you are already familiar with (just not sure what level Photoshop user you are).

  • Exporting a move clip with alpha channel

    Hi there,
    I’m trying to export a move clips with alpha channel.
    I’m trying to export an animation with Premiere CS5. I made an animation of a rotating object in Maya and exported it with alpha channel as tiff images. Then they are edited with Photoshop to give them a drop shadow.
    My problem is this. Can I export this tiff animation with the alpha channel?
    My plane is to use move clips over backgrounds in a game – depending on the result there are different animations playing on top of several different backgrounds. There for the objects has to have a transparent/alpha channel over the backgrounds.
    Again the reason for this is the complexity of the game and to make the game looking as real as possible. I’m hoping for some help here to make my plan possible
    …thanks

    Thanks alot for the help.
    But now I’m wondering how to get the file size down?
    The 32bit and alpha channel just increase the file size from about 1MB to 9,3MB, which is pretty much??
    …any ides mate?

  • Using video with alpha channel

    I purchased a video clip from istock, the video clip is an .mov and has a alpha channel included.  The video clip is santa clause over a black background and tagged at the end is a white solid of the video (I assume this is the alpha channel)  How do I use the alpha channel to help key out the vidoe clip that I need.  here is a link to the actual video clip I purchased. http://www.istockphoto.com/stock-video-11011749-santa-claus-with-alpha-channel-ntsc.php
    Thanks Ja

    As Szalam said, the b/w image can be used as a luma matte.
    Also check if the actual piece of footage has an embedded alpha channel, i.e when you import it AE should know there is an alpha channel and let you know in the top of the project window when you select the element (or "interpret footage").
    Alternatively just drag the footage to a comp and enable the checkerboard background to see if there is transparency.  These three approaches are the same...just different ways of finding out about the alpha channel.

  • Flash Player for FLV files with alpha channel encoded

    My goal is to play the the transparent background flash video on the bottom right hand corner similar to the video on this website : http://www.dropshipblueprint.com/
    I already have the FLV file with alpha channel encoded.  I was made to understand I will need a special flash player that can read alpha channel in the flv file to make the background transparent? Is this correct? If yes, then how to accomplish this or where do I get that player, maybe opensourece player?  If the player is not a solution then how do I accomplish my end objective taking into consideration I have the FLV file with the alpha channel encoded.  Thanks for your help. Sam

    Sam,
    Welcome to the forum.
    Where do you need to play this "sprite" (the name for such a Flash video)?
    If you need to add that to a Video, then there could be a few challenges in PrE.
    If you need to add it to a Web site, then Flash Player (free from Adobe) should be able to display that.
    Can you please give us just a bit more info, on how you wish to use the sprite?
    Good luck,
    Hunt

  • What codec to convert .MXF and MP4 files into to use with alpha channels in Ae and Pr CS6?

    When I import .mxf File, shot on a Canon C300, into after effects, the alpha channel options are greyed out, when I look in, interpret footage, main. This also is the case importing .MP4 files, shot on a Gopro hero 3. I used to use final cut and using compressor convert the files to pro res 4444 or 422. What's my new workflow for preparing files with alpha channels to use in After Effect and Premiere and do I use Media Encoder to do it?

    When I import .mxf File, shot on a Canon C300, into after effects, the alpha channel options are greyed out, when I look in, interpret footage, main. This also is the case importing .MP4 files, shot on a Gopro hero 3.
    Better question: Where do you expect that Alpha channel to come from and contain any useful info for transparency? You're making a fuss over a non-issue. Unless you apply keying or other methods of creating transparency, even if there were an Alpha channel it would be fully opaque and then what's the point?
    Mylenium

Maybe you are looking for

  • Help! Adding Text in CS3...

    Hi, I am trying to put my CV into a Dreamweaver web page, by copying and pasting from a word document. I can get the font size, colour correct, but the tabs are all over the place. I fear I will need to add code for new paragraphs rather than just sp

  • Spatial Index problem with query

    I created a spatial index with user A. When i do a spatail query, i receive a good result. But, when i execute the same query with user B, i receive the following error : ERROR at line 1: ORA-13226: interface not supported without a spatial index ORA

  • Windows 2012 Datacenter R2 - Network Connections Confusion

    I have recently created a 2012 Datacenter install with the goal to create virtualize test lab.  As part of the install two connections were created: 1. Labeled 'Ethernet' with Hyper-V Extensible Virtual Switch protocol enabled. 2 Labeled 'Network 2'

  • Planner Group

    Hi, I have defined planner groups for the maintenance orders. I was able to see the planner groups while creating PM orders at header data. The question is that while I am creating general maintenance task list I was unable to see the same planner gr

  • PR & PO Relation

    Dear All, Do we have a standard report in SAP which give details of Purchase Orders raised without Purchase Requisitions? Please let me know. Amit