How to increase BoundingSphere radius after loading .3ds model

I can properly load in all .3ds models, however, after loading them into the canvas some .3ds models are far too large. When I zoom out (by pushing the model back with MouseZoom) the model disappears from view even though I have the boundingsphere declared as:
BoundingSphere bounds = new BoundingSphere(new Point3d(), Double.POSITIVE_INFINITY);
I add the loaded model (transformgroup.addChild(model.getSceneGroup());) and this contains the bounds as shown above.
The weird thing is when I load .obj files using the same method it works fine. I can zoom out on these objects to infinity (until they are small dots).
Why are the .3ds models disappearing from the bounds even when I have them set to POSITIVE INFINITY?
Any ideas? Thanks.

Try the Java 3D forum: [http://forums.sun.com/forum.jspa?forumID=21]

Similar Messages

  • How to move flat file after loading in owb to other directory with othernam

    Hi All,
    I wast struck in problem . after loading the flat file in owb that file should be move or rename or zip with Date everyday .
    I dont know how to achieve this issue in owb via proceudre or any other way ... .
    how to zip files from pl/sql procedure ...... with sysdate.zip.
    any one please help me in this problem to come out soon.
    thanks ,
    murari

    One way is to use a Java stored procedure, this can then be called from a map or a process flow. The Java stored procedure will use the Zip capabilities in Java to do what you need. For example you will need the following procedure and you will have to grant privileges for your file to ZIP and the entire directory for zipping into (since the file name will be dynamic):
    For example grant YOURSCHEMA (change to your tgt schema) read on your extract directory where your file to zip is and write on your zips directory (where the zips will go);
    exec dbms_java.grant_permission('YOURSCHEMA', 'SYS:java.io.FilePermission', 'c:\staging\extracts\*','read');
    exec dbms_java.grant_permission('YOURSCHEMA', 'SYS:java.io.FilePermission', 'c:\staging\zips\*', 'write' )
    You can then create your procedure which you can invoke
    CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "otnZipFile"
    AS
    import java.util.zip.ZipEntry;
    import java.util.zip.ZipOutputStream;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    public class otnZipFile
    public static void zipFile(String zip, String filename)
    byte[] buf = new byte[1024];
    try {
    String outFilename = zip;
    ZipOutputStream out = new ZipOutputStream(new FileOutputStream(outFilename));
    FileInputStream in = new FileInputStream(filename);
    out.putNextEntry(new ZipEntry(filename));
    int len;
    while ((len = in.read(buf)) > 0) {
    out.write(buf, 0, len);
    out.closeEntry();
    in.close();
    out.close();
    } catch (IOException e) {
    create or replace PROCEDURE zip_file(
    dir IN VARCHAR2,
    file_name IN VARCHAR2) IS
    LANGUAGE JAVA NAME 'otnZipFile.zipFile(java.lang.String, java.lang.String)';
    For example here I zip a file MYCSV.csv into the zip file MYZIP.zip
    exec zip_file('c:\staging\zips\MYZIP.zip', 'c:\staging\extracts\MYCSV.csv');
    Cheers
    David

  • How to Format DataTable Column after load Datatable without extra loop ??

    How to Format Column after load Datatable without extra loop ??
    I dont want to do extra logic which can cause performance thing.
    I have datatable which get fill from Dataset after database query, now i need to format column as decimal but without extra logic.
    I was thinking to create clone and than Import row loop but it ll kill performance, its WPF application.
    Thanks
    Jumpingboy

    You cannot do any custom things at all without doing some "extra logic". Formatting a number as decimal is certainly not a performance killer in any way whatsoever though.
    If you are displaying the contents of the DataTable in a DataGrid you could specify a StringFormat in the XAML:
    <DataGrid x:Name="dg1" AutoGenerateColumns="False">
    <DataGrid.Columns>
    <DataGridTextColumn Header="Number" Binding="{Binding num, StringFormat=N2}"/>
    </DataGrid.Columns>
    </DataGrid>
    Or if you are using auto-generated columns you could handle the AutoGeneratingColumn event:
    public MainWindow() {
    InitializeComponent();
    DataTable table1 = new DataTable();
    table1.Columns.Add(new DataColumn("num")
    DataType = typeof(decimal)
    table1.Rows.Add(1.444444444444);
    table1.Rows.Add(7.444444444444);
    dg1.ItemsSource = table1.DefaultView;
    dg1.AutoGeneratingColumn += dg1_AutoGeneratingColumn;
    void dg1_AutoGeneratingColumn(object sender, DataGridAutoGeneratingColumnEventArgs e) {
    if (e.PropertyName == "num") {
    DataGridTextColumn column = e.Column as DataGridTextColumn;
    column.Binding.StringFormat = "N2";
    <DataGrid x:Name="dg1" />
     Please remember to mark helpful posts as answer and/or helpful.

  • How to make Matlab work after loading Yosemite ?

    How to make Matlab work after leading Yosemite on a Macbook pro ?

    R2014b should work with Yosemite. What version do you have?

  • Dynamic plug-ins: How to dispatch MediaFactoryEvent.PLUGIN_LOAD after loading external swf

    Hi,
    I'm creating a dynamic OSMF plugin. That plugin needs to load external SWF file before sending the PLUGIN_LOAD event to the player.
    How can I override the dispatch of the PLUGIN_LOAD event on my MyCustomPluginPluginInfo custom class ?
    If it's not possible, the solution is to create a new MediaElement within my MyCustomPluginPluginInfo:
    var mediaElement:MediaElement = mediaFactory.createMediaElement( new URLResource(null) ); //the resource is null at this point
    On the player side I add that line when the plugin is loaded successfully:
    //Add listener on Media Element creation
    mediaFactory.addEventListener(MediaFactoryEvent.MEDIA_ELEMENT_CREATE, onMediaElementCreate);
    Is it a god solution or not ?
    Is there another way to do that ?
    Thanks !

    Hello!
    I'm not sure you can do it through loadPlugin stage due to an swf loader is used in factory on that moment.
    As for loading an extra swf "per instance" way I'd rather do it using an element LoadTrait than try to bypass the standard factory way.
    Regards!

  • How to modify HTML immediatley after loading it??

    I have created a web browser and I need it to have large text size as default (i.e as soon as a web page is loaded). I have written the code to do this and it works when assigned to a Jbutton.
    However if use the doClick() method to invoke the button immediatley after the HTML page is loaded(using the setPage method) the HTML remains the same.
    There was a suggestion that the font resizing is being done before the document is fully loaded. So I tried to synchronize the thread of my largeText method and delay execution of the doClick by using the SwingUtilities.invokeLater method.
    This never worked does anybody have a solution to this problem??
    Below is the code of my Display and largetext methods.
    if (e.getSource().equals(largeText)){
    Thread runner = new Thread() {
    public synchronized void run() {
    HTMLDocument doc = ((HTMLDocument) htmlMain.getDocument());
    doc.setCharacterAttributes(0, htmlMain.getDocument().getLength(), doc.getStyleSheet()
    .getDeclaration("font-size:24"), false);
    runner.start();
    SwingUtilities.invokeLater(runner);
    } // End if
    public void DisplayPage(String strURL) {
    currentURL = strURL;
    textURL.setText(strURL);
    //m_btnReload.setToolTipText(strURL);
    try {
    setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
    htmlMain.setPage(strURL);
    SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    largeText.doClick();
    catch (Exception exc) {
    htmlMain.setText("");
    statusBar.setText("Could not open starting page. Using a blank.");
    finally {
    setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
    } //end try
    //largeText.doClick();
    }

    You didn't set the width and height to 20. You set the
    magnification to 20 percent. That's what _xscale and _yscale are:
    the percentage by which an object is scaled (enlarged or reduced).
    If you want to set an image's actual width and height:
    image._width = 20;
    image._height = 20;

  • How to increase the row after matching one opration??

    hello,
    i am looking  for the logic to go to the next row if data are matched.
    for example when i run vi it will take first row and in first row  data of the column 3 and 4 are compared with the data which is enterd by user.
    if data matched then next row will come and same operation will going on.
    here in attachment i have attached vi in which i tried to compare the coulum 3 and 4 with the manualy enter data.
    could any one please suggest that how can i do so??
    thank you very much in advance.
    Attachments:
    Untitled 3.vi ‏9 KB
    1 - Copy.log ‏1 KB

    What do you do if they don't match?
    Do you really just want to keep reading the file?  Are you waiting for the file to change?
    How do you know when you are done looking for matches?
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to Increase the performance in loading a page

    Hi
    I am developing E-mail application. In that we r using JSP for view. In E-mail application the compose page will be loading with little bit time. In this compose JSP, just To, CC,BCC, and Subject textboxes are using for Content TextArea using. In this page "To" has the link, when i click on "To" link contacts(Addresses) will be open with in the same page with another JSP throw Ajax. Means, In Compose page we r calling the contact's JSP page throw Ajax. In this case, Initially when i click on Compose page these contacts will be loading. that's why it takes time when i open the compose page. Is there any solutions to improve the performance. (for loading the page with less time) ??
    Thanks
    Adusumalli

    Cache you contacts data for example. there are plenty of cache solutions for JSP. Check out [Cache taglibs|http://www.servletsuite.com/jsp3.htm] in Coldtags suite for example

  • How do you close windows after loading ios7

    How do you close apps/windows in ios7?

    Try closing all apps in Multitask Window
    1. Double tap the home button to bring up the multi-tasking view
    2. Swipe up on the screenshot of the app you want to exit.
    3. The app will fly off the screen

  • How do i transfer contacts after activation

    How do I transfer contacts after activation

    Which phone model are you coming from and which phone model did you activate?

  • How to know the size of the EEPROM after loading any Applet

    How can I know the size of the EEPROM after loading any applet..
    Any comments on this is appreciated
    Thank you in advance

    kishansaralaya wrote:
    Thanks for your suggestion.
    But when I try to use
    short memRemaining = JCSystem.getAvailableMemory(JCSystem.MEMORY_TYPE_PERSISTENT);
    it always shows 32767. Even after loading some applet.
    And I am using 72K Java card then how it can show only 32Kbyte as the remaining memory value.This is because a short isn't big enough to display a number above 32767. One way around this is to use a byte[] to fill up some of the space with your temporary applet.
    byte[] memoryFiller = new byte[32767];
    short memRemaining = JCSystem.getAvailableMemory(JCSystem.MEMORY_TYPE_PERSISTENT);The value of memRemaining + 32767 is the amount of persistent memory left on the card. If memRemaining is still 32767, you can add another byte[] starting with small values and increase the size until you get a meaning ful result (less than 32K).

  • I would like to see all my contacts in my old outlook acount, after loading the cloud I I can only find them in the new cloud acount. How do I get them back in the old outlook acount

    I would like to see all my contacts in my old outlook acount, after loading the cloud I I can only find them in the new cloud acount. How do I get them back in the old outlook acount?

    In Outlook, export your contacts to a .pst or .csv file. Keep the exported file
    How to export contacts from Outlook for Windows.

  • How can i get my text back after loading ios5

    How can I make my text come back after loading IOS 5

    Do you have copies of them in the Tones section of your computer's iTunes library or on your backup of your downloads/library so that you can sync them back to your phone? If you haven't then you could try contacting iTunes Support and see if they will grant you a redownload

  • How can I add 3ds Model into After Effects with animation and camera rotation?

    Hi all!
    I'm on my way to my final project of Multimedia Animation of my bachelor last year.
    I have good knowledge of After Effects & 3ds Max.
    I want to do a short movie with aliens being shot down.
    So, my question is: How can I import my 3ds model with the animation(keyframes) into After Effects AND rotate the whole character and it's animation as I move the camera?
    for example, having a alien being shot down at the same time I'm recording with the HD camera around, that means that I have to define planes and angles, the problem is that I'm not parenting the character correctly with the plane.

    Element doesn't do pre-anaimted objects, so that would be the limiting factor. Of course it could still be handy for otehr scene elements. On that note, using AtomKraft and exporting the model as an Alembic file with animation might also be something to look into...
    Mylenium

  • After load .dbc file to the MAX, How to get activate the CAN signals?

    Actually, i am new to labview and have some basic concepts. I am working on the CAN signals. I want to get activate the necessary signals alone. I know how to load the .dbc file to MAX. But after loading the .DBC file to MAX, i dont know how to activate the wanted CAN signals alone. For example, if i need to activate and control the speed CAN signal alone. i am not able to activate it.
    Can anyone explain how this can be done.

    hi,
    try to download the file from the applicarion server using the dataset operations. and store in the internal table
    thanks

Maybe you are looking for