ROTATING A CUBE IN 3D SPACE

Hello,
I've created my first 3D cube in AE and I am trying to manipulate it in 3d space.
I've created a null object and made it the parent of all six faces.
Everything works fine, except for one thing.
When I change the value of the X-setting on my null object, the cube rotates vertically rather than horizontally.  That seems to be the opposite of what I would expect.
Any thoughts on that?
Here are two screen shots that illustrate my dilemma.
Thanks!  
Matt

Huh?  Things look just fine.  The x-axis is the one that runs from right to left in that comp. 
Hold a pen in front of you by your fingers, using both hands.  Using the tumb and forefinger of each hand, make the pen turn.  That's rotation on the x-axis... which is what your cube is doing.

Similar Messages

  • Help with rotating 3D cube

    Hello all:
    My question...
    Is in reference to the rotating 3D cube located at this site:
    http://www.kirupa.com/developer/actionscript/faces_depths.htm
    I'm interested in making a slight change to how it works and I'm
    hoping someone here can provide some guidance.
    I want to have 4 to 6 different video movie clips on the
    faces (that are also buttons which link to other pages) instead of
    the solid gray color. So, as the cube rotates different video clips
    will be visible (and clickable). Is this possible?
    Any help is greatly appreciated! -Yvonne

    Sorry to say, but I don't think you will be able to do that.
    I don't think that a video can be distorted in the ways that
    provide the illusion of depth. If I'm wrong I'd love to find out
    how!
    There may be some way with some pre-rendered images and the
    bitmap class or such in Flash 8, but it would be way beyond my
    understanding. (Well that and I haven't yet upgraded to Flash 8!)
    Good luck and let us know what you find out.

  • How do I place images in a rotatable divided cube using Java?

    Hello- I am creating a puzzle that is like the "Rubik's Cube,"
    although this puzzle is played on the computer monitor, and the puzzle
    involves images placed on the sides of a cube. The mouse is used to
    rotate the sides of the cube. Each side of the cube is divided into
    three sections.
    The code for the basic puzzle has been written by another person. The
    link to the puzzle created by this person (including links to the
    program files or source files) may be found at:
    http://www.geocities.com/jaapsch/puzzles/cubie.htm
    My goal is to create a puzzle (using Jaap's code or script) whereby I
    will be able to place one of my photographs on each side of the puzzle
    cube (6 different photos per cube). The goal is to rotate the sides so
    that the photos are put together correctly.
    I have been in contact via email with the puzzle's author, Jaap
    Scherphuis, and he emailed me that I can use his puzzle's code or
    script (whichever it is), and place my photos in the puzzle. In return,
    Jaap would like to get the code or script that is created. When I spoke
    with Jaap by email several months ago he told me he was too busy to
    help me at that time.
    So, I am looking for a person to help me create a situation whereby I
    will be able to include my photographs on the sides of the puzzle with
    the images divided on each side and rotatable.
    I am interested in learning how to write the code (or script) myself so
    I am able to include different photos.
    Please let me know if you might offer any assistance.
    Thank you,
    Jeff Klamer
    www.jeffklamerdesign.com
    p.s. Please see my photo galleries to enjoy some of the images I am working with.

    [url http://forum.java.sun.com/thread.jspa?threadID=776111&messageID=4418806#4418806]Crosspost.
    [url http://forum.java.sun.com/thread.jspa?threadID=776112&messageID=4418809#4418809]Another Crosspost.

  • How to estimate size of dimension & cube

    Hi,
    Is there any guideline avialable to estimate the space required for a dimension or for a cube? I mean if a dimension table is of 200GB, how much space I will be needing to create a dimension in analytic workspace?
    Also, when we refresh the dimension/cube, are used spaces freed and re-used?
    Thanks a lot in advance for your help.
    AKG

    You could try using the new 10g diagnostisc tuning advisor : ADDM
    In SQLPlus do the following:
    1) exec dbms_workload_repository.create_snapshot();
    2) run your AWM build
    3) exec dbms_workload_repository.create_snapshot();
    4) run the following script:
    set long 1000000
    set pagesize 50000
    column get_clob format a80
    spool tuning_report.txt
    select dbms_advisor.get_task_report(task_name, 'TEXT', 'ALL')
    as ADDM_report
    from dba_advisor_tasks
    where task_id=(
    select max(t.task_id)
    from dba_advisor_tasks t
    , dba_advisor_log l
    where t.task_id = l.task_id
    and t.advisor_name='ADDM'
    and l.status= 'COMPLETED');
    spool off
    this will generate something like the following:
    FINDING 1: 100% impact (343 seconds)
    Significant virtual memory paging was detected on the host operating system.
    RECOMMENDATION 1: Host Configuration, 100% benefit (343 seconds)
    ACTION: Host operating system was experiencing significant paging but no
    particular root cause could be detected. Investigate processes that
    do not belong to this instance running on the host that are consuming
    significant amount of virtual memory. Also consider adding more
    physical memory to the host.
    RECOMMENDATION 2: DB Configuration, 100% benefit (343 seconds)
    ACTION: Total PGA memory used was above the specified
    "pga_aggregate_target" value for 26% of the time. Consider increasing
    your current "pga_aggregate_target". Note that the sum of
    "pga_aggregate_target" and SGA size should be less than the physical
    memory available on the host.
    RATIONALE: The value of parameter "pga_aggregate_target" was "107 M"
    during the analysis period.
    These are a good starting point before turning the Oracle database tuning guide.
    Hope this helps
    Keith Laker
    Data Warehouse Solution Architect
    Oracle EMEA Consulting
    BI Blog : http://oraclebi.blogspot.com
    DM Blog : http://oracledmt.blogspot.com

  • Rotating Item: Need help with perspective (skewing)

    It would be easiest for me to explain what I've trying to do by posting this link:
    http://img4.imageshack.us/img4/366/vwallpaper.gif
    I can create an SWF that rotates a vector-based logo, but it stays the same height.  See how this graphic imitates perspective by making the one side grow smaller and the opposite side grow larger?  Is there a way to do this with a symbol in Flash?  When I use Free Transform on a movie clip or symbol, it doesn't work.  Motion Tweens can only be used on movie clips and symbols, of course.
    I can created this effect in After Effects, but the SWF that's exported is composed of rasterized images.
    Any ideas?

    If you have CS4, you can simply rotate the object in 3D space:
    http://www.adobe.com/devnet/flash/articles/3d_support.html

  • Can You Change 3D Object Rotation Axis?

    Greetings. I have created a 3d object using repousse in Photoshop (CS5 extended). The original 2d image was created in Illustrator. I have found that in both Photoshop and After Effects, when I rotate this object in 3D space, either rotating the object itself or the camera, that the axis upon which it rotates is not the 3D center of the 3D object, but rather somewhere behind it. The result is that it is rotating like the moon rotates around the earth, rather than rotating in place, like an eye moving (rotating) in an eye socket; i want the eye ball to stay in one place, but see the pupil move up and down and all around like a real eye would.
    I have had no luck changing anchor points or positions of the object, even though I do have the X, Y, Z coordinates to manipulate.
    Can you tell me how to adjust this anchor point, or rotation axis point, or whatever this would be called?
    Thanks.

    Not really true...
    Yes it is limited but it can be altered.
    I believe that photoshops 3d center point is based on the world center and not the objects center. This means that it is possibloe to move the object to the world center to fix the rotation of your object.
    Open window>3d panel and just below the layers in that panel are some icon at the left side of the panel. Third icon down is the mesh tool, hold down the mouse button to bring up the pop up menu. Select the slide mesh tool. This will let you move the mesh adjust the pivot point.
    The problem that I see with this, is that it is trial by error, I do not see away to visually see where the world center is.
    Scratch that, at the bottom of the panel are three icons. The left of the three will turn on the ground plane. The plane does show world center.(where the red and green lines intersect is world zero)
    To understand which axis is which, sinse it does not specify.  Select the 3d pan tool, then in the top tool bar, type in a value one axis at a time to see which direction the object is moving. Then repeat the process for the rotate tool and see how the object rotates around each axis.

  • Regarding transfering the data into different cubes

    Hi all,
    The relation between infosource and cube is one to many.So by applying update rules we can transfer the the data from infosource to different cubes.So please explain a scenario where in same data is stored in different cubes
    thanks in advance
    regards
    karna

    Hi
    First you wont get any scenario where you have to store the same data in different cubes. There is no point of storing same data in multiple cubes(Wasting DB space) . The one to many scenario could be applied as USERPV said, you have data from a single source system  which contains multiple country sales info. Now you want to divide this data based on countries and store in respective cubes, you have to write ABAP code in transfer rule to do this. You can report individual cubes or you can  report on all cubes once using multiprovider.
    Hope this will clear your doubt.
    regards
    vin

  • Producing cubes in high view point with PRC

    Hello,
    I'm a latex user and I also use the Asymptote external program to make my 3d solids. I can produce pdf files using PRC features : I can move my solids by turning, rotating them ...
    I'd like to use high view point representation for my solids in my pdf files: lines which are behind and represented with dotted lines. If I rotate my cube, lines which were behind are now in front of the picture and must be represented with continuous line and inversely. Is it possible to have it done automatically by PRC ? I don't know how.
    Maybe such a feature is not available with PRC.

    I think the topic poster wants hidden lines of the object be represented by dotted lines, while the visible ones are solid. This seems to be a question of the render mode in which the object is drawn by the Reader.
    He might try the render modes that Reader offers and see if one of them suits his needs (`TransparentWireframe' seems to come closest), either by setting them trough the `3Drender' option of \includemovie in the LaTeX source, or by selecting them through the context menu of the 3D area in the Reader.
    Alexander

  • Having trouble with multiple rotations around an objects poles

    Hey all, i am new to java 3d (only started coding today) but i have been coding in Java for a while..
    I am having a problem understanding how to perform the rotations i want to. I have read the majority of the literature i can find on performing these kinds of rotations. I realise that i need to have correctly linked nodes in the graph so that i am rotating around the correct points and i think i have accomplished this. However, i cannot get the system to rotate around the objects poles. To clarify, i can get the object to rotate around one of its poles (x , y, z) in some cases but trying to do multiple rotations causes problems.
    import javax.media.j3d.Appearance;
    import javax.media.j3d.BranchGroup;
    import javax.media.j3d.ColoringAttributes;
    import javax.media.j3d.PolygonAttributes;
    import javax.media.j3d.Transform3D;
    import javax.media.j3d.TransformGroup;
    import javax.vecmath.Color3f;
    import javax.vecmath.Vector3f;
    import com.sun.j3d.utils.geometry.ColorCube;
    import com.sun.j3d.utils.geometry.Cylinder;
    import com.sun.j3d.utils.universe.SimpleUniverse;
    public class TestRotation
         private TransformGroup objectTranslateGroup, objectRotationGroup;
         private Transform3D translate = new Transform3D(); private Transform3D  rotX = new Transform3D();
    private Transform3D rotY = new Transform3D()
    private Transform3D rotZ = new Transform3D();
         private double rotationX, rotationY, rotationZ, newRot = 10;
         private SimpleUniverse u;
         public TestRotation()
              // Create the root of the branch graph
              BranchGroup objRoot = new BranchGroup();
              rotationX = 0; //init rotations
              rotationY = 0;
              rotationZ = 0;
              ColorCube cube = new ColorCube(0.25f);
              Appearance x = new Appearance();
              Appearance y = new Appearance();
              Appearance z = new Appearance();
              x.setColoringAttributes(new ColoringAttributes(new Color3f(1,0,0),ColoringAttributes.SHADE_GOURAUD));
              y.setColoringAttributes(new ColoringAttributes(new Color3f(0,1,0),ColoringAttributes.SHADE_GOURAUD));
              z.setColoringAttributes(new ColoringAttributes(new Color3f(0,0,1),ColoringAttributes.SHADE_GOURAUD));
              Cylinder poleX = new Cylinder(0.02f, .75f, x); //RED
              Cylinder poleY = new Cylinder(0.02f, .75f, y); //BLUE
              Cylinder poleZ = new Cylinder(0.02f, .75f, z); //GREEN
              Transform3D poleXTransform = new Transform3D();
              Transform3D poleYTransform = new Transform3D();
              Transform3D poleZTransform = new Transform3D();
              poleXTransform.rotZ(Math.toRadians(90));
              poleZTransform.rotX(Math.toRadians(90));
              TransformGroup poleXTransformGroup = new TransformGroup(poleXTransform);
              TransformGroup poleYTransformGroup = new TransformGroup(poleYTransform);
              TransformGroup poleZTransformGroup = new TransformGroup(poleZTransform);
              poleXTransformGroup.addChild(poleX);
              poleYTransformGroup.addChild(poleY);
              poleZTransformGroup.addChild(poleZ);
              translate = new Transform3D();
              translate.setTranslation(new Vector3f(0,0,0)); //init position
              rotX.rotX(Math.toRadians(rotationX));
              rotY.rotY(Math.toRadians(rotationY));
              rotZ.rotZ(Math.toRadians(rotationZ));
              objectTranslateGroup = new TransformGroup();
              objectTranslateGroup.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
              objectRotationGroup = new TransformGroup();
              objectRotationGroup.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
              objectRotationGroup.addChild(cube); //add the object to the rotation group
              objectRotationGroup.addChild(poleXTransformGroup); //add the object to the rotation group
              objectRotationGroup.addChild(poleYTransformGroup); //add the object to the rotation group
              objectRotationGroup.addChild(poleZTransformGroup); //add the object to the rotation group
              objectTranslateGroup.addChild(objectRotationGroup); //add the rot group to translate group
              objRoot.addChild(objectTranslateGroup); //add to root
              u = new SimpleUniverse();
              u.getViewingPlatform().setNominalViewingTransform();
              u.addBranchGraph(objRoot);
              this.begin();
         private void begin()
              while(true)
                   //rotationX += newRot; //rotate slightly
                   rotationY += newRot;
                   rotationX += 0; //rotate slightly
                   //rotationY += 0;
                   rotX.rotX(Math.toRadians(rotationX));
                   rotY.rotY(Math.toRadians(rotationY));
                   rotZ.rotZ(Math.toRadians(rotationZ));
                   rotY.mul(rotX); //multiply rotations
                   rotZ.mul(rotY);
                   objectRotationGroup.setTransform(rotZ); //update
                   try {
                        Thread.sleep(300);
                   } catch (InterruptedException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              new TestRotation();
    }As you can see the code is a full class so you can copy and paste it to run it... In the 'begin' method you will notice the variables that update the rotation, currently when the cube rotates on the y axis the cube is rotating around the viewers Y axis and not around the objects y pole. However, if you change the values so the cube is set to rotate around the X axis then it will treat the x axis as the objects x pole and not the viewers x axis. I presume this is because of the multiplication of the matrices.
    What i want to know is how can i set it so that if i say rotate around the y axis it rotates the cube around its y axis (as in the y pole) regardless of where the y pole is. Not only that but i need to be able to rotate around multiple axis ensuring that it is rotating around the objects poles correctly.
    The reason for this is that the object will be turned into an auv (underwater vehicle) fitted with thrusters which are going to turn the vehicle so no matter how the vehicle is positioned (facing up, upside down etc) the thruster always rotate around the same axis on the block.
    Hope this makes sense, sorry for the long post!!
    edd
    Message was edited by:
    edwardr

    Since the 2-Wire gateway is providing both modem and DHCP services, you would want to insure that the Time Capsule is not also configured to provide DHCP services as well.  If this were the case, that would mean two routers are trying to do the same thing on the same network. You only want one device on a network performing as a router.
    The reason for this is that a two router setup is likey to create IP address conflicts on the network, which likely may be your issue.
    To check, open Macintosh HD > Applications > Utiltiies > AirPort Utility
    Click on the Time Capsule icon, then click Edit
    Click the Network tab at the top of the next window
    Insure that the setting for Router Mode is set to Off (Bridge Mode)
    Click Update to save the correct setting
    Then power cycle the entire network by powering off all devices in any order that you want
    Wait a minute
    Start the 2-Wire gateway first and let it run a minute by itself
    Start the Time Capsule next the same way
    Continue starting devices the same way until everything is powered back up.
    Power off the entire network...all devices...and wait a minute

  • Question re: 3D object rotation in Photoshop CS5.5

    So I've searched the forums and the web and I can't find a solution to my problem. I created a simple shape in Photoshop I then edited the shape using the Repoussé dialog. I simply extruded the object. The defualt extrusion depth setting of 1.0 was far too deep for my needs so I chaged the depth to 0.07. It looked good. Next I wanted to animate my simple hexagon shape rotating about it's z axis. So using the animation pallet, I set a key frame for 3D object position at zero and then I advanced the timeline to 3 seconds. With the roll 3D object tool selected, I edited the z axis orientation in the tool bar from 0 degrees to 360 degrees at the 3 second mark. I then played my animation and while the object spinned about the z axis, the position of the z axis was in the wrong place. the z axis was still aligned with the center of my extruded object if the depth had been set to the original depth of 1.0.
    End result is it looks like my shallow depth hexagon is rotating about a point in space rather than rotating about the center of the object. Is there a way to reposition the axis so the center will be the center of the depth of my extruded object? In shots 1 and 2 you see the object with the correct depth but the wrong z axis location. In shots 3 and 4 the object has the wrong depth but roates properly.

    That doesn't seem to be working for me. It seems like there should be a way to snap the coordiantes to the midpoint of the 3d object in 3d sapce. Basically, I want the pivot point to be in the center of the extruded depth not a point behind the object.
    I brought my extruded 3d shape into After Effects thinking I might have better animation controls in there but the object seems to just get flattened into a 2d shape. In other words I loose the extruded depth.

  • Rotating an 3D extrusion a certain number of degrees?

    Hello,
    I'm trying to figure out how to rotate an extrusion a specific number of degrees. I can easily do it with Isometric views and the preprogrammed Off-Axis views. However, I just chose a random rotation.
    In the example below, I made some stairs. Getting them to go in the opposite direction is easy - I just mirror the profile. However, I can't figure out how to properly rotate the stairs 90 degrees.
    Does anyone know how to calculate these? I'm sure there's a way, but my brain can't get over it. I'm used to working in 3D modelling software where you can rotate based off a relative plane, not the fixed plane that Illustrator uses.  I've searched everywhere and can't seem to find this specific answer.
    Thanks for any help,
    Tien

    I just chose a random rotation.
    And that's the problem. In order to make sense out of this poorly-designed feature, you need to proceed in such a way as to keep a mental track of where you started and how you got to the orientation you decide upon.
    This is because the three value fields do not reflect the rotations about the proxy cube's axes, which highlight with seemingly corresponding colors when you mouseover them (which would be far more intuitive and useful). Instead, they reflect the orientation of the invisible "virtual trackball" in which the proxy cube resides. So unless you can do trigonometry in your head as you drag things, the values are pretty much useless. Just yet another example of Illustrator's invariably unintuitive interface design.
    Here is an example of how to proceed. It is not the only way for your example, but one way:
    Before even starting with 3D Effect, I've reflected a copy of the blue staircase cross-section and colored it red. Then I grouped the two so as to manipulate them at once. Upon invoking the 3D Effect>Extrude & Bevel dialog, I set the dialog to Front, effectively zeroing the three values. In this orientation, the Z axis (extrusion depth) is along your line of sight.
    Turn on the Preview checkbox. Click the cursor in the red value field, then tap the up/down arrow keys to increment the tilt of the "virtual trackball" to get the desired bird's-eye (or worm's-eye) elevation.
    Mouseover the vertical axis of the proxy cube, so that it highlights green. Press and hold Shift. Tediously drag rightward until it looks like you have rotated the cube 45°. This is where you begin to encouter the hideous interface. Note that the value shown for the meaninglessly green icon is not 45°. You have to "eyeball" having arrived at the rotation that shows the left and right faces equally.
    Okay the dialog. Copy the Group and Paste In Front. I've selected (white pointer) the pasted copies of the profiles and re-colored them just to differentiate them from the original pair.
    Open the Appearance palette. DoubleClick the 3D Effect that is already applied to the copied Group. Its dialog opens with the same settings that you have already applied. Mouseover the rightmost vertical green axis of the cube and ShiftDrag it leftward until--again, eyeballing it--you have rotated it 90°. Note that the value shown for the stupidly green-colored icon now shows +40. Again, this is because the value shown is reflective of the axes of the "virtual trackball", not of the cube's axes. Clearly the difference between -40° and +40° is 80°, not 90°. But if you rotate the cube to a numerical difference of 90°, it will quite obviously not be a rotation of 90° about the vertical axes of the cube.
    Note also that while you've done this, the blue value has changed. That's the value that the design of the interface suggests is supposed to correspond to rotation about your line of sight. And in fact, if you drag that outer ring, all it does is rotate the whole illustration, as if you were spinning the drawing board. But again, it is showing a rotated value, even though the cube does not appear to have been rotated in that way (i.e.; the green cube axes have remained vertical throughout). Again, this is because the values shown correspond to the useless "virtual trackball," rather than what you're actually interested in.
    You can, by the way, directly manipulate the "virtual trackball" thusly: Mousedown in the black region outside the cube. Press and hold Shift. Drag up/down, left/right.
    Typically hideous Illustrator interface design.
    JET

  • Rotating in all three directions

    I compiled the Java 3D examples.
    They are really great!
    Now I am trying some experiments with them and try to alter them.
    The code HelloJava3Dd.java rotates a cube in 3D.
    But only around the Y-Axis.
    What do I have to do to rotate it around the X-Axis as well?
    Alpha seems to be for the timing and RotationInterpolator seems to have no parameter for the rotationaxis.
    How can I rotate around X anyhow?
         Transform3D yAxis = new Transform3D();
         Alpha rotationAlpha = new Alpha(-1, 4000);
         RotationInterpolator rotator =
             new RotationInterpolator(rotationAlpha, objSpin, yAxis,
                             0.0f, (float) Math.PI*2.0f);

    I couldn't attach two interpolators to the same Spinobject.
    The cube would only rotate around the Y-Axis as before, but now it is changing the colours of the sides sometimes.
    But my code with two Transformgroups and two Cubes works fine:
    objSpin.addChild(new ColorCube(0.4));
    objSpin1.addChild(new ColorCube(0.39));
    Transform3D yAxis = new Transform3D();
    Transform3D xAxis = new Transform3D();
    Alpha rotationAlpha = new Alpha(-1, 4000);
    Alpha rotationBeta = new Alpha(-1, 4000);
    RotationInterpolator rotator =
        new RotationInterpolator(rotationAlpha, objSpin, yAxis,
                                   0.0f, (float) Math.PI*2.0f);
    RotationInterpolator rotator1 =
        new RotationInterpolator(rotationBeta, objSpin1, xAxis,
                        0.0f, (float) Math.PI*3.5f);
    BoundingSphere bounds = new BoundingSphere();
    rotator.setSchedulingBounds(bounds);
    rotator1.setSchedulingBounds(bounds);
    objSpin.addChild(rotator);
    objSpin.addChild(rotator1);Edited by: EricFalbe on Nov 8, 2008 7:52 PM

  • Rotating with keyboard

    Hi all,
    i'm new to Java 3D, and i've seen several examples of rotating a cube using the mouse (with the MouseRotate object). The thing is that i want to rotate a cube using the keyboard...
    Does anyone knows of an example (source code) where i can see a rotation made using keyboard control?
    I've tried writing a KeyListener object, and on my KeyListener i tried to rotate using the methods rotX() and rotY(); but it didn't work exactly how i wanted. When i write:
    rotX(...);
    rotY(...);
    only the rotY(...) makes effect; and when i write:
    rotY(...);
    rotX(...);
    only the rotX makes effect. But i want to rotate both at the same time.
    Well,
    i appreciate any help,
    Thanks,
    Vic.

    Could not find any solution in the forum so I am posting mine. I simply generate mouse events that simulate specific mouse behavior. These events are dispatched to the 3d canvas.
        final int DELTA = 4;
        public void rotateX(boolean clockWise) {
            // Drag with left button down
            generateMouseDragEvent(clockWise ? DELTA : -DELTA, 0, MouseEvent.BUTTON1);
        public void rotateY(boolean clockWise) {
            // Drag with left button down
            generateMouseDragEvent(0, clockWise ? DELTA : -DELTA, MouseEvent.BUTTON1);
        public void zoom(boolean zoomIn) {
            // Drag with mouse wheel button down
            generateMouseDragEvent(0, zoomIn ? DELTA : -DELTA, MouseEvent.MOUSE_WHEEL);
        private void generateMouseDragEvent(int dx, int dy, int modifiers) {
            final int X = 100;
            final int Y = 100;
            canvas3D.dispatchEvent(new MouseEvent(
                    canvas3D,
                    MouseEvent.MOUSE_PRESSED,
                    System.currentTimeMillis(),
                    modifiers,
                    X,
                    Y,
                    1,
                    false));
            canvas3D.dispatchEvent(new MouseEvent(
                    canvas3D,
                    MouseEvent.MOUSE_DRAGGED,
                    System.currentTimeMillis(),
                    modifiers,
                    X + dx,
                    Y + dy,
                    1,
                    false));
            canvas3D.dispatchEvent(new MouseEvent(
                    canvas3D,
                    MouseEvent.MOUSE_RELEASED,
                    System.currentTimeMillis(),
                    modifiers,
                    X + dx,
                    Y + dy,
                    1,
                    false));
        }

  • Pixel Bender Gallery Error in Photoshop CS4 Student Edition

    When trying to access pixel bender filters with Photoshop CS4, filters>Pixel Bender>Pixel Bender Gallery, I get an Error dialog images as follows...
    I have read the ReadMe file and have the GeForce 8500 GT Video Card on this list.
    The Pixel Bender Toolkit is installed at C:\Program Files\Adobe\Adobe Utilities\Pixel Bender Toolkit c/w pbk filters that run in the toolkit.
    In Photoshop there are a number of pbk filters in C:\Program Files\Adobe\Adobe Photoshop CS4\Pixel Bender Files.
    The Operating system for the computer is Windows XP Professional c/w service pack 2 at least.
    My question is... why am I getting this error message and how can It be fixed?

    Here are two further images and an NVIDIA System Information report you asked for that I have prepared, I hope this will help.
    I am aware that I could download trial versions of Photoshop CS5 and its Pixel plugin version, but first, this first image shows a message that loads from Photoshop CS4 when I start the program and has always done so from day one of owning the machine and the software, could this be of relevence to what could be the root of the issue at hand.
    I also use 3D Studio Max with OpenGL and have noted rotating moving objects in 3D space of a file size of 10MB is very slow and chuggie, is this relevent, does this information give any clues.
    Thankyou again for your time and effort in helping me resolve Pixel Bender Gallery Error issue.
    NVIDIA System Information report created on: 31/06/2011 00:50:53
    System name: Not provided.
    [Display]
    Operating System:    Microsoft Windows XP, 32-bit (Service Pack 3)
    DirectX version:    9.0
    GPU processor:        GeForce 8500 GT
    Driver version:        275.33
    DirectX support:    10
    CUDA Cores:        16
    Core clock:        459 MHz
    Shader clock:        918 MHz
    Memory clock:        400 MHz (800 MHz data rate)
    Memory interface:    128-bit
    Memory:            512 MB
    Memory type:        DDR2
    Video BIOS version:    60.86.34.00.13
    IRQ:            18
    Bus:            PCI Express x16
    [Components]
    easyUpdatusAPIU.DLL        1.3.5.0        NVIDIA Update Components
    WLMerger.exe        1.3.5.0        NVIDIA Update Components
    Nvlhr.exe        1.3.5.0        NVIDIA Update Components
    daemonu.exe        1.3.5.0        NVIDIA Update Components
    ComUpdatusPS.dll        1.3.5.0        NVIDIA Update Components
    ComUpdatus.exe        1.3.5.0        NVIDIA Update Components
    NvUpdtr.dll        1.3.5.0        NVIDIA Update Components
    NvUpdt.dll        1.3.5.0        NVIDIA Update Components
    NVCPL.DLL        6.14.12.7533        NVIDIA Compatible Windows 2000 Display driver, Version 275.33
    nvCplUIR.dll        2.8.254.08        NVIDIA Control Panel
    nvCplUI.exe        3.7.730.01        NVIDIA Control Panel
    nvWSSR.dll        6.14.11.9562        NVIDIA Workstation Server
    nvWSS.dll        6.14.12.7533        NVIDIA Workstation Server
    nvViTvSR.dll        6.14.11.9562        NVIDIA Video Server
    nvViTvS.dll        6.14.12.7533        NVIDIA Video Server
    nvMoblSR.dll        6.14.11.9562        NVIDIA Mobile Server
    nvMoblS.dll        6.14.12.7533        NVIDIA Mobile Server
    nvDispSR.dll        6.14.11.9562        NVIDIA Display Server
    NVMCTRAY.DLL        6.14.12.7533        NVIDIA Media Center Library
    NVOGLNT.DLL        6.14.12.7533        NVIDIA Compatible OpenGL ICD
    nvDispS.dll        6.14.12.7533        NVIDIA Display Server
    NV4_MINI.SYS        6.14.12.7533        NVIDIA Windows XP Miniport Driver, Version 275.33
    NV4_DISP.DLL        6.14.12.7533        NVIDIA Windows XP Display driver, Version 275.33
    PhysX        09.10.0514        NVIDIA PhysX
    NVCUDA.DLL        6.14.12.7533        NVIDIA CUDA 4.0.1 driver
    nvGameSR.dll        6.14.11.9562        NVIDIA 3D Settings Server
    nvGameS.dll        6.14.12.7533        NVIDIA 3D Settings Server

  • Displays on mac but not on PC

    I'm making my on geometry with a TriangeleStripArray. It displays on a mac (osX.3.9) but not on any of the PC's I have tried it on. I get the canvas but not 3dObjects.
    when I try to use the left mousedown to rotate (the image that isn't there on a PC) I get amessage saying:
    "wgl CreateContext failed, pixel format is invalid"
    I don't know if this is related.
    The code looks like this:
    import java.applet.Applet;
    import java.awt.*;
    import com.sun.j3d.utils.applet.MainFrame;
    import com.sun.j3d.utils.universe.*;
    import com.sun.j3d.utils.geometry.*;
    import com.sun.j3d.utils.behaviors.mouse.MouseRotate;
    import com.sun.j3d.utils.behaviors.mouse.MouseZoom;
    import javax.media.j3d.*;
    import javax.vecmath.*;
    import org.omg.IOP.TAG_ALTERNATE_IIOP_ADDRESS;
    public class Simple extends Applet{
        public Simple() {
            //set the layout manager for the applet
            setLayout(new BorderLayout());
            //looks at your graphics hardware and cooks up a suitable config
            GraphicsConfiguration config = SimpleUniverse.getPreferredConfiguration();
            //Canvas3D is a heavyweight component
            Canvas3D canvas3d = new Canvas3D(config);
            //add it to this Applet
            add("Center", canvas3d);
            //create the content branch group using the method createSceneGraph() below
            BranchGroup scene = createSceneGraph();
            //compile
            //this could also be done in createSceneGraph()
            scene.compile();
            //create a SimpleUniverse class referencing canvas3d
            SimpleUniverse sU = new SimpleUniverse(canvas3d);
            //the view platform starts out at the orgin
            //but our cube is also centred at the origin
            //this moves the view platform back a bit so we can see the cube
            sU.getViewingPlatform().setNominalViewingTransform();
            //attaches the BranchGroup to the Locale object
            sU.addBranchGraph(scene);
            sU.getViewingPlatform().setNominalViewingTransform();
        }//end of Simple (constructor)
        public BranchGroup createSceneGraph(){
            BranchGroup objRoot = new BranchGroup();
            //set Color Attributes
            ColoringAttributes myCA = new ColoringAttributes();
            myCA.setColor( 0.0f, 0.0f, 1.0f  );
            myCA.setShadeModel( ColoringAttributes.SHADE_GOURAUD );
            //set aup appearance
            Appearance myApp = new Appearance();
            myApp.setColoringAttributes( myCA );
            //create a transform group to rotate the cube
            TransformGroup objRotate = new TransformGroup();
            objRotate.setCapability( TransformGroup.ALLOW_TRANSFORM_WRITE );
            objRotate.setCapability( TransformGroup.ALLOW_TRANSFORM_READ );
            //attach the transform group and then the cube
            objRoot.addChild( objRotate );
            //create the new shape  for the scene
            objRotate.addChild( new Shape3D( getTSA(), myApp ) );//, myApp
            //objRotate.addChild( new ColorCube(0.4) );
            //Mouse rotate stuff, cloick the right mouse and drag
            MouseRotate mR = new MouseRotate();
            mR.setTransformGroup(objRotate);
            mR.setSchedulingBounds(new BoundingSphere());
            objRoot.addChild(mR);
            //MouseZoom is a scaling activated by
            //middle clicking and dragging the mouse
            MouseZoom mZ = new MouseZoom();
            mZ.setTransformGroup(objRotate);
            mZ.setSchedulingBounds(new BoundingSphere());
            objRoot.addChild(mZ);
            objRoot.compile();
            return objRoot;
        }//end of createSceneGraph method of Simple
        public TriangleStripArray getTSA() {
           float factorOf =  0.15f;
           int [] stripLengths = new int [2];
           stripLengths[0] = 8;
           stripLengths[1] = 8;
           Point3f[] pts = new Point3f[16];
           pts[0] = new Point3f( -5.0f, 4.0f, 0.0f );
           pts[1] = new Point3f( -5.0f, 0.0f,  0.0f );
           pts[2] = new Point3f( -2.0f, 4.0f, 0.0f );
           pts[3] = new Point3f( -2.0f, 0.0f, 0.0f );
           pts[4] = new Point3f( 1.0f, 4.0f,  0.0f );
           pts[5] = new Point3f( 1.0f, 0.0f,  0.0f );
           pts[6] = new Point3f( 4.0f, 4.0f,  0.0f );
           pts[7] = new Point3f( 4.0f, 0.0f,  0.0f );
           //second strip
           pts[8] = new Point3f( -5.0f, 8.0f,  1.0f );
           pts[9] = new Point3f( -5.0f, 4.0f,  1.0f );
           pts[10] = new Point3f( -2.0f, 8.0f, 1.0f );
           pts[11] = new Point3f( -2.0f, 4.0f, 1.0f );
           pts[12] = new Point3f( 1.0f, 8.0f,  1.0f );
           pts[13] = new Point3f( 1.0f,  4.0f, 1.0f );
           pts[14] = new Point3f( 4.0f, 8.0f,  1.0f );
           pts[15] = new Point3f( 4.0f, 4.0f,  1.0f );
           //scale all points to suit
           for(int i = 0; i < 16; i ++)
               pts.scale(0.009f);
    TriangleStripArray myTSA = new TriangleStripArray( 16, GeometryArray.COORDINATES | GeometryArray.NORMALS, stripLengths );
    myTSA.setCoordinates( 0, pts );
    return myTSA;
    public static void main(String[] args){
    String[] title = {"3dJava test"};
    Frame frame = new MainFrame( new Simple(), title, 600, 400 );
    Frame f = new Frame(GraphicsConfiguration gc);
    Rectangle bounds = gc.getBounds();
    f.setLocation(10 + bounds.x, 10 + bounds.y);
    }//end of main method of Simple
    regards
    Richard

    Found the answer to this one myself.
    Load the most recent version 1.3.2 of java 3D and everything is sweet.
    The version available on Sun (1.3.1) has problems with some recent device drivers

Maybe you are looking for