Lenght, Widht,& Height of an material

Hi all
I have one requirement, how we can get the lenght, widht,& height of an material when we are delivering ,which is to be loaded in a truck as per the trucks capacity in terms of lenght,widht &height. for delivering of the material.  By using HU we are able to get the Weight of the delivery.Can anybody suggest.
Regards
sujith

Hi all
I have one requirement, how we can get the lenght, widht,& height of an material when we are delivering ,which is to be loaded in a truck as per the trucks capacity in terms of lenght,widht &height. for delivering of the material.  By using HU we are able to get the Weight of the delivery.Can anybody suggest.
Regards
sujith

Similar Messages

  • Reporting Services - Orientation Paper - Widht - Height

    Hello Guys.
    Have you seen that when the Widht is bigger than height, the SSRS change the orientation paper to landscape and in the another way it changes to portrait?
    I have a paper who has more widht than height but I want to print it as portrait, because It will be printed in a continuos printer and the size of each paper is like an envelope.
    I Have been looking for a solution on internet about this issue, but I havent found anything. 
    For example. one Guy has the same problem and he wrote this: (I know is nothing about the printer, the problem is in the configuration of SSRS.) Thanks in advance!
    I've come across what appears to be a bug in SSRS. If after reading this post you feel otherwise, please reply to this thread...
    I am trying to use SSRS to print to a Dymo LabelWriter 400 printer. This is a specialized label printer that prints one label to a page. The label paper I am using 2-1/2 inches by 1-1/2 inches. The Dymo printer
    driver prints portait layout as being the 2-1/2 inches width and 1-1/2 inches height. I assume that is because the paper rolls through the printer that way and labels normally are printed with more width than height.
    Other software programs I use to print to this printer handles it properly (Microsoft Word, Microsoft Office Document Imaging, Dymo Label software). However, SSRS seems to assume that portrait layout must
    mean paper height > width, as there is no explicity setting in SSRS to for page layout. The result is that no matter how I layout my SSRS report (e.g., switch width-height values, use tb-rl to rotate text), SSRS makes the final decision on whether it is
    portrait or lanscape. And in this case of the Dymo printer, it always sets it to the opposite of what it should be. Changing the printer settings (whether default or whether in print dialog) does not correct it.
    Although assuming that portrait layout must mean paper height > width may seem to make logical sense, not every printer works that way; and other software programs (including Microsoft Office) do not make that
    assumption. It seems that SSRS and/or RDL spec should allow one to explicitly set portrait/landscape setting and not care about width-height ratio. It should be left to the printer and printer driver to decide.
    Have other people come across this issue, either with Dymo printer or in other context? Were they able to find a workaround?

    Hello Jin-
    Thanks for your Answer.
    I already added my Service Reference. But when I tried to use the code that you gave me, 
    the class ReportExecutionService rs =
    new
    ReportExecutionService() could not be found.
    I am forgeting something?
    I added my code. Thanks again!
    using
    Q10.Agatha.Business;
    using
    Q10.Agatha.Business.DataSets;
    using
    Q10.Agatha.DataAccess;
    using
    System.Drawing;
    using
    System.Drawing.Imaging;
    using
    System.Web.Services.Protocols;
    using
    Q10.Agatha.Academico.Web.myServiceReference;
    namespace
    Q10.Agatha.Academico.Web.Utilities.Reports
    public
    class
    clsServiceReference
    public
    void
    ObtenerWebReference()
    ReportExecutionService rs =
    new
    ReportExecutionService(); // could not be found
    rs.Credentials = System.Net.
    CredentialCache.DefaultCredentials;
    rs.Url =
    "http://myserver/reportserver/ReportExecution2005.asmx";
    // Render arguments
    byte[]
    result = null;
    string
    reportPath = "/AdventureWorks Sample
    Reports/Employee Sales Summary";
    string
    format = "MHTML";
    string
    historyID = null;
    string
    devInfo = @"<DeviceInfo><Toolbar>False</Toolbar></DeviceInfo>";
    // Prepare report parameter.
    ParameterValue[]
    parameters = new
    ParameterValue[3];
    parameters[0] =
    new
    ParameterValue();
    parameters[0].Name =
    "EmpID";
    parameters[0].Value =
    "288";
    parameters[1] =
    new
    ParameterValue();
    parameters[1].Name =
    "ReportMonth";
    parameters[1].Value =
    "6";
    // June
    parameters[2] =
    new
    ParameterValue();
    parameters[2].Name =
    "ReportYear";
    parameters[2].Value =
    "2004";
    Web.myServiceReference.
    DataSourceCredentials[]
    credentials = null;
    string
    showHideToggle = null;
    string
    encoding;
    string
    mimeType;
    string
    extension;
    Web.myServiceReference.
    Warning[]
    warnings = null;
    Warning[]
    warnings = null;
    Warning[]
    warnings = null;
    ParameterValue[]
    reportHistoryParameters = null;
    string[]
    streamIDs = null;
    ExecutionInfo execInfo =
    new
    ExecutionInfo();  // could not be found
    ExecutionHeader execHeader =
    new
    ExecutionHeader(); // could not be found
    rs.ExecutionHeaderValue = execHeader;
    execInfo = rs.LoadReport(reportPath, historyID);
    rs.SetExecutionParameters(parameters,
    "en-us");
    String
    SessionId = rs.ExecutionHeaderValue.ExecutionID;
    Console.WriteLine("SessionID:
    {0}", rs.ExecutionHeaderValue.ExecutionID);
    try
    result = rs.Render(format, devInfo,
    out
    extension, out
    encoding, out
    mimeType, out
    warnings, out
    streamIDs);
    execInfo = rs.GetExecutionInfo();
    Console.WriteLine("Execution
    date and time: {0}", execInfo.ExecutionDateTime);
    catch
    (SoapException
    e)
    Console.WriteLine(e.Detail.OuterXml);
    // Write the contents of the report to an MHTML
    file.
    try
    FileStream
    stream = File.Create("report.mht",
    result.Length);
    Console.WriteLine("File
    created.");
    stream.Write(result, 0, result.Length);
    Console.WriteLine("Result
    written to the file.");
    stream.Close();
    catch
    (Exception
    e)
    Console.WriteLine(e.Message);

  • Stretch height in a page Template

    Hi.
    I have already searching about this issue but I didn't find any. This is my problem:
    I have defined a Page Template to reuse in my application. This template has a PanelStrechLayout to Stretch in widht & height, but It doesnt work.
    This is the code:
    <?xml version='1.0' encoding='UTF-8'?>
    <af:pageTemplateDef xmlns:af="http://xmlns.oracle.com/adf/faces/rich" var="attrs" definition="private"
                        xmlns:afc="http://xmlns.oracle.com/adf/faces/rich/component" xmlns:f="http://java.sun.com/jsf/core">
        <af:xmlContent>
            <afc:component>
                <afc:display-name>MyTemplate</afc:display-name>
                <afc:facet>
                    <afc:facet-name>content-app</afc:facet-name>
                </afc:facet>
            </afc:component>
        </af:xmlContent>
        <af:panelStretchLayout id="pt_psl1" inlineStyle="background-color:red;" styleClass="AFStretchWidth" >
            <f:facet name="center">
                <!--<af:outputText value="outputText1" id="pt_ot1"/>-->
                <af:facetRef facetName="content-app"/>
            </f:facet>
        </af:panelStretchLayout>
    </af:pageTemplateDef>
    How can I get this?
    Jdeveloper 12c.

    Hi,
    jsp includes should be added using the f:subview tag.
    However, since the template is meant to be the blueprint for other pages. Why do you use a page fragment and don't add the searchregion directly into it ? Somehow I don't see sense in what you are doing
    Frank

  • SWFLoader width height Issue

    When I use the SWFLoader to load an swf from a URL it is not
    using the
    sizes specified in the SWFLoader component that is loading
    it, the swf
    seems to initially load at whatever size the actual swf is,
    but after
    the swf has been downloaded fully then the SWFLoader jumps to
    the
    width/height I specified, so basically all swfs I load start
    out huge
    then after sever seconds shrink to the size I want them to
    be. has
    anyone else seen this or know how to remedy this issue?
    (also the element in the swf that animate say from outside
    the
    original swf stage width/height show out way outside the
    bounds of the
    size specified)
    //set the source(within a function)
    swfplayer.source="
    http://www.somedomain.com/myswf.swf";
    <mx:Canvas id="swfplaycontainer" width="452" height="252"
    horizontalCenter="0" verticalCenter="0">
    <mx:SWFLoader id="swfplayer" width="100%"
    height="100%"/>
    </mx:Canvas>
    Also tried with no Canvas...
    <mx:SWFLoader id="swfplayer" width="452" height="252"
    width="100%"
    height="100%"/>
    Thanks, Tim
    specified size does not take effect until fully loaded swf

    hmm, well I tried explicitly setting the widht/height of the
    SWFLoader to no avail, I just tried the scaleContent, it also did
    not work ;-( I cannot hide the SWFLoader until complete event
    because these are long swf animations(they are tutorial videos in
    swf format) some seem to take 30-60 seconds to fully load(depending
    on network traffic). They do start playing quite well immediately
    but the size is messed up until complete, but I would think and
    explicit size on the SWFLoader should be the definitive answer.
    Adobe?

  • Help needed in optimizing painting logic

    Hi,
    I am working on a Applet where i have to do a lot of painting, the applet is kind of microsoft project, where u can define a activity as a rectangle and then u can select the rectangle and drag it to some other date,
    i am posting a code below, which i am using to draw all the rectangles,
    but some times when there is a lot of data scrolling is really very slow
    Can any one look at the code, and let help me optimize it,
    U can copy the code, compile and run it to see what i mean by slow,
    just in class data , change the value 600 to some thing less like 50 and it works very fast
    //start code
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.ArrayList;
    public class TestDisplaySize extends JFrame
         private     JScrollPane scrollPane ;
         private MyPanel panel ;
         public TestDisplaySize()
              super("layered pane");
              this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              panel = new MyPanel();
              scrollPane = new JScrollPane(panel);
              Container contentPane = this.getContentPane();
              contentPane.add(scrollPane, BorderLayout.CENTER);
              setSize(new Dimension(800,600));
              this.setVisible(true);
              JViewport viewPort = scrollPane.getViewport();
         class MyPanel extends JPanel
              private int height;
              private int last;
              private Data data;
              public MyPanel()
         this.setBackground(Color.white);
         this.setOpaque(true);
         data = new Data();
         int size = data.getSize();
         height = size * 50;     
         last = data.getDataSize(0);
         int last1 = last -1;
         int length = data.getX(0, last1) + 100;
         System.out.println ("Lenght " + length + " height " + height);
         setPreferredSize(new Dimension(length, height) );     
         public void paintComponent(Graphics g)
    super.paintComponent(g);
    setBackground(Color.white);
    Rectangle r = scrollPane.getViewport().getViewRect();
    g.setClip((Shape)r);
    g.setColor(Color.blue);
    int x = 0;
    for(int i = 0; i < last ; i++)
         x +=60;
         g.drawLine(x, 0, x, height);
         g.drawString(String.valueOf(i), x, 10);
    int size = data.getSize();
    int width = 30;
    int height = 20;
    int yAxis = 20;
    g.setColor(Color.cyan);
    for(int i = 0; i < size; i++)
         int dataSize = data.getDataSize(i);
         for(int k = 0; k < dataSize; k++)
              int xAxis = data.getX(i, k);
              g.fill3DRect(xAxis, yAxis, width, height, true);
         yAxis = yAxis + 50;
    private class Data
              private ArrayList totalData = new ArrayList();
              public Data()
                        for(int i = 0; i < 600; i++)
                        ArrayList data = new ArrayList();
                        int l = 50;
                        for(int k = 0; k < 600; k++)
                             data.add(new Integer(l));
                             l = l + 50;
                        totalData.add(data);
              public int getSize()
                   return totalData.size();     
              public int getDataSize(int i)
                   return ((ArrayList)totalData.get(i)).size();     
              public int getX(int x, int y)
                   ArrayList data = (ArrayList)totalData.get(x);
                   Integer i = (Integer)data.get(y);
                   return i.intValue();
         public static void main(String args[])
         new TestDisplaySize();

    You should only paint what is visible. For example if you are presenting a grid of 100 x 100 boxes. And each box is 20 pixels wide and 20 pixels high, then that would create an <image> the size of 2000 x 2000. That is big ;-)
    What you want to do, is calculate what portion of the <image> that is viewable in your scrollpane and then only perform the paint operations on those boxes. For example, if the viewports width is 200 and its hieght is 80, then you should only paint 10 x 4 boxes (40 boxes total, each 20x20 pixels in size) -- The trick is figuring out what boxes need to be painted.!! I'll leave that up to you, but should be able to find code examples on the net doing something of this sort.
    Hope this helps, and makes sense.
    Cory

  • Purchase Order error - Money Over flow error

    Hi,
    Our customer wants to create Purchase order for item that has Lenght, Width, Height dimentions (not defined in item master used directly in PO).
    Width - 2500mm
    Length - 2500mm
    Height - 550mm
    the quantity in PO is to be in Kilogram (KG) as the rate is Rs per KG. So when we put quantity as 9890 KG there is error
    " Money Over flow, cannot display all digits"
    Looking in more details , we found that there is volume field at row level in PO which system calculates,
    volume = Length * width * height, (for 1 item) but when we add quantty system does
    volume = (Length * width * height) * Quantity, the resulting value is more then 20 characters, inluding the commas.
    We think this is reason for error,,,any one else faced similar situation and has solution for it.
    can we stop system from calulating Volume or the way it calculates volume?
    Please advice
    Thanks,
    - Abhijit.

    Thanks Gordon,
    Your reply helped me solve the problem, there is a VOlume unit field at row level on PO, changed the UoM there to "cm" instead of "mm" earlier/default. Now we can add the document.
    Thanks.
    - Abhijit.

  • Use of 0MAT_UNIT to display attributes

    Has anyone successfully used 0MAT_UNIT in a query to display material atributes such as the "height" of a material in a specific alternate unit of measure, such as "Case".  The "height" in 0MATERIAL refers to the base unit (i.e. EA) so we cannot use this.
    We have the information in our BW system but it won't display correctly in our queries - it always comes in as ***** and we can't seem to figure out why.  It almost seems like we've got to add it to the attributes of 0MATERIAL in order to get it to correctly display.  But we're trying to avoid this.
    Thanks,
    Chris

    Do you know more specifically how we could get the unit in the rows of a query to see the values?  It's weird because of the way that object is organized, and with it being master data and not a key figure... it doesn't seem like it can be filtered or anything.
    As a workaround I created a new InfoObject and am loading it from 0MAT_UNIT within BW and use the update rules to get what I need.  Then I added this InfoObject to the Material dimension of my InfoCube.  That seems to work okay for now.
    Thanks,
    Chris

  • Printing JPanel ,how do i do it

    Hi,
    I am pasting a code below, which will build a screen with 2 panels in a JSCrollPane, added to a JSplitPane in left and right sides,
    so it will look some thing like below
    | | |
    | | |
    | | |
    | | |
    |___|__________|
    Now i want to provide a funtion to print this , but i dont want to print all the panel on right side, but only a portion, say from 100 to 500 on x-axis, along with the panel on left side
    So how can i do it, i am attaching the code to build this screen can anyone help by providing some code or info about printing it
    Ashish
    //start code
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.util.*;
    import java.io.*;
    import java.awt.print.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.event.*;
    import javax.swing.filechooser.*;
    public class TestPanelPrinting extends JFrame implements ActionListener
         private MyTotalPanel totalPanel;
         public TestPanelPrinting()
         super("Print Frame");
         this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
    JMenuBar menuBar = new JMenuBar();
    JMenu menu = new JMenu("print");
    JMenuItem print = new JMenuItem("Print Preview");
         print.addActionListener(this);
         menu.add(print);
         menuBar.add(menu);
    totalPanel = new MyTotalPanel();
         this.setJMenuBar(menuBar);
    this.getContentPane().add(totalPanel);
         this.setSize(1000,700);
    show();
         public void actionPerformed(ActionEvent evt)
         //do printing here
         public class MyTotalPanel extends JPanel
              public MyTotalPanel()
              Data data = new Data();
              MyLeftPanel leftPanel = new MyLeftPanel(data);     
              MyPanel myPanel = new MyPanel(data);
              JScrollPane jsLeft = new JScrollPane(leftPanel, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);     
              JScrollPane jsRight = new JScrollPane(myPanel, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);     
              JSplitPane totalSplit = new JSplitPane();
         totalSplit.setOrientation(JSplitPane.HORIZONTAL_SPLIT);
         totalSplit.setLeftComponent(jsLeft);
         totalSplit.setRightComponent(jsRight);
         totalSplit.setDividerLocation(100);
         totalSplit.setDividerSize(2);
         ((javax.swing.plaf.basic.BasicSplitPaneUI) totalSplit.getUI()).getDivider().setEnabled(false);
         int totalWidth = (int)leftPanel.getPreferredSize().getWidth() + (int)myPanel.getPreferredSize().getWidth() ;
         int totalHeight = (int)leftPanel.getPreferredSize().getHeight() ;
         this.setLayout(new BorderLayout());
         this.setPreferredSize(new Dimension(totalWidth , totalWidth));
         this.add(totalSplit, BorderLayout.SOUTH);
         public class MyLeftPanel extends JPanel
              private int height;
              private int last;
              private Data data;
              public MyLeftPanel(Data data)
                        this.setBackground(Color.white);
                        this.setOpaque(true);
                        this.data = data;
                        int size = data.getSize();
                        height = size * 50;     
                        setPreferredSize(new Dimension(100, height) );
                   public void paintComponent(Graphics g)
         super.paintComponent(g);
         setBackground(Color.white);
    // Rectangle r = g.getClipBounds();
         g.setColor(Color.blue);
         int size = data.getSize();
    int width = 30;
    int height = 20;
    int yAxis = 20;
    for(int i = 0; i < size; i++)
         int dataSize = data.getDataSize(i);
         g.setColor(Color.green);
    //     for(int k = 0; k < dataSize; k++)
              g.drawLine(0, yAxis, 100, yAxis );
              g.setColor(Color.red);
              g.drawString(String.valueOf(yAxis), 10, yAxis + 15);          
         yAxis = yAxis + 50;
         class MyPanel extends JPanel
              private int height;
              private int last;
              private Data data;
              private int length;
              public MyPanel(Data data)
                   this.setBackground(Color.white);
                   this.setOpaque(true);
                   this.data = data;
                   int size = data.getSize();
                   height = size * 50;     
                   last = data.getDataSize(0);
                   int last1 = last -1;
                   length = data.getX(0, last1) + 100;
                   System.out.println ("Lenght " + length + " height " + height);
                   setPreferredSize(new Dimension(length, height) );     
         public void paintComponent(Graphics g)
    super.paintComponent(g);
    setBackground(Color.white);
    // Rectangle r = scrollPane.getViewport().getViewRect();
    // g.setClip((Shape)r);
    // Rectangle r = g.getClipBounds();
    g.setColor(Color.blue);
    int x = 0;
    for(int i = 0; i < last ; i++)
         x +=60;
         g.drawLine(x, 0, x, height);
         g.drawString(String.valueOf(i), x, 10);
    int size = data.getSize();
    int width = 30;
    int height = 20;
    int yAxis = 20;
    for(int i = 0; i < size; i++)
         g.setColor(Color.cyan);     
         int dataSize = data.getDataSize(i);
         for(int k = 0; k < dataSize; k++)
              int xAxis = data.getX(i, k);
         //      if(data.isInView(xAxis- 30, width+ 30,height+ 10 ,yAxis -10,r))
    //     if (r.contains(xAxis, yAxis) || r.contains(xAxis+width, yAxis+height))
              g.fill3DRect(xAxis, yAxis, width, height, true);
         g.setColor(Color.green);
         g.drawLine(0, yAxis, length, yAxis);
         yAxis = yAxis + 50;
    private class Data
              private ArrayList totalData = new ArrayList();
              public Data()
                        for(int i = 0; i < 50; i++)
                        ArrayList data = new ArrayList();
                        int l = 50;
                        for(int k = 0; k < 50; k++)
                             data.add(new Integer(l));
                             l = l + 50;
                        totalData.add(data);
              public int getSize()
                   return totalData.size();     
              public int getDataSize(int i)
                   return ((ArrayList)totalData.get(i)).size();     
              public int getX(int x, int y)
                   ArrayList data = (ArrayList)totalData.get(x);
                   Integer i = (Integer)data.get(y);
                   return i.intValue();
              public boolean isInView(int xAxis, int width, int height, int yAxis, Rectangle r)
              //     System.out.println ("xAxis " + xAxis + " yAxis " + yAxis + " width " + width + " height " + height);
                   Rectangle phase = new Rectangle(xAxis, yAxis, width, height);
                   boolean flag=     r.contains(phase);
                   return flag;
    public static void main(String args[])
         new TestPanelPrinting();
    //end code

    You can print the JPanel or infact any java.awt.Component by breaking into multiple pages using the Smart JPrint APIs at http://www.activetree.com
    You can look at the online demo program that shows how to print any component along with printing support for vistually any swing and Java program output.
    The Smart JPrint API also generates a PDF document for the same printable output pages.

  • Displaying an image in a form

    hi,
    i am trying to display an image in a form. The code worked fine in j2me emulator, but when i converted the program to a jar and ran the same program in my mobile phone.
    i get an exception in Image.createImage(.. method
    and exception value is just null.
    i know the image is not found in the specified location. but the image is there in the jar file.
    how do i solve this issue?
    thanks in advance.

    Its definitly the heap size image, it can be case that image size is very large, u just try by optimizing the image and decreasing the size of image,
    or
    the image size(widht*height) is larger than actual phone screen
    try with small image(small width*height) you will come to know the problem
    @rjun

  • Loading images using Microsoft Paint

    Is there a way to make a servlet load an image using Microsoft Paint (on Windows) ?
    I have a huge image that does not fit in the browser window and the client would like to see it without scrolling. .. and prefers to have this opened in Microsoft Paint. Scaling an image using widht/height is not preferred.
    We can set the MIME type to image/gif for example... but, how can we tell the browser to load using a particular image-editing applciation?
    Thank you.

    Thanks for your response. It might work for bitmap images.
    But my images are gifs and jpgegs.... I forgot to mention this in the initial post. Sorry about that.
    I was looking for something like "application/mspaint" for the contentType rather than image/bmp

  • The picture on my second monitor doesn't display properly.

    I use a red epic camera and always shoot at 5k hd (2700X4800). It is impossible for me to get a full picture on my second monitor Eizo CW245. I have to play with the numbers in the display setting but still can't get it right.  Also, speedgrade is showing my footage as 1345 X 2700.
    Thanks

    Put 1920x1200 (widht&height) for the Eizo, and use the zoom in the GUI.

  • Ipad 2 dimensions

    I know the techinical dimensions are 9.5 (height) x 7.3 (width) x 0.34 (depth).. however, when packaging an iPad 2, how would one go about declaring its dimensions, when the required entries are for "Lenght, Width, Height" ?
    Would 9.5 serve as the "length" , and 0.34 as the "width" ?
    Sorry if this is in the wrong section.

    iPad 2 - Technical Specifications

  • ALV List Display using Class cl_gui_alv_grid

    Hi Experts,
    I am using  Class cl_gui_alv_grid to display data in ALV,
    Now It is being dispaly in Grid format. My Requirement is to display default in List format.
    Can you guide me?
    Points assured for useful answers.

    Hi,
    In this class we have Variants and LAYOUT attributes. Pls try to use them for the list dispplay.
    Or we can use the SET_FRONTEND_LAYOUT methos wchich has IS_LAYOUT attribute of type LVC_S_LAYO where we can provide the widht,height etc of a output so that it can appear as list.
    Reward if helpful.
    Best Wishes,
    Chandralekha

  • Java8 3D: weird mesh display

    Hi all, I have a strange trouble with the TriangleMesh. I've done an example to display what is weird, see below. It displays a mesh which represents bumps. When the camera rotates (or the mesh - same issue), the vertices which are supposed to be back seem to come front!
    The bumps are colored the following way: white is front, black is back (white->red->yellow->green->blue->black). Following the white bumps will be ok until the moment where they go backside and the black holes (in the sky) come front.
    What is wrong????
    public final class Waves3D extends Application {
      * 3D CONSTRUCTION
      private float[] getPoints(final int width, final int height) {
      final float[] points = new float[width * height * 3];
      final int horizontal = (int) Math.round(Math.ceil((double) width / 2));
      final int vertical = (int) Math.round(Math.ceil((double) height / 2));
      int index = 0;
      for (int y = -height / 2; y < vertical; ++y) {
      for (int x = -width / 2; x < horizontal; ++x) {
      points[index] = x;
      points[++index] = y;
      index += 2; // z value is 0
      return points;
      private float[] getTexCoords(final int width, final int height) {
      final float[] coords = new float[width * height * 2];
      final float[] cache = new float[width];
      final int horizontal = width - 1;
      final int vertical = height - 1;
      int index = 0;
      for (int x = 0; x < width; ++x) {
      cache[x] = (float) x / horizontal;
      for (int y = 0; y < height; ++y) {
      final float percent = (float) y / vertical;
      for (int x = 0; x < width; ++x) {
      coords[index++] = cache[x];
      coords[index++] = percent;
      return coords;
      private int[] getFaces(final int width, final int height) {
      final int horizontal = width - 1;
      final int vertical = height - 1;
      final int[] faces = new int[horizontal * vertical * 2 * 3 * 2];
      int point = 0;
      int index = 0;
      for (int y = 0; y < vertical; ++y) {
      for (int x = 0; x < horizontal; ++x) {
      final int right = point + 1;
      final int down = point + width;
      final int downright = down + 1;
      faces[index++] = point;
      faces[index++] = point;
      faces[index++] = down;
      faces[index++] = down;
      faces[index++] = right;
      faces[index++] = right;
      faces[index++] = right;
      faces[index++] = right;
      faces[index++] = down;
      faces[index++] = down;
      faces[index++] = downright;
      faces[index++] = downright;
      ++point;
      ++point;
      return faces;
      private PhongMaterial getMaterial(final int width, final int height) {
      final PhongMaterial material = new PhongMaterial();
      material.setDiffuseMap(new WritableImage(width, height));
      return material;
      * SAMPLE MESH
      private static final NavigableMap<Float, Color> COLORS = new TreeMap<>();
      static {
      COLORS.put(0f, Color.BLACK);
      COLORS.put(30f, Color.BLUE);
      COLORS.put(60f, Color.GREEN);
      COLORS.put(90f, Color.YELLOW);
      COLORS.put(120f, Color.RED);
      COLORS.put(150f, Color.WHITE);
      private Color getColor(final float level) {
      return COLORS.floorEntry(level).getValue();
      private void fillValues(final PhongMaterial material, final float[] points, final int width, final int height) {
      final WritableImage image = (WritableImage) material.getDiffuseMap();
      final PixelWriter writer = image.getPixelWriter();
      int index = 2;
      for (int y = 0; y < height; ++y) {
      for (int x = 0; x < width; ++x) {
      final float z = ((float) (Math.cos(x / 20.) * Math.sin(y / 20.)) + 1) * 90;
      writer.setColor(x, y, getColor(z));
      points[index] = z;
      index += 3;
      * WINDOW AND SCENE SETUP
      private int a, i;
      private void go(final Stage stage, final int width, final int height) {
      final TriangleMesh mesh = new TriangleMesh();
      final MeshView view = new MeshView(mesh);
      final AnchorPane pane = new AnchorPane();
      final Scene scene = new Scene(pane);
      final ParallelCamera camera = new ParallelCamera();
      final PhongMaterial material = getMaterial(width, height);
      final float[] points = getPoints(width, height);
      fillValues(material, points, width, height);
      mesh.getPoints().addAll(points);
      mesh.getTexCoords().addAll(getTexCoords(width, height));
      mesh.getFaces().addAll(getFaces(width, height));
      view.setMouseTransparent(true);
      view.setCullFace(CullFace.NONE);
      view.setMaterial(material);
      AnchorPane.setLeftAnchor(view, 0d);
      AnchorPane.setRightAnchor(view, 0d);
      AnchorPane.setTopAnchor(view, 0d);
      AnchorPane.setBottomAnchor(view, 0d);
      pane.getChildren().addAll(camera, view);
      scene.setCamera(camera);
      stage.setScene(scene);
      stage.show();
      new Thread(() -> {
      try {
      camera.setRotationAxis(new Point3D(1, 1, 0));
      camera.setRotate(50);
      i = 1;
      for (;;) {
      Thread.sleep(50);
      Platform.runLater(() -> {
      a += i;
      if (a >= 80 || a <= -80) {
      i = -i;
      camera.setRotate(a);
      } catch (final InterruptedException e) {
      }).start();
      public void start(final Stage stage) {
      go(stage, 512, 768);
      public static void main(final String... a) {
      launch(a);

    The Scene constructor must activate the Z buffer via new Scene(pane,width,height,true); // last argument to true
    Please close this issue

  • Lightbox with video

    hello guys,
    i tryed to use this lightbox today in edge
    http://videobox-lb.sourceforge.net/
    and i got it working
    what i did:
    put this in the stages action on composition rdy:
    $("<script src='js/mootools.js'></script>").appendTo("#Stage" );
    $("<script src='js/swfobject.js'></script>").appendTo("#Stage");
    $("<script src='js/videobox.js'></script>").appendTo("#Stage" );
    $("<link rel='stylesheet' href='css/videobox.css' media='screen'/>").appendTo("#Stage" );
    and added this to a rect's action on mouse dwn:
    Videobox.open("your video page url","your caption","vidbox widht height");

    Hi, I cant seem to figure out what Im doing wrong here, should all be set up correctly... I think
    Hi,
    I just followed this thread, and from the comments, it should work. Doesnt seem too complicated at all.
    But I cant seem to get it to work, anyone might know what I am doing wrong?
    URL:
    http://dl.dropbox.com/u/2093612/videobox/Videobox.html
    ZIP:
    http://dl.dropbox.com/u/2093612/videobox/videobox.zip
    Thread:
    http://forums.adobe.com/message/4735490#4735490

Maybe you are looking for

  • Time Capsule is an excellent, albeit rather expensive, paperweight!

    A quick scan through the discussion pages shows that Time Capsule ain't much use. I have a broadband internet connection to which my iMac is attached by ethernet cable. It works fine. My iBook connects to the internet wirelessly and that works fine.

  • How to show result in bold text and zebra-printing

    Hi, I'm trying to create a ABAP class in SE24 defining the report-results in bold text. Looked around SDN, but not found the help I need. Plus need some help on how to print a report in "Zebra"-layout. I've already created a report with background co

  • Modification of Jtree at Runtime ...Forurth Posting on this Prb..Help me

    Hello ALL: I am developing a swing application.The initial JTree is populated using the Sql Query(JDBC) My application have a JPopupItem which has a item namely"Add". The ADD opens a Component Display Class in the SplitPane(ScrollPane is enabled).The

  • CALL 2 RFCS FROM ONE SYSTEM...

    One of my function module FUNCTION_Y on the system Y is calling a RFC FUNCTION_X to a system X. Once the call is over. it returns to the system Y data needed to generate a program, Function module FUNCTION_Y generates then the program within the one

  • Dummy Variables in SAP Sourcing

    Dear All, We have a unique requirement of creating some dummy variables so that the contract creator can enter the values manually during contract generation. Currently we have many areas in a contract where manual entries are required. Can we achiev