Bump mapping with pixel shaders

I see in this game: http://www.shockwave.com/gamelanding/army-of-the-damned.jsp
if you enable "pixel shader" you will see a nice bump-mapping
i know the old method for bump-mapping ( using the #speculalLight textureMode, masked by another texture ) but this one seems to be hardware-managed by new video cards
i didn't find how to parameter the shaders in director documentation to perform hardware bump-mapping and other effects
has someone found the doc ?

doesn't matter...
for the moment we can use the oldschool bump mapping:
- first texturelayer = halo texture with #specularLight or #reflction uv projection
- second texturelayer = bump texture with #multiply blendfunction
- third textureLayer = main texture with #add blendfunction
- fourth textureLayer = lightmap
of course its faster and more realistic when hardware managed

Similar Messages

  • Bump Map Issue?

    I made a flame shape in color using Photoshop and then imported the object into Motion. I used the bump map filter for this layer and imported Smoke.mov from the Content Folder, to create a more realistic feel and movement for the object I created. This worked, however I now have a black background for my layer, the flame I created. My question is: is this because the background of the Smoke.mov is black? I know this sounds elementary, but I did try to make the movie as an Animation, and as NTSC/DV, also using the Alpha Channel and Transparent....every way I tried to get a transparent background for my layer didn't work. So, here I am asking the pros......thanks in advance for any help you can give me! Lucind
    I Mac G5, Power Mac G4   Mac OS X (10.3.9)   own FC Studio

    Hi Sri,
    Initially, am glad for the response.
    Though I have maintained the region keys with the city names with the right letters, I couldn't see the newer 2 cities of the country on the map..
    I guess I should find alternatives to embed new maps vie some other technologies or Add-ons...
    I greatly appreciatte with any deliverables...
    Best.
    Eddy.

  • Terrible terrible cpu performance with pixel updates

    Hello all,
    I had been working on a Lemmings implementation, since those lemmings are digging, bashing etc. the surface was changing and I chose a per pixel implementation for image operations. However the following code consumes %100 cpu at a 2ghz machine+a 60mb ram.
    package lemmings;
    import java.awt.*;
    import java.awt.image.*;
    import javax.swing.*;
    class MapContainer extends JLabel
    private static Image mapImage,lemmingsImage;
    private Image theMap,theLemmings,mapPixelImage,lemmingsPixelImage;
    private int mapX,mapY,mapWidth,mapHeight,offset,visibleWidth,visibleHeight;
    private static int[] visibleMapPixelArray,mapPixelArray,
    visibleLemmingsPixelArray,lemmingsPixelArray;
    private     MediaTracker tracker;
    private MemoryImageSource imageSource;
    //------------------------------------CONSTRUCTOR-------------------------------
    //The mapContainer constructor determines the map's height,width and its
    //relative x,y values(relative to the JLabel this class extends)
    public MapContainer(String mapLocation,String lemmingsLocation,int x,int y,
    int width,int height,int visibleWidth,int visibleHeight)
    //--------------------------INITIALISATION OF VARIABLES---------------------
    mapWidth = width;
    mapHeight = height;
    this.visibleWidth = visibleWidth;
    this.visibleHeight = visibleHeight;
    mapY = y;
    mapX = x;
    mapPixelArray = new int[mapWidth*mapHeight];
    lemmingsPixelArray = new int[mapWidth*mapHeight];
    theMap = mapPixelImage.getScaledInstance(mapWidth,mapHeight,
    Image.SCALE_SMOOTH);
    theLemmings = lemmingsPixelImage.getScaledInstance(mapWidth,mapHeight,
    Image.SCALE_SMOOTH);
    //----------------------------END INITIALISATION----------------------------
    this.setBounds(0,0,mapWidth,mapHeight);
    //Grab pixels and save the values into mapPixelArray
    PixelGrabber mapPG = new PixelGrabber(theMap,0,0,
    mapWidth,
    mapHeight,
    mapPixelArray,
    0,//offset
    mapWidth);
    PixelGrabber lemmingsPG = new PixelGrabber(theLemmings,0,0,
    mapWidth,
    mapHeight,
    lemmingsPixelArray,
    0,//offset
    mapWidth);
    try {
    mapPG.grabPixels();
    lemmingsPG.grabPixels();
    }catch (InterruptedException e) {
    System.err.println("interrupted waiting for Map's pixels!");
    return;
    if ((mapPG.getStatus() & ImageObserver.ABORT) != 0) {
    System.err.println("Map image fetch aborted or errored");
    return;
    //Get the image's color model to decide if the image has alpha ability
    //it means to determine if we can draw .gif images onto the image
    ColorModel cm = lemmingsPG.getColorModel();
    //Get pixels of the image map and load them into the
    //buffered image, than set buffered image into background
    offset = (mapY)*mapWidth+mapX;
    // System.arraycopy(
    // imageSource = new MemoryImageSource(visibleWidth,visibleHeight,cm,visibleMapPixelArray,offset,visbleWidth);
    imageSource.setFullBufferUpdates(true);
    imageSource.setAnimated(true);
    //-----------------------------END CONSTRUCTOR----------------------------------
    /*     public boolean imageUpdate(Image img,
    int infoflags,
    int x,
    int y,
    int width,
    int height)
    if(infoflags == ImageObserver.ALLBITS)
    return true;
    return false;
    //start_start_start_start_start_start_start_start_start_start_start_start_start
    //refreshMap will be called indirectly by GameController class
    public void refreshMap(int x)
    offset = x;
    if((x+visibleWidth <= mapWidth)&&(x>=0))
    if(visibleHeight <= mapHeight)
    imageSource.newPixels();
    //bufferedScreen.setRGB(0,0,visibleWidth,visibleHeight,
    // mapPixelArray,offset,mapWidth);
    //bufferedLemmings.setRGB(0,0,visibleWidth,visibleHeight,
    // lemmingsPixelArray,offset,mapWidth);
    this.repaint();
    }else
    System.out.println("Refresh height is out of map height");
    }else
    System.out.println("Refresh width is out of map width");
    //end_end_end_end_end_end_end_end_end_end_end_end_end_end_end_end_end_end_end
    //start_start_start_start_start_start_start_start_start_start_start_start_start
    public void refreshMap()
    if((offset+visibleWidth <= mapWidth)&&(offset>=0))
    if(visibleHeight <= mapHeight)
    imageSource.newPixels();
    this.repaint();
    }else
    System.out.println("Refresh height is out of map height");
    }else
    System.out.println("Refresh width is out of map width");
    //end_end_end_end_end_end_end_end_end_end_end_end_end_end_end_end_end_end_end
    public int[] getPixels(int x,int y,int width,int height)
    System.out.println("WIDTH*HEIGHT: "+width*height);
    int[]rgbArray = new int[width*height];
    bufferedScreen.getRGB(x,y,width,height,rgbArray,0,width);
    return rgbArray;
    //this is one of the methods that interacts mapContainer directly with the
    //mapGrid Class. in mapGrid Class one can refer to mapPixelArray with this function
    public int[] getMapPixels()
    return mapPixelArray;
    public int[] getActualPixels()
    return lemmingsPixelArray;
    public int getMapWidth()
    return mapWidth;
    public int getMapHeight()
    return mapHeight;
    public void paint(Graphics g)
    mapImage = Toolkit.getDefaultToolkit().createImage(imageSource);
    g.drawImage(mapImage,0,0,null,null);
    //g.drawImage(lemmingsImage,0,0,null,null);
    mapImage.flush();
    super.paint(g);
    if anyone can help with the objects I should use, or approach I should have I will be glad.
    best,
    Onur

    first: use code tags http://forum.java.sun.com/features.jsp#Formatting
    second: perhaps you should narrow your code down to the offending parts
    third: maybe you should use http://java.sun.com/j2se/1.4.2/docs/api/java/awt/image/BufferedImage.html

  • @ Bill (winesnob) - bump maps

    Hey Bill
    What do you know about bump mapping layers?
    Premiere, P.S or AEFX
    Craig

    People with an iPod Touch use Maps with a Wi-Fi connection and people with an iPhone have Wi-Fi and cellular internet access. To download a map or directions does not involve a great deal of data download but will be an additional cost as with any such device when roaming internationally.
    Here is the iPhone feedback link.
    http://www.apple.com/feedback/iphone.html
    Another test I just did was to request directions from my current location to a saved bookmark.
    After the directions were rendered, I enabled Airplane mode and I was able to view the directions turn by turn without having an internet connection.

  • Animated bump map filter, how to ?

    Hi(Bonjour)!
    I want to animate on a path an small oval shape and use this shape as a bump map in a bump map filter ( or displace filter). The goal is to "push out" a small portion of my movie like if someone is pushing beneath the screen.
    The result doesn't animate and despite many tweakings, the bumped portion is a large oval instead of finger's tip.
    Motion manual says :
    +"Bump Map+
    +This filter uses a source object to define a bump pattern which can be used to deform+
    +an object, with parameters to control the amount of distortion. You can use any image,+
    +movie, or shape as the source object."+
    How to achieve this effect?
    Thank you.
    Michel Boissonneault

    Yes it seems to blow up anything in the image well to fill the screen.
    Have you tried bulge?
    Peter

  • Can I make custom blend modes with Pixel Bender 3d?

    So it seems PixelBender does not work in GPU mode, which is essential in iOS.
    I want to create a custom blend mode for adobe air in iOS and was wondering if it is possible with Pixel Bender 3d.

    for the mesh, hexagon is actually better than photoshop. Since it can create the actual mesh. Though, you can import the mesh into photoshop so you can see it while you paint the texture.
    The 3d creation portion of photoshop is still a bit limiting. (But my experience stops with CS5. I have not tried CS6 yet, so impovement could have been made)
    The issue I have with hexagon is the amount of bugs in it. I prefer a more robust and more expensive alternative. But thats me
    A free alternative is Blender. But I find the UI a bit outdated and hard to grasp. But again, thats me.
    Generate your UV maps as you normally would then load them into photoshop and get painting. You may like other texture generating apps to go along with photoshop. Genetica is great for making tileable textures.

  • Issue in Color Theme on the map with ADF geographic components

    I am facing an issue in bringing up a map using color theme .I can able to bring up a map with color themes using geographic components feature in ADF.
    The problem here is 'Edit Color Map Theme' dialog which lists Map Theme in five categories like continents,counties,countries,states_abbrev,states_names.
    we had implemented map using Color Theme based on the states_abbrev and found it was working properly.
    But after some days we found that the settings we made to work for the map no longer works and resulted in no color theme on the map being displayed on the page.
    It was found that the states_names works properly instead of states_abbrev by that time.
    But again after some days it didnt work with state_names and we revert back our code to follow state_abbrev so as to get the desired result.
    Does somebody know where is the problem and how to approach this issue?

    Quick Install is gone.
    Database repair doesn't work.
    Color coded categories is gone, and as you've discovered Theme colors are gone.
    Print to Excel is gone.
    Many desktop clients that worked with 4.2 do not work.
    It won't work with legacy devces.
    and others.... There are lots of complaints about 6.2 scattered around the forums.  Personally, the HotSync manager keeps forgetting the connections I've set, and goes to default views.
    You aren't missing much of anything, IMHO.
    WyreNut
    Post relates to: Centro (AT&T)
    Message Edited by WyreNut on 02-20-2009 12:18 PM
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • How to add a bing map with pins to a Siena Project

    Hi
    I just want to add a bing map with the current location and a few nice pins of some nice locations around me. Comming out of a Excel file. Potentially also draw some routing lines into the bing maps.
    Any ideas how I can accomplish that goal?
    Thank you in advance
    wbr.
    Joerg 

    yes you can (there is actaully one on the map, blue square)
    The syntax is listed on
    http://msdn.microsoft.com/en-us/library/ff701724.aspx
    You will however have to build the correct string to included in the image source (which you can do in the source excel or in runtime in siena)
    Concatenate is suitable to do that.
    http://dev.virtualearth.net/REST/v1/Imagery/Map/Road?pp=47.638197,-122.131378;;1&ms=350,500&key=KEYHERE
    the PP indicates the pin actually and the bing map autocenters on that. You have several options listed on the webpage listed above. It's a question of the one fitting you best.
    Please note that your bing key is yours so you need to hide it well enough.
    Regards
    StonyArc

  • Can i use WebApps to build a Google map with polygon territories instead of points (pins)?

    I built a map with Google Maps Engine Pro - http://www.jmbcompanies.com/Services/Mitigation/map.
    It showcases territories using a Google map polygon shape.  I wrote custom KML to create it.  However, with Google Maps Engine pro you cannot create custom hyperlinks.  It will link a URL that you put in the data, but you cannot name it or target the parent window, so therefore it opens a new tab for each click to more details.  I really want it to open the WebApp detail page for that item within the same window.
    So, is there a way to use the BC integrated Google maps technology and show polygons instead of points on the map? I've used {module_webappsmap,20754,a} to place individual locations on a map, but what about territories or polygon areas?
    I'm sure that I can create a WebApp to generate the KML for each placeholder.  But how do I turn that into a map?
    THANKS!!

    You can not create a kml file in BC through webapps. Modules do not work in other file types and you do not have server code access to generate a file type of results.
    You need to use the google API and do this yourself or you can just use this:
    And embed it into a custom field. My Maps

  • How to lock a specific map with a password in FINDER?

    I don't use a password on my mac because you have to fill it out the whole time for ridiculous reasons. But I have one map, with all my financial numbers and invoices, that I want to secure with a password.
    How to do that?
    I already tried some things but can't figure it out.
    Thanks in advance!

    not sure what you mean by a map here. if you use a blank admin password (a mistake IMO), pretty much your only option is to create an encrypted disk image using disk utility and put whatever you want protected inside. when the image is unmounted, the only way to mount it is by entering the password you set at the image creation time.

  • Error in scheduling a mapping with sqlloader ctl file

    Hi everyone,
    I have been trying to schedule a single mapping which generates sqlloader ctl file. but i get the error
    ORA-20001: Begin. initialize complete. workspace set. l_job_audit_execution_id= 20545. ORA-20001: Please check execution object is deployed correctly. ORA-01403: no data found ORA-06512: at "USER7.PMAP_TLOG_JOB", line 180 ORA-20001: Please check execution object is deployed correctly. ORA-01403: no data found
    but when i attach this mapping with a process flow it works fine. There is no error.
    so my question is in OWB is it a must that we should attach the mapping which generates sqlloader ctl file to a process flow and then schedule it or can we schedule a single mapping which generates sqlloader ctl file and what should be the process to schedule a single mapping which generates sqlloader ctl file?
    can anyone please help?
    Thanks & Regards
    Subhasree

    Hi Nawneet,
    Any suggestions?
    can anybody else also help me in this error???
    Regards
    Subhasree

  • Runtime-Error after deploying a mapping with the generated script

    For example a very easy scenario:
    1. Create a table and a view in a DB-schema, witch ist registered as WB-target-schema with the following scripts:
    create view v1(c1) as select 'a' c1 from dual;
    create table t1(c1 varchar2(1));
    2. Import the table and the view into a OWB-module
    3. Create a mapping ‘m1’
    4. Drag and drop view and table into the mapping
    5. Draw an arrow from the view-column to the table-column
    6. Save and close the mapping
    7. Mark the mapping in the ‘Design Center’ and klick the ‘Generate’-Button
    8. Save the generated script ‘M1.pls’ to file
    9. Run the script in SQL*Plus, connected with the target-schema (without using the Control Center Manager)
    => very easy right now ;-)
    10. Start the mapping with the following script will produce the following error
    SQL> declare
    2 v_status varchar2(100);
    3 begin
    4 m1.main(v_status);
    5 end;
    6 /
    declare
    ERROR at line 1:
    ORA-01403: no data found
    ORA-06512: at "OWB_OWN.WB_RT_MAPAUDIT_UTIL", line 1027
    ORA-06512: at "SCOTT.M1", line 2048
    ORA-06512: at line 4
    If i delete or comment the four WB_RT_MAPAUDIT_UTIL-calls - it work´s fine!
    But is this a good advise?
    What exactly does the wrapped package ‘WB_RT_MAPAUDIT_UTIL do?
    Thanks
    jwehner

    I just ran into the same problem myself. I used the same technique of saving the generated OWB script to file and then compiling it through sqlplus. When I used the "Deploy" option for the mapping, then the problem went away. So when OWB is deploying the code it seems to be setting something internally that doesn't get set when you simple compile the PL/SQL. I don't know of any workaround to this. I will need it eventually, since I don't want to use the UI to deploy to various test environments and production. Maybe the built-in scripting language is the way to go.

  • Multi mapping with out BPM

    HI ALL ,
           I am trying to do multi mapping with out using BPM .I will get message from the sender and i need to send that to two different target system. I have defined the mapping in the IR . In ID i  have created the configuration scenario and i have created the receiver determination .In receiver determination i have selected "EXTENDED" and when i select input help for mapping name it says "NO Object found". What else should i do get the mapping program here .
    Regards,
    Tarun.

    Bhavesh,
    I'm sorry but if he needs 2 different receivers, then it's not the case of using Enhanced Interface Determination.
    sapuser,
    if you scenario is asynchronous, then it's easily implemented.
    But it won't be achieved with multimapping.
    You'll have 2 receivers in receiver determination (normal RD, not enhanced). For each of those, you'll have to create a separate simple mapping (that will generate the message expected at each receiver system) and refer that mapping in the interface determination of each receiver.
    For example, you have input_message containing data1 and data 2. You'll have 2 simple mappings (not a multimapping), 1 generating output_message_1 containing data1 and the other generating output_message_2 containing data2. Then refer those mappings in the proper interface determinations.
    Regards,
    Henrique.

  • XSLT Mapping with Java Enhancement

    Hi All
    I am working on XSLT Mapping with Java Enhancement.
    To do this scenario i have followed the following link.
    http://help.sap.com/saphelp_nw04/helpdata/en/55/7ef3003fc411d6b1f700508b5d5211/frameset.htm
    As per the above link I have created Source and Target Data Types , Message Types , Mesage Interfaces, XSLT Mapping (using the transaction XSLT_TOOL) and Interface Mapping part and configred a simple file to file scenario in the ID part.
    Apart from this I have wirte the java code, compile the java code, create the jar file using .java and .class file and after creating the jar file import the .jar file in the imported archive of the IR..
    when I am trying to execute the scenario I am getting the successful message in SXMB_MONI but the target file is having the payload as given below.
    <?xml version ="1.0" encoding="UTF-8"?>
    <name xmlns:javamap="java:com.company.group.MappingClass"/>
    And as per the XSLT mapping the payload should be as below
    <?xml version ="1.0" encoding="UTF-8"?>
    <person>
    <name>Rinku Gangwani</name>
    </person>
    I have also followed the following blog link but still i am getting the same issue
    /people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners
    could you please tell me what can be the reason that i am getting the blank targt field values in the payload.
    Thanks
    Rinku Gangwani

    Hi,
      The Transaction code XSLT_TOOL for ABAP xslt mapping.But the Java Enhancement is used for normal xslt mapping which we created using Stylus Studio.You can not access the Java Enhancement in ABAP xslt mapping.
    If you want to use Java Enhancement in xslt mapping then create a xslt mapping using Stylus Studio and save the file as .xsl and zip the .xsl and import to import archive.
    Regards,
    Prakasu.M
    Edited by: prakasu on May 28, 2009 1:46 PM

  • XSLT Maps with Java enhancements - JCO_SYSTEM_FAILURE

    Hi,
    I have reviewed several postings regarding XSLT Maps with Java enhancements. I followed instructions and build a jar file and the XSLT document. I built one imported archive with the .jar and .xsl. For the class, The path get loaded properly.
    However, I still have a problem when and execute the interface.
    My xslt has the following information
    <xsl:transform version="1.0"
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns:ns="http://xyz.abc.sap.def.com"
        xmlns:javamap="java:xyz.Date_Time">
    <xsl:param name="inputparam" />
        <xsl:template match="/">
            <test><xsl:value-of select="javamap:getDateValue($inputparam)"/></test>
        </xsl:template>
    </xsl:transform>
    In SXMB_Moni I get the following error...
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="MAPPING">JCO_SYSTEM_FAILURE</SAP:Code>
      <SAP:P1>Exception in method processFunction.</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>"SYSTEM FAILURE" during JCo call. Exception in method processFunction.</SAP:Stack>
      <SAP:Retry>A</SAP:Retry>
      </SAP:Error>
    If i remove the line        
    <test><xsl:value-of select="javamap:getDateValue($inputparam)"/></test>
    The map ends successfuly.
    Comments would be appreciated.
    Regards,
    Sergio

    Stefan,
    Find the class and method definition below. The method is static and it returns the string.
    ==========
    package xyz;
    import java.util.Map;
    import com.sap.aii.mapping.api.AbstractTrace;
    import com.sap.aii.mapping.api.StreamTransformationConstants;
    import java.util.*;
    import java.text.*;
    public class Date_Time {
        private static AbstractTrace trace = null;
        public static String getDateValue(Map inputparam)
                trace = (AbstractTrace)inputparam.get(
                         StreamTransformationConstants.MAPPING_TRACE );
                Date now1 = new Date();
                SimpleDateFormat formatter = new SimpleDateFormat ("yyyyMMd");
                String dateString = formatter.format(now1);
                return dateString;

Maybe you are looking for