Thanks about the tutorial that I don't stop to examin !

Here is the simple code in the tutorial :
import java.awt.*;
import java.util.HashMap;
import javax.swing.*;

import org.web3d.x3d.sai.*;

/**
 * A simple example of how to use SAI to load a scene and modify a value.

public class SimpleSAIDemo extends JFrame {


    /**
     * Constructor for the demo.
     */
    public SimpleSAIDemo() {
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        Container contentPane = getContentPane();

        // Setup browser parameters
        HashMap requestedParameters=new HashMap();
        requestedParameters.put("Xj3D_ShowConsole",Boolean.FALSE);

        // Create an SAI component
        X3DComponent x3dComp =
BrowserFactory.createX3DComponent(requestedParameters);

        // Add the component to the UI
        JComponent x3dPanel = (JComponent)x3dComp.getImplementation();
        contentPane.add(x3dPanel, BorderLayout.CENTER);

        // Get an external browser
        ExternalBrowser x3dBrowser = x3dComp.getBrowser();

        setSize(900,700);
        show();


        // Create an X3D scene by loading a file
        //X3DScene mainScene = x3dBrowser.createX3DFromURL(new String[] {
"moving_box.x3dv" });

        mainScene = x3dBrowser.createX3DFromString(nT) ;

        // Replace the current world with the new one
        x3dBrowser.replaceWorld(mainScene);

    }


    /**
     * Main method.
     *
     * @param args None handled
     */
    public static void main(String[] args) {

        SimpleSAIDemo demo = new SimpleSAIDemo();

    }

}

My question is :

Without using an ExternalBrowser, is it possible to create a scene like one
does with Java3D ?

To this day, I don't see how to create my scene without loading a file.

I need your help !

Many thanks !

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to