3D Fountain trail to avoid the Cursor

Hello!
I just started doing somethings with 3D,I would like to know
how can make the trail of the fountain that can be generated with
the code I'm going to show can avoid the cursor.
on beginSprite me
sprite(me.spriteNum).member.resetWorld()
-- create particle system
myPartRes = sprite(me.spriteNum).member.newModelResource("My
Particle Resource",#particle)
-- range of speeds
myPartRes.emitter.minSpeed = 20
myPartRes.emitter.maxSpeed = 80
-- just enough particles to make it look like smoke
myPartRes.emitter.numParticles = 5000
-- narrow stream, straight up
myPartRes.emitter.angle = 15
myPartRes.emitter.direction = vector(0,1,0)
-- live about long enough to get off the screen
myPartRes.lifetime = 10000
-- start full blend, then fade
myPartRes.blendRange.start = 100
myPartRes.blendRange.end = 0
-- wind to blow the smoke away
myPartRes.wind = vector(15,0,0)
myPartRes.drag = 5
-- place particle system
myPartSys = sprite(me.spriteNum).member.newModel("My
Particle System",myPartRes)
end
I guess it has something to do with the _mouse.mouseLoc and
the vector on the --wind to blow the smoke away -- line, but I
cannot figure it out, mouseLoc return a 2 point coordinate
position, and the vector uses 3.
Maybe my quetion is naive or basic, but I just need a hint or
some advice to start doing things by myself.
thanks in advance.

Please see my reply to this cross-post at
http://director-online.com/forums/read.php?3,20757

Similar Messages

  • Please reply:how to avoid extra trailing spaces while using cursor sharing

    i am using cursor sharing with FORCE or SIMILAR.
    what is the solution to avoid extra trailing spaces without any java code change.
    do we have any option in oracle to avoid extra trailing spaces during the query processing ?
    I am using Oracle 10g
    CURSOR SHARING is a feature in which multiple sql statements
    which are same will have a shared cursor (in the library cache) for an oracle session,
    i.e, the first three steps of the sql processing (hard parse, soft parse, optimization)
    will be done only the first time that kind of statement is executed.
    There are two ways in which similar SQL statements with different condition values can be made to "SHARE" cursor during execution:
    1. Writing SQLs with Bind Variables: SQLs having no hard coded literals in them
    For e.g., the query below
    SELECT node.emp_name AS configid
    FROM emp node
    WHERE emp_no = :1
    AND dept_no =
    DECODE (SUBSTR (:2, 1, 3),
    :3, :4,
    (SELECT MAX (dept_no)
    FROM emp
    WHERE emp_no = :5 AND dept_no <= :6)
    AND node.dept_type = :7
    ORDER BY node.emp_name
    Here all the variables are dynamically bound during the execution. The ":X" represents BIND Variable and the actual values are bound to the SQL only at the 4th step of the execution of the SQL.
    In applications: The queries written with "?" as bind variables will be converted into ":X" and are sqls with Bind Variables.
    2. The CURSOR_SHARING parameter: Only Useful for SQL statements containing literals:
    For eg., the query below:
    SELECT node.emp_name AS configid
    FROM emp node
    WHERE emp_no = 'H200'
    AND dept_no =
    DECODE (SUBSTR (:1, 1, 3),
    'PLN', :2,
    (SELECT MAX (dept_no)
    FROM emp
    WHERE emp_no = :3 AND dept_no <= :4)
    AND node.dept_type = :5
    ORDER BY node.emp_name
    In the query above, there are two hard coded literals H200 , PLN. In this case when the same SQL executed with different values like (H2003 , PLN), oracle will create a new cursor for this statement and all the first three steps ( hard & soft parse and optimization plan) needs to be done again.
    This can be avoided by changing the CURSOR_SHARING parameter which can be set to any of three values:
    1. EXACT: Causes the mechanism not be used, i.e. no cursor sharing for statements with different literals. This is the default value.
    2. FORCE: Causes unconditional sharing of SQL statements that only differ in literals.
    3. SIMILAR: Causes cursor sharing to take place when this is known not to have any impact on optimization.
    So, FORCE and SIMILAR values of the parameter will be helping in cursor sharing and improve the performance of the SQLs having literals.
    But here the problem arises if we use the FORCE and SIMILAR other than EXACT.
    alter session set cursor_sharing ='EXACT'
    select 1 from dual;
    '1'
    1
    alter session set curson_sharing='FORCE'
    select 2 from dual;
    '2'
    2
    alter session set curson_sharing='SIMILAR'
    select 3 from dual;
    '3'
    3
    So, this will give extra trailing spaces in when we retrieve from java method and any
    further java processing based on the hardcoded literal values will fail. this needs lot of
    effort in remodifying the existing millions of lines of code.
    My question is i have to use cursor sharing with FORCE or SIMILAR and can't we do the trimming
    from the oracle query processing level ?
    please help me on this ?
    Message was edited by:
    Leeladhar
    Message was edited by:
    Leeladhar

    Please reply to this thread
    How to avoid extr trailing spaces using Cursor sharing opton FORCE, SIMILAR

  • How to avoid the hand cursor on non navigating charts

    I have a requirement from the user to avoid the hand cursor when the charts are non navigating.
    Is there any way to avoid the hand cursor.?
    When we move the mouse over the bar chart, the pointer cursor gets changed to hand cursor. But there is no navigation in the charts that i'm showing.
    The presence of hand cursor in bar charts creates confusion to the end user when there is no navigation in charts.
    It always misleads end users and they ask if the chart is complete or not since there is no navigation.
    So i would like to avoid it, but how can i avoid it.??

    Try
    http://www.vivaorange.com/ImageZoom/
    You need not use the zoom code, you could replace it by something else

  • My computer is infected with something...the cursor is going crazy.  i bought apple to avoid infections and now you want to charge me to get rid of the malware? i paid for protection when i bought the computer. shame on Apple.

    my computer is infected with ?malware and it makes the cursor goes crazy. apple support wants to charge me to fix this.
    paid more for the apple laptop because it had built in protection. not fair.  shame on Apple.  can anyone help?

    Please read this whole message before doing anything. This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it. Step 1 The purpose of this step is to determine whether the problem is localized to your user account. Enable guest logins* and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up guest users” (without the quotes) in the search box. Don't use the Safari-only “Guest User” login created by “Find My Mac.” While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin. Test while logged in as Guest. Same problem(s)? After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it. *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing. Step 2 The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login. Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows: 
    Shut down your computer, wait 30 seconds, and then hold down the shift key while pressing the power button.
    When you see the gray Apple logo, release the shift key.
    If you are prompted to log in, type your password, and then hold down the shift key again as you click Log in.
     Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs. The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. *Note: If FileVault is enabled, or if a firmware password is set, you can’t boot in safe mode. Test while in safe mode. Same problem(s)? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • How can we take the cursor to a different sub-screen from the BADI?

    Hi,
    We have to do some validation on Header, Operation and Relationship of any work order (IW31, IW32). We have checked that validations can be done at BADI WORKORDER_UPDATE in the method u2018AT_SAVEu2019.  But user wants us to take the Cursor back to the field and screen due to which the error is coming. How can we take the cursor to a different sub-screen from the BADI?
    Thanks in Advance,
    Pranav

    You 'ran out of room' because you tried to put your entire question into what is the 'Topic line' of the post.
    This is a fairly common error, as a scan of the topic list will show, and likely due to a design flaw in the layout of the composition page.
    Most posters who make this error do so on their first post, and are able to avoid a similar misstep on their second and subsequent questions.
    Regards,
    Barry

  • Why does Safari freeze when the cursor hovers across "Bookmarks"?

    Safari v 4.1
    Hi,
    When I move the cursor over "Bookmarks" in the menu at the very top of the window, Safari freezes for about 5 minutes. It can also freeze when the cursor is simply passing under the "Bookmarks". When I'm moving the cursor horizontally across the entire screen, I have to keep the cursor well below the top menu bar to avoid freezing Safari. Otherwise Safari is working OK. I often Force Quit" Safari when this happens, but if I wait, it will unfreeze.
    This is all about hovering, not clicking.
    Any suggestions as to why this is happening and how to fix it.
    Thanks, Rafael

    Hi Carolyn.
    First, about resetting. I've never done it before, and I recall hearing—but have no direct experience—that it practically wipes the slate clean. I've built a very sophisticated Bookmarks Bar and Bookmarks Menu, and because I'm a researcher, I never erase history. When I started using Safari a long time ago, I was told by Apple to regularly erase history. Then a couple of years ago I was told by someone I trust that it's OK to keep it.
    I regularly empty Cache and remove cookies.
    Are these the top 5 buttons?:
    1 Clear history
    2 Reset Top Sites
    3 Remove all webpage preview images
    4 Empty the cache
    5 Clear the Downloads window
    I got this list from Safari Help>Resetting Safari. I'm using Safari 4.1, but I noticed that this help page referred to Safari 5 in the 'Reset Top Sites' explanation: "Reset Top Sites: … Top Sites page reverts to showing the webpage previews displayed when you first installed Safari 5."
    As for the rest:
    2 Reset Top Sites—I’ve never made use of this
    3 Remove all webpage preview images—not familiar or I don’t recognize what it is.
    4 Empty the cache—Fine with that
    5 Clear the Downloads—window Fine with that
    I’m letting you know about these details before I proceed with your instructions.
    Thanks for responding,
    Rafael
    PS Since I'm asking about Bookmarks here, I've been meaning to find out something about my Safari Bookmarks.html that is exported, then backed up to one of my external HDs. If Safari or my computer crashes, and I re-install Safari, then import those bookmarks, are they re-created to look just as they do now in 'Show All Bookmarks'?
    I have some old bookmarks (or 'Favorites' I think they were called) that, when imported (in an html format?), appeared as a long list, rather than as a neatly tiered record of folders and files.

  • Can the current line be highlighted using a background color or have the cursor flash?

    I use the split screen and left click in the Design pane to jump to where I want to be in the Code pane in Dreamweaver CS6. The problem is that it can be very hard to tell where the cursor is in the Code pane since the cursor doesn't flash.
    Is there a way to force Dreamweaver CS6 to change the background color of the currently selected line or at least have the cursor flash in both panes? There must be some way to make it easier to find the current line of code.
    Thanks.

    John Waller wrote:
    The cursor does not flash in Code View only when Code View is not in focus i.e. you're working in the Design View window in Split View.
    In those caases, I just highlight a word or two in Design View and the corresponding words are highlighted by DW in Code View (even when Code view is not in focus).
    Thanks. I've been doing that, but sometimes there is no text to highlight. I hoped Dreamweaver might have a hidden setting that I could enable. That's a lot of extra sliding of the hand/wrist for no good reason when it would be easy for the Dreamweaver programmers to change the background color of the current line or make the cursor flash or do something else to indicate where you are in the code besides making the user constantly make a smearing action with the mouse. All of those extra movements add up the wear and tear when you're trying to avoid getting a repetitive stress injury, especially if you already use mouse gestures in a browser.

  • How to control the cursor position in the Table control in Module pool

    Hi,
    Can any body tell me how to change the cursor positon from last field of the first record to the
    first field of the second record , when user presses enter in the last field in the module pool
    programming.
    Thanks

    Hi,
    Please avoid posting duplicate posts.
    Re: how to get the cursor position from screen in module pool program
    Nag

  • Is there a way to change the cursor hotspot systemwide on Mountain Lion?

    Hello community.
    Is there a way to change the cursor hotspot on Mountain Lion, systemwide?
    Like editing the original cursor file (or downloading one) and replacing the original one?
    Reason: when I enlarge the arrow, the "absoulute" tip (top of the white outline) gets distant from the internal tip (top of the black core), so sometimes the white outline needs to stick out if I want to click the approprate area - because the hotspot is on the internal tip. To me it's counter-intuitive. I would prefer to have the hotspot on the absolute edge of the cursor (tip of the white outline). This is not debatable - this is my private preference, and I've read today that it's not only mine - there is a number of users who want the same.
    I know it's always been like this on Macs, so please avoid questions like "why to you want that", answers like "get used to it" or any kind of hostility, for these are useless. The quiestion is how can I change it, if possible.
    Thanx guys!

    I don't know how you get to the System folder in Mavericks; and even if I found the folder with the alternative cursors in it, I would have no way of switching to any of them.  The designers have obviously not anticipated that anyone would wish to do this.
    The System Preferences has an adjustment under Accessibilty which allows the user to change the size of the cursor, but nothing else.
    So I guess that there is no way to make the change without actually re-engineering the System somehow.
    If someone can find a way, I will be most pleased to be enlightened; only please make the directions explicit.

  • Handling no_Data_found and handling the cursor context not found exceptions

    hi all,
    when the value is not there in table, we will get the no_data_found exception.
    im sending the sample procedure.
    check that one.
    create or replace procedure registration.P_GetPatientDetails(in_UHID in Patient.Uhid%Type,
    ocursor_Component1 OUT SYS_REFCURSOR,
    ---ocursor_Component2 OUT SYS_REFCURSOR,
    ocursor_Component3 OUT SYS_REFCURSOR,
    ocursor_Component4 OUT SYS_REFCURSOR
    AS
    in_RegistrationID varchar2(50);
    ln_genderLovID NUMBER(10);
    ln_rhfactorLovID NUMBER(10);
    BEGIN
    SELECT RegistrationId
    into in_RegistrationID
    from Patient
    where (Upper(UHID) = Upper(in_UHID)) ;
    /* COMMIT;*/
    /*dbms_output.put_line(in_RegistrationID);*/
    OPEN ocursor_Component1 FOR
    SELECT RegistrationID,PreRegistrationNo,EmergencyNo,UHID
    FROM patient p LEFT OUTER JOIN EHIS.Titlemaster TM ON p.title = tm.titlecode LEFT OUTER JOIN EHIS.SuffixMaster SM on p.sufix = SM.SUFFIXCODE LEFT OUTER JOIN EHIS.Maritalstatusmaster MSM ON MSM.MARITALSTATUSID = p.maritalstatus LEFT OUTER JOIN EHIS.Bloodgroupmaster BGM ON BGM.BLOODGROUPID = p.bloodgroup LEFT OUTER JOIN EHIS.LovDetail LD ON(LD.LOVDETAILID = p.gender AND LD.LOVID = ln_genderLovID) LEFT OUTER JOIN EHIS.LovDetail rf ON(rf.LOVDETAILID = p.rhfactor AND rf.LOVID = ln_rhfactorLovID)
    WHERE RegistrationID = in_RegistrationID AND p.Status = 1 ;
    OPEN ocursor_Component3 FOR
    SELECT RegistrationID,ResidenceNumber,MobileNumber,PrimaryEmail
    FROM AddressMaster
    WHERE UPPER(RegistrationID) = UPPER(in_RegistrationID) AND Status = 1 AND
    AddressTypeID =
    (SELECT AddressTypeID
    FROM AddressTypeMaster
    WHERE AddressTypeName = 'PermanentAddress');
    /* COMMIT;*/
    OPEN ocursor_Component4 FOR
    SELECT ResidenceNumber, MobileNumber,EmergencyNumber,PrimaryEmail
    FROM AddressMaster am LEFT OUTER JOIN EHIS.Countrymaster CM ON CM.COUNTRYID = am.country LEFT OUTER JOIN EHIS.Statemaster SM ON SM.STATEID = am.state LEFT OUTER JOIN EHIS.Districtmaster DM ON DM.DISTRICTID = am.district LEFT OUTER JOIN EHIS.Citymaster CM1 ON CM1.CITYID = am.city
    WHERE UPPER(RegistrationID) = UPPER(in_RegistrationID) AND Status = 1 AND
    AddressTypeID =
    (SELECT AddressTypeID
    FROM AddressTypeMaster
    WHERE AddressTypeName = 'CurrentAddress');
    /* COMMIT;*/
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE(TO_CHAR(SQLCODE) || SQLERRM);
    END;
    if the data is not there for teh given uhid,
    we are displaying the err msg in exception block
    but from .net environment ,
    they will define the cursors as out params.
    if they wont get the data,
    in .net environment, the exception is raised.
    how to handle these situations.

    Implicit cursors are prone to both the NO_DATA_FOUND and TOO_MANY_ROWS errors. They MUST return precisely one row or you get to do extra coding in the form of exception handlers. Using explicit cursors (declared in the DECLARE SECTION) will avoid both errors, though they have their own considerations. When an explict cursor doesn't find something it doens't put NULL into the destination variable(s); it leaves them alone so its a good idea to null out variables and records before fetching into them.

  • Hiding the Cursor in Full-Screen

    This is probably something that has been covered in the past, but how can the mouse cursor be hidden in full-screen? In Win32 API it's very simple, just ShowCursor(FALSE/TRUE); but in Java?

    and to further confuse matters, heres the optimal solution :D
          Toolkit t = Toolkit.getDefaultToolkit();
          Dimension d = t.getBestCursorSize(1,1);
          if(d.width!=0 && d.height!=0)
             NO_CURSOR = t.createCustomCursor(new BufferedImage(d.width,d.height,BufferedImage.TYPE_INT_ARGB),new Point(0,0),"NO_CURSOR");
          else
             NO_CURSOR = null;
          }(its optimum because the createCustomCursor() implementation makes a special case if the image supplied is a BufferedImage and is of the desired width & height [it avoids the rescaling operation])

  • Why to i keep getting a multi-colored circle in place of the cursor right before the browser shuts down on me??

    why do i keep getting a multi-colored circle in place of the cursor right before the browser shuts down on me??

    Open Control Panel -> Check in Mouse Properties -> Remove Checkmark from "Display Pointer Trails"
    Check and tell if its working.

  • Why is the cursor uncontrollable when syncing devices in iTunes?

    When syncing any device with iTunes, the cursor will not pinpoint what you want.

    Yes I do manually manage my music through Itunes and on my IPhone. Do you recommend I use the sync option in future to avoid this happening again?
    Both myself and my other half have the IPhone 3Gs and when we are using our home wifi it seems to drop connection with the router and resort to 3G. This happens fairly regularly now and our wireless is rock solid, it is used for downloading large amounts and a lot of online gaming. We have never had a problem with our wifi for laptops and the PS3s.
    The sound on my phone will just stop working, I can unlock after even a few minutes and the key sounds and unlock sound will not be there, I open the ipod and nothing, no sound through the phone speaker or through a cable to my amp and not even to headphones. A reboot usually corrects this but last time I locked the phone and the next morning it was working fine.
    I guess I could be doing something wrong or maybe just being picky, its such an awseome device and I want to get the most from it all of the time.

  • When I point and click, the cursor jumps into the wrong place. Help!

    Dear Apple Community,
    When I slide my cursor onto a selected item, it jumps away from that letter/number or selection when I click it.
    It is OK if I remove my hand, but I like to rest my palm on the keyboard to avoid repetitive strain injury.
    This never happened with my white Macbook. Is it something to do with metal magnetism?
    Can you tell me how to fix it?
    Thanks!
    Louise

    Hi,
    Did you solve your problem? When I point my cursor to select some thing like text or a button on a web page the cursor jumps a bit so it's hard to zero in on the correct selection,  it's so frustrating!

  • How to transfer trailing spaces in the source field type c

    Hello,
    I have to splitt a string key of 120 characters into two InfoObjects (CHAR). The problem is, that the trailing spaces are lost in the character Field.
    Has anybody an idea to avoid the lost?
    Thank you.
    Conversion Table for Source Field Type c
    The characters in the source field are inserted in the target field, left-aligned. Trailing spaces in the source field are not transferred. If the target field is longer than the number of characters transferred, it is filled with blank characters to the right. If the target field is shorter, the number is truncated from the right.

    Hi ,
    Create two Characteristic InfoObjects in BW With length 60 Char  and then in the Transfer Rules of this two InfoObjects write the Formula using Left() and right() function present in the Formula Builder .
    That is First infoObject Contains the Left 60 Char and next one Contains the right 60 Char.
    Regards,
    Vijay.

Maybe you are looking for

  • Add carriage return in XML file

    Hi, I found a topic that correspond to my requirement : [Add carriage return in XML file|https://wiki.sdn.sap.com/wiki/display/XI/HowtoappendCarriageReturnintheendofeachtagofxml+file] But i don't know where created this udf, which input parameter pas

  • EDITING IN MATRIX

    big question..i had a chance to play with logic express in a apple store..but i bought 7.2 pro logic instead....one thing i did notice was that editing in express for quantizin notes values was a larger display then on pro logic 7.2..also there seems

  • Balance Score card data show in aggregation

    Hi All, I am developing a score card where I am using a structure which is displaying data in query as follows: fiscal period   sales 007.2007          30 008.2007          40 But when I see the same data in score card  it is displaying the sum and t

  • How do I fix a stack overflow?

    Hi, Well I hope I am posting this in the right section of topics. I am new to programing.At the moment I am sudying loops in Java. I did something that has caused a "stack overflow" in my computer(Whatever that is). Is this really bad for my computer

  • Cisco 3850 SSO and NSF failover time

    Dear Member, I m trying to setup a network with few second fail-over with Cisco 3850 stack, C3850 support SSO and NSF on OSPF. However, when the Master fails, Slave take up the role and re-learn routing information and around 10 sec to fail-over. May