[JAVA3D] Problem with openGl - Please help

2005-07-14 Thread Saeed Ansari
Hi all,
I have written an application using java3d. I want to run this application under Fedora with 
nvidia utra 6800 . But when I am installing the driver of nvidia the shapes that created with java3d becomes black, and there is no shade.
I am using java3d OpenGL version.
Any help?
 
REgards,
Saeed
 Start your day with Yahoo! - make it your home page 
===
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".

[JAVA3D] How to change KeyNavigatorBehavior keys ?

2005-07-01 Thread Saeed Ansari
Hello,
I want to change the buttons that KeyNavigatorBehavior
uses for transfer.
For example use 'R' key for restore instead of '='
key.
Is it possible? how ?

Regards,
Saeed

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

===
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".


[JAVA3D] How define front face of shapes ?

2005-06-30 Thread Saeed Ansari
Hi all,
  I have draw a lot of shapes containing concave and convex shapes. The problem is that many shapes' face are in front of the viewer and others back of the viewer.
How can I define front face of the shapes ?
 
Regards,
Saeed
Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football


===
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".


[JAVA3D] How to fill colors ?

2005-06-29 Thread Saeed Ansari
Hi all,
I forced to draw shapes by LineArray, as some of the shapes are concave. Now I want to fill color these shapes.
How can I do this? there is a method?
 
Regards,
Saeed
 __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com
===
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".

[JAVA3D] Repiant has bad effect on Canvas3D

2005-06-24 Thread Saeed Ansari

Hello,
I have used KeyEvent methods to translate camera on  the scene.
The problem is when I repaint the canvas3D the scene becomes white for a very short time.
Is there a way to remove this problem ?
 
Regards,
Saeed
 
  public void keyPressed(KeyEvent e) {    char keyChar = e.getKeyChar();    int KeyCode = e.getKeyCode();    if( keyChar == 'Z' || keyChar == 'z' ){  z_camera -= 10;  View_Transform3D.setTranslation(new Vector3f(mid_city_x, mid_city_y, z_camera));  camera3d.rotX(1.5f);  camera3d.mul(View_Transform3D);  View_TransformGroup.setTransform(camera3d);  c3d.repaint();    }    if( keyChar == 'X' || keyChar == 'x' ){  z_camera += 10;  View_Transform3D.setTranslation(new Vector3f(mid_city_x, mid_city_y, z_camera  ));  camera3d.rotX(1.5f); 
 camera3d.mul(View_Transform3D);  View_TransformGroup.setTransform(camera3d);  c3d.repaint();}  }
Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football


===
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".


[JAVA3D] Zooming on Scene

2005-06-24 Thread Saeed Ansari
Hello all,
I have used KeyPressed event to zoom on the scene. My Scene is on X-Y axis.
To view the scene from front side, I have rotate the camera on x-axis.
Now to zoom the scene, I should decrease the y-axis.
When I run the program, for the first time that I press z-key it zooms, but to continue it, camera position changes on y-axis. I have attached the code of my camera.
Can you find what is the problem ?
 
Thanks  in advance.
 
Regards,
Saeed 
 
 
 public void execute() {
    mid_city_x = 0.0f;    mid_city_y = 21.0f;
    z_camera = 150f;    getContentPane().add("Center", canvas3d);    setSize(500, 500);    bgRoot = createSceneGraph();    canvas3d.addKeyListener(this);    camera3d.rotX(1.5f);    Vector3f v3ff = new Vector3f(0.0f, mid_city_y , 200.0f);    su.getViewingPlatform().setNominalViewingTransform();    ViewingPlatform viewingPlatform = su.getViewingPlatform();    View_TransformGroup.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);    View_TransformGroup.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);    View_TransformGroup = viewingPlatform.getMultiTransformGroup().getTransformGroup(0);    View_Transform3D = new Transform3D();    View_TransformGroup.getTransform(View_Transform3D);   
 View_Transform3D.setTranslation(v3ff);    camera3d.mul(View_Transform3D);    View_TransformGroup.setTransform(camera3d);    com.sun.j3d.utils.universe.Viewer vi = su.getViewer();    view.setBackClipDistance(150.0);
    View view = vi.getView();   BoundingSphere bounds = new BoundingSphere(new Point3d(0.0f, 0.0f, 0.0f),800D);
    bgRoot.compile();    su.addBranchGraph(bgRoot);    OrbitBehavior orbit = new OrbitBehavior(canvas3d, OrbitBehavior.REVERSE_ALL);    orbit.setSchedulingBounds(bounds);    viewingPlatform.setViewPlatformBehavior(orbit);    show();  }
 
public void keyPressed(KeyEvent e) {    char keyChar = e.getKeyChar();    if( keyChar == 'z' || keyChar == 'Z' ){  mid_city_y -= 10;    View_Transform3D.setTranslation(new Vector3f(mid_city_x, mid_city_y, z_camera));    camera3d.rotX(1.5f);    camera3d.mul(View_Transform3D);  View_TransformGroup.setTransform(camera3d);  canvas3d.repaint();    }    if( keyChar == 'x' || keyChar == 'X' ){  mid_city_y += 10;  View_Transform3D.setTranslation(new Vector3f(mid_city_x, mid_city_y, z_camera  )); 
 camera3d.rotX(1.5f);  camera3d.mul(View_Transform3D);  View_TransformGroup.setTransform(camera3d);  canvas3d.repaint();}__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com
===
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".

[JAVA3D] Smooth movement by PositionInterpolation

2005-06-22 Thread Saeed Ansari
Hi all,
I have added some objects as below to a BranchGroup:
 
  BG
   |
    /
  /
    /
 TG 
 /
   /
 TG2 ( ALLOW_WRITE )
   /
 /
   Object
 
I have passed the TG2 as parameter to the PositionInterpolator. I set the Transform3D of the second TransformGroup ( TG2 ) every second. But the movement is jerky and it jumps between positions.
Another problem is position. The object just moves between two positions and another positions have no effect on TransformGroup.
PC: The position changes in x-y-z axis.
 
Regards,
Saeed__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com
===
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".

[JAVA3D] How to update position for animation?

2005-06-20 Thread Saeed Ansari
Hello all,
I have added Some objects and an PositionInterpolator for each  to a TransformGroup.
As you see code below, I add PositionInterpolators to a list to modify them later.
As I am working on a simulation project, I get the position of objects every 100 miliseconds
and I want animate the motion of object.I update the setTarget method, but nothing happens.
How should I do this ? It is somehow complicated for me .
 
Regards,
Saeed
 
TransformGroup agentTrans = new TransformGroup();    agentTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);    agentTrans.setCapability(TransformGroup.ALLOW_PICKABLE_READ);    agentTrans3D = new Transform3D();    atMulRotation = new Transform3D();    agentTrans3D.setTranslation(new Vector3f(xxx, yyy, 3.0f));    agentTrans3D.setScale(0.1f);    atMulRotation.rotX(1.5f);    agentTrans3D.mul(atMulRotation);    agentTrans.setTransform(agentTrans3D);    bg=new vrmlLoad("ambulance.wrl");    PositionInterp
 olator
 posInt = new PositionInterpolator(alpha , atGroup[i-1]);    posInt.setSchedulingBounds(new BoundingSphere());    atInterpolator[i-1]=posInt;    agentTrans.addChild(bg);    agentTrans.addChild(posInt);    atGroup[i-1] = agentTrans;     bg1.addChild(agentTrans);  __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com
===
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".

[JAVA3D] How to Animate ?

2005-06-16 Thread Saeed Ansari
Hello All,
I currently working on a simulation project.In this project, I receive position of agents ( like cars ) every 100 miliSeconds. I want to animate the motion of these agents, setting position every cycle doesn't make animation and there is a jump.
What do you recommend to do ?
 
Regards,
Saeed__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com
===
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".

Re: [JAVA3D] Memory problem

2005-06-10 Thread Saeed Ansari

Hello,
I increased heap size up to 512MB, but the problem still exist.
I should say that I tested in IDEs' IntelliJIDEA and Jbuider2005. and I modified their config files and changed -Xmx parameter.
Is it possible that it doesn't change the JVM parameter ?
And also I used System.gc() , and now I can load more objects.
Have you another solution to remove OutOfMemory problem?
 
Best regards,
SaeedHrvoje Smolic <[EMAIL PROTECTED]> wrote:
Saeed, textures consume much memory in Java. You should increase heap size of your application by argument -Xmx128m or -Xmx256m... So:         java -Xmx256m YourClass 



Saeed Ansari <[EMAIL PROTECTED]> Sent by: Discussion list for Java 3D API 
09.06.2005 19:13




Please respond toDiscussion list for Java 3D API 





To
JAVA3D-INTEREST@JAVA.SUN.COM


cc



Subject
[JAVA3D] Memory problem




Hello all, I have loaded about 180 vrml object ( .wrl format ).When I load the textures I get the OutOfMemoryException, but without texture it works well.Each object has a 3KB texture. My RAM is 1.0 GB . What should I do to remove memory this problem ?   Regards, Saeed


Discover Yahoo!Find restaurants, movies, travel & more fun for the weekend. Check it out! === 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".
=== 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".
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
===
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".

Re: [JAVA3D] Memory problem

2005-06-09 Thread Saeed Ansari
Hello ,
I am working with IntellijIDEA, and I increased the heap size to 512MB. So now it works for 180 objects but not for 200 objects!!!
And another question: Is it possible to load a vrml object and then clone this object.I have added below my source where I load objects :
 
BranchGroup bg=new vrmlLoad("03.wrl");
transformgroup.addChild( bg  );
bgRoot.addChild( transforngroup );
 
This loading repeats for 200 objects.
 
Laurent Gilson <[EMAIL PROTECTED]> wrote:
Hello> I have loaded about 180 vrml object ( .wrl format ).When I load the> textures I get the OutOfMemoryException, but without texture it works> well.Each object has a 3KB texture. My RAM is 1.0 GB .java limits itself to 64 (32 ?) MB RAM (depends on the version, 1.5 has aflexible limit ...) . That behavior can be changed with -X parameters. Launch"java -X" to get the parameter-list.cu===To unsubscribe, send email to [EMAIL PROTECTED] and include in the bodyof the message "signoff JAVA3D-INTEREST". For general help, send email to[EMAIL PROTECTED] and include in the body of the message "help".__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam pr
 otection
 around http://mail.yahoo.com
===
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".

[JAVA3D] Memory problem

2005-06-09 Thread Saeed Ansari

Hello all,
I have loaded about 180 vrml object ( .wrl format ).When I load the textures I get the OutOfMemoryException, but without texture it works well.Each object has a 3KB texture.
My RAM is 1.0 GB .
What should I do to remove memory this problem ? 
 
Regards,
Saeed
Discover Yahoo!
Find restaurants, movies, travel & more fun for the weekend. Check it out!
===
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".

[JAVA3D] Error when loading wrl file

2005-06-07 Thread Saeed Ansari

Hello all,
I want to load a wrl formay file with VRML97 loader. When I want to load the object I get this error :
 
java.lang.ArrayIndexOutOfBoundsException: IndexedGeometryArray: index texcoord value greater than the array length
 
How can I remove this error ?
 
Regards,
Saeed
Discover Yahoo!
Find restaurants, movies, travel & more fun for the weekend. Check it out!
===
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".

[JAVA3D] Error when loading wrl file

2005-06-07 Thread Saeed Ansari
Hello all,
I want to load a wrl formay file with VRML97 loader. When I want to load the object I get this error :
 
java.lang.ArrayIndexOutOfBoundsException: IndexedGeometryArray: index texcoord value greater than the array length
 
How can I remove this error ?
 
Regards,
Saeed
Discover Yahoo!
Get on-the-go sports scores, stock quotes, news & more. Check it out!
===
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".

[JAVA3D] VRML loader ( .wrl format loader )

2005-06-03 Thread Saeed Ansari
Hi all,
Can anybody give me a link to download VRMl loder for java3d ?
 
Regards,
Saeed
Discover Yahoo!
Find restaurants, movies, travel & more fun for the weekend. Check it out!
===
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".

[JAVA3D] Problem when changing BranchGroup's children

2005-06-02 Thread Saeed Ansari
Hello,
I want to change the attributes of a BranchGroup's children. I have set the capability of the BranchGroup :
 BranchGroup bgRoot = new BranchGroup();
 bgRoot.setCapability(BranchGroup.ALLOW_CHILDREN_READ); bgRoot.setCapability(BranchGroup.ALLOW_CHILDREN_WRITE);
 
and when I want to read the children like below I get error :
 
for (int i=0; i < bgRoot.numChildren(); i ++)    {   Object obj = (Object) bgRoot.getChild(i);   if ( obj instanceof Building ) System.out.println(" OK ");    }
 
Do you know what is the problem ?
 
Regards,
Saeed
Discover Yahoo!
Have fun online with music videos, cool games, IM & more. Check it out!
===
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".

[JAVA3D] How to set light on Camera Direction ?

2005-06-02 Thread Saeed Ansari
Hi all,
I want to set the DirectionalLight on camera direction. How can I do this ?
 
 
Regards,
Saeed
Discover Yahoo!
Get on-the-go sports scores, stock quotes, news & more. Check it out!
===
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".

[JAVA3D] Load Object

2005-05-30 Thread Saeed Ansari
Hi all,
I want to load an obj file to my scene.
 
 private URL filename = null;
 filename =(getClass().getResource("galleon.obj"));
 
but it gives nullPointerExeption. I have located the obj file in project folder.
 
What is the problem ?
 
Regards,
Saeed
Do You Yahoo!? Yahoo! Small Business - Try our new Resources site!
===
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".

[JAVA3D] PointLight has no effect

2005-05-20 Thread Saeed Ansari

Hi,
I have used PointLight on a shape, but it has no effect.Is this a problem of java3d ?
 
Sphere s=new Sphere(0.5f); 
PointLight pointlight=new PointLight(true, new Color3f(1.0f, 1.0f, 1.0f), new Point3f(0.0f, 0.0f,  0.0f),new Point3f(1.0f,  0.0f,  0.0f) );
pointlight.setInfluencingBounds(bounds);
tg.addChild(pointlight);
tg.addChild(s);
 
 
Regards,
Saeed__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com
===
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".

[JAVA3D] Is the plane problem ?

2005-05-20 Thread Saeed Ansari
Hi all,
I have still problem with lightning. Don't you think that the problem is beacause of the plane object ? 
 
Regards,
Saeed
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
===
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".

[JAVA3D] Can you find the problem?

2005-05-19 Thread Saeed Ansari



Hi,
I have attached the source code that I have problem with.
Can you tell me what is the problem ?
 
Regards,
Saeed
Do you Yahoo!?
Yahoo! Mail - Find what you need with new enhanced search. Learn more.
===
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".import javax.media.j3d.*;
import java.awt.*;
import javax.vecmath.*;
import com.sun.j3d.utils.universe.*;
import com.sun.j3d.utils.behaviors.vp.OrbitBehavior;
import com.sun.j3d.utils.geometry.GeometryInfo;
import com.sun.j3d.utils.geometry.Triangulator;
import com.sun.j3d.utils.geometry.NormalGenerator;
import com.sun.j3d.utils.geometry.Stripifier;




class TriangleTest extends Frame{
  private Canvas3D c3d;
  private BranchGroup bg;
  private SimpleUniverse su;
  private TransformGroup tg;
public TriangleTest(){
   c3d=new Canvas3D(SimpleUniverse.getPreferredConfiguration());
   bg=new BranchGroup();
   su=new SimpleUniverse();
   tg=new TransformGroup();
}
void exe(){
add("Center",c3d);
setSize(600,600);
Point3d[] points = new Point3d[] {
 new Point3d(0, 0, 0),new Point3d(1, 0, 0),
 new Point3d(.5, .5, 0),new Point3d(1, 0, 0),
 new Point3d(1, 1, 0), new Point3d(.5, .5, 0),
 new Point3d(1, 1, 0),new Point3d(0, 1, 0),
 new Point3d(.5, .5, 0),new Point3d(0, 1, 0),
 new Point3d(0, 0, 0),new Point3d(.5, .5, 0)
 //new Point3d(-.5, 0, 0),
};


//INTERACTION
BoundingSphere bounds = new BoundingSphere(new Point3d(0.0f,0.0f,0.0f), 100);
ViewingPlatform viewingPlatform = su.getViewingPlatform();
OrbitBehavior orbit = new OrbitBehavior( c3d, OrbitBehavior.REVERSE_ALL);
orbit.setSchedulingBounds(bounds);
viewingPlatform.setViewPlatformBehavior(orbit);

// GEOMETRY
Shape3D part = new Shape3D();
TriangleArray geometry = new TriangleArray(12,TriangleArray.COORDINATES|TriangleArray.COLOR_3);
su.getViewingPlatform().setNominalViewingTransform();
geometry.setCoordinates(0, points);
part.setGeometry(geometry);
for (int i=0;i<12;i++)
geometry.setColor(i,new Color3f(Color.BLUE));
// APPEARANCE
Appearance appearance = new Appearance();
ColoringAttributes ca = new ColoringAttributes();
ca.setColor(new Color3f(Color.BLUE));
appearance.setColoringAttributes(ca);


//LIGHTING
Material mat=new Material();
Color3f lightColor = new Color3f (.6f, 0.2f, 0.5f);
Vector3f light1Direction = new Vector3f (0.5f, 0.5f, 0.0f);
mat.setAmbientColor(new Color3f(0.0f,0.0f,1.0f));
mat.setDiffuseColor(new Color3f(0.7f,0.7f,0.7f));
mat.setSpecularColor(new Color3f(0.7f,0.7f,0.7f));
DirectionalLight light1  = new DirectionalLight (lightColor, light1Direction);
light1.setInfluencingBounds (bounds);
AmbientLight ambientLightNode = new AmbientLight (lightColor);
ambientLightNode.setInfluencingBounds (bounds);

//   SETTING
appearance.setMaterial(mat);
part.setAppearance(appearance);

tg.addChild(part);
tg.addChild (light1);
tg.addChild (ambientLightNode);
bg.addChild(tg);
bg.compile();
su.addBranchGraph(bg);

}
public static void main(String args[]){
 TriangleTest t=new TriangleTest();
 t.exe();
}
}

[JAVA3D] Can you find the problem ?

2005-05-19 Thread Saeed Ansari
Hi,
I have attached the source code that I have problem with.
Can you tell me what is the problem ?
 
Regards,
Saeed
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
===
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".

Re: [JAVA3D] Problem with Material

2005-05-19 Thread Saeed Ansari
Hi John,
I have used lighting as you see :
 
    BoundingSphere bound=new BoundingSphere(new Point3d(0.0, 0.0, 0.0), 50 );
    Color3f lightColor = new Color3f (1.0f, 1.0f, 1.0f);    Vector3f light1Direction = new Vector3f (0.0f, 0.0f, 0.0f);    DirectionalLight light1  = new DirectionalLight (lightColor, light1Direction);    light1.setInfluencingBounds (bound);    branchgroup.addChild (light1);    AmbientLight ambientLightNode = new AmbientLight (lightColor);    ambientLightNode.setInfluencingBounds (bound);    branchgroup.addChild (ambientLightNode); */
 
cheers,
SaeedJohn Wright <[EMAIL PROTECTED]> wrote:
Saeed,Perhaps you don't have a light source in your scene?- John WrightStarfire ResearchSaeed Ansari wrote:> Hi,> I have used material, but it doesn't work and all of shapes are dark.> Below is my code :>> Appearance appearance=new Appearance();> appearance.setColoringAttributes (new ColoringAttributes (new Color3f(2.0f, 1.0f, 3.5f),1));> appearance.setPolygonAttributes(polyAtt);> Material mat=new Material();> mat.setAmbientColor(new Color3f(0.0f,0.0f,1.0f));> mat.setDiffuseColor(new Color3f(0.7f,0.7f,0.7f));> mat.setSpecularColor(new Color3f(0.7f,0.7f,0.7f));> appearance.setMaterial(mat);> shape.setAppearance(appearance);>> Is something forgotten to add ?>> Regards,>
 Saeed===To unsubscribe, send email to [EMAIL PROTECTED] and include in the bodyof the message "signoff JAVA3D-INTEREST". For general help, send email to[EMAIL PROTECTED] and include in the body of the message "help".
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
===
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".

[JAVA3D] Problem with Material

2005-05-19 Thread Saeed Ansari
Hi,
I have used material, but it doesn't work and all of shapes are dark.
Below is my code :
 
    Appearance appearance=new Appearance();    appearance.setColoringAttributes (new ColoringAttributes (new Color3f(2.0f, 1.0f, 3.5f),1));    appearance.setPolygonAttributes(polyAtt);    Material mat=new Material();    mat.setAmbientColor(new Color3f(0.0f,0.0f,1.0f));    mat.setDiffuseColor(new Color3f(0.7f,0.7f,0.7f));    mat.setSpecularColor(new Color3f(0.7f,0.7f,0.7f));    appearance.setMaterial(mat);
    shape.setAppearance(appearance);
 
Is something forgotten to add ?
 
Regards,
Saeed
















Saeed Ansari [EMAIL PROTECTED]
Islamic Azad University of  Qazvin , Faculty of computer & IT.
Header  Of  MRL Soccer Simulation Team.
 
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
===
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".

Re: [JAVA3D] What do you recommend ? ( picture attacehd )

2005-05-13 Thread Saeed Ansari
Hi,
That 's right.The coordinates are 2D, but I want to convert them to 3D after I succeed to darw them.These are Coordinates of buildings in 2D and then I want to convert them to 3D.
 
Regards,
SaeedJon Seanor <[EMAIL PROTECTED]> wrote:
I assume that it's a 2D co-ordinate system.If I'm correct then take a look at the Java2D APIperhaps?It has a huge range of functionality that should meetyour needs.Jon--- Saeed Ansari <[EMAIL PROTECTED]>wrote:> Hello,> I am working on a simulation project. Here I have a> machine that gives me an array of coordinates of a> shape in counter-clockwise order. What do you> recommend for using a method to draw this shape and> some others like this ?> I have attached the picture of the shape. Pleaes see> that and suggest me what to do ?>> Best regards,> Saeed Ansari>>>___How much free photo storage do you get? Store your holidaysnaps for FREE with Yahoo! Photos
 http://uk.photos.yahoo.com===To unsubscribe, send email to [EMAIL PROTECTED] and include in the bodyof the message "signoff JAVA3D-INTEREST". For general help, send email to[EMAIL PROTECTED] and include in the body of the message "help".
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
===
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".

[JAVA3D] What do you recommend ? ( picture attacehd )

2005-05-13 Thread Saeed Ansari


Hello,
I am working on a simulation project. Here I have a machine that gives me an array of coordinates of a shape in counter-clockwise order. What do you recommend for using a method to draw this shape and some others like this ?
I have attached the picture of the shape. Pleaes see that and suggest me what to do ?
 
Best regards,
Saeed Ansari
Do you Yahoo!?
Yahoo! Mail - Find what you need with new enhanced search. Learn more.
===
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".<>

[JAVA3D] What do you recommend ?

2005-05-13 Thread Saeed Ansari
Hello,
I am working on a simulation project. Here I have a machine that gives me an array of coordinates of a shape in counter-clockwise order. What do you recommend for using a method to draw this shape and some others like this ?
I have attached the picture of the shape. Pleaes see that and suggest me what to do ?
 
Best regards,
Saeed Ansari
Yahoo! Mail
Stay connected, organized, and protected. Take the tour
===
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".

[JAVA3D] a question about " IndexedTriangleStripArray "

2005-05-12 Thread Saeed Ansari
Hi,
I have used the constructor below for using IndexedTriangleStripArray, but it isn't drawn.
What 's the problem with this constructor ?
IndexedTriangleStripArray geometry=new IndexedTriangleStripArray( 6, IndexedTriangleStripArray.COORDINATES|IndexedTriangleStripArray.COLOR_3, 6, new int[] {3,3} );
Point3d[] points = new Point3d[] { new Point3d(0.5, 0, 0),new Point3d(.5, .5, 0), new Point3d(0, 0, 0), new Point3d(0, 0.5, 0), new Point3d(-.5, .5, 0),new Point3d(-.5, 0, 0),    };
geometry.setCoordinates(0, points);
 
And can you pleaes describe me the third parameter more. I read the sun dcument, but I didn't
understand exactly.
 
Regards,
Saeed
















Saeed Ansari [EMAIL PROTECTED]
Islamic Azad University of  Qazvin , Faculty of computer & IT.
Header  Of  MRL Soccer Simulation Team.
 
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
===
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".

[JAVA3D] Problem with Coordinates

2005-05-10 Thread Saeed Ansari
Hi,
I want to darw two squares, using TriangleStripArray, I use the constructor below :
 
    TriangleStripArray geometry = new TriangleStripArray(6,   TriangleStripArray.COORDINATES, new int[] {3,3});
    Point3d[] points = new Point3d[] { new Point3d(0.5, 0, 0),new Point3d(.5, .5, 0), new Point3d(0, 0, 0), new Point3d(0, .5, 0), new Point3d(-.5, -.5, 0),new Point3d(-.5, 0, 0),    };
 
1- Do I need to set 8 points or 6 points ?
2- How should be the order of the vertexes for each strip ? ( clockwise or counter_clockwise  )
 
Regards,
Saeed
Discover Yahoo!
Have fun online with music videos, cool games, IM & more. Check it out!
===
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".

[JAVA3D] The order of the vertices

2005-05-10 Thread Saeed Ansari
Hi all,
How should be the order the vertices in GeometryStripArrays ?
Clockwise or counter-clockwise ?
 
Regards,
Saeed
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
===
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".

Re: [JAVA3D] a sample code about TriangleStripArray

2005-05-10 Thread Saeed Ansari


Hi Hrvoje,
I didn't understand from the picture you send. May be I understand from the shape below, if you tell me stripCounts and vertexCounts.
I have problem tp understanding Strip. What is it exactly?
 
| \ | \
 
Regards,
SaeedHrvoje Smolic <[EMAIL PROTECTED]> wrote:
 vertex count is total number of vertexes (points) in array. StripVertexCount[] is number of strips,(imagine tracks one close to other to third...) | \ | \ | \ | \ | \ | | \ | \ | \ | \ | \ | | \ | \ | \ | \ | \ | | \ | \ | \ | \ | \ | = 5 strips, and 30 vertex



Saeed Ansari <[EMAIL PROTECTED]> Sent by: Discussion list for Java 3D API 
10.05.2005 11:13




Please respond to[EMAIL PROTECTED]





To
JAVA3D-INTEREST@JAVA.SUN.COM


cc



Subject
[JAVA3D] a sample code about TriangleStripArray




Hi all, Would someone send me a sample code for using TriangleStripArray ? I have problem to find what is the relation between first and third ( vertex count , StripVertexCount[]  )  parameter of TriangleStripArray . Can you tell me what is the relation ?   Regards, Saeed    


Yahoo! Mail MobileTake Yahoo! Mail with you! Check email on your mobile phone. === 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".
=== 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".
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
===
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".

[JAVA3D] a sample code about TriangleStripArray

2005-05-10 Thread Saeed Ansari
Hi all,
Would someone send me a sample code for using TriangleStripArray ?
I have problem to find what is the relation between first and third ( vertex count , StripVertexCount[]  )  parameter of TriangleStripArray . 
Can you tell me what is the relation ?
 
Regards,
Saeed
 
 
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
===
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".

[JAVA3D] Using TriangleStripArray Problem

2005-05-06 Thread Saeed Ansari
Hi All,I want to draw a cube with a TriangleStripArray . Has anyone a sample code for this?
 
Best regards,Saeed
Do you Yahoo!?
Yahoo! Mail - Find what you need with new enhanced search. Learn more.
===
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".

[JAVA3D] How to locate the SceneGraph at origin?

2005-05-05 Thread Saeed Ansari
Hi all,
I want to draw a Quad using two TriangleArray .I want to locate the Quad centrality ( 0, 0 , 0 ).
I used the code below :
 
Point3d[] coords = { new Point3d( 1.0, 0.0, 0.0 ),  new Point3d( 0.0, 0.0, -1.0 )
  new Point3d( -1.0, 0.0, 0.0 )  new Point3d( -1.0, 0.0, 0.0 )  new Point3d( 0.0, 0.0, 1.0 )  new Point3d( 1.0, 0.0, 0.0 )    };    Color3f[] colors = {  new
 Color3f(Color.white),  new Color3f(Color.white),  new Color3f(Color.white),  new Color3f(Color.white),  new Color3f(Color.white),  new Color3f(Color.white)  };    TransformGroup myTg=new TransformGroup();    Shape3D shape1=new Shape3D();    triangleArray.setColors(0,colors);    triangleArray.setCoordinates(0,coords);    shape1.setGeometry(triangleArray);    myTg.addChild(shape1);
    branchGroup.addChild(myTg);
 
But nothing appears on the screen.and when I change the Z_Axis' to Zero it works.
How can I do this ? and what is the problem with this coordinate ?
 
Regards,
Saeed 
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
===
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".

[JAVA3D] SceneGraph disappear

2005-05-04 Thread Saeed Ansari
Hi,
When I zoom out my SceneGraph it disapears. I have Used below method for translating by mouse :
 
 OrbitBehavior orbit = new OrbitBehavior(c3d, OrbitBehavior.REVERSE_ALL);     orbit.setSchedulingBounds(bounds);     viewingPlatform.setViewPlatformBehavior(orbit);
 
How can I solve this problem ?
 
Rregards,
Saeed
 
Discover Yahoo!
Stay in touch with email, IM, photo sharing & more. Check it out!
===
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".

[JAVA3D] Rotate Multiple Shapes

2005-05-04 Thread Saeed Ansari
Hi All,
I have multiple shapes that i have added them in a BranchGroup.
I want to rotate them together. How can I do this ?
Should I add a TransformGroup to this BranchGroup which has a Transform3D ?
Please help me.
 
Best Regards,
Saeed
Discover Yahoo!
Stay in touch with email, IM, photo sharing & more. Check it out!
===
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".

[JAVA3D] Problem with TriangleArray

2005-05-04 Thread Saeed Ansari
Hi,
I want to draw a Quad by using two TriangleArrays. I want to draw this Quad centerality
Point( 0 , 0 , 0 ).
This is the array I set for TriangleArray:

Point3d[] coords = { new Point3d( 1.0, 0.0, 0.0 ),
  new Point3d( 0.0, 0.0, -1.0 ),
  new Point3d( -1.0, 0.0, 0.0 ),
  new Point3d( -1.0, 0.0, 0.0 ),
  new Point3d( 0.0, 0.0, 1.0 ),
  new Point3d( 1.0, 0.0, 0.0 ) };
When I change the Z-axis to zero , it works !!
 
Regards,
Saeed
 
 
 
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
===
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".

[JAVA3D] How Setting TriangleStripArray parameters

2005-04-29 Thread Saeed Ansari
Hi,
How Should I set he last parameter ( stripVertexCounts[] ). I mean what is the relationship between vtxCount and stripVertexCounts[] ?
 
Regards,
Saeed
 __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com
===
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".

[JAVA3D] How to locate a shape exactly on other one

2005-04-29 Thread Saeed Ansari
Hi,
I have a TriangleArray and I want to locate a Sphere exactly on it's surface.
But when I change the radius of the Sphere, there is a distance between them.
Should I change the radius and set a bigger radius or there is a way to do this ?
 
Regards,
Saeed__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com
===
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".

[JAVA3D] Problem with TriangleArray

2005-04-28 Thread Saeed Ansari
Please see the below code, Nothing appears on the screen.
what is the problem?
public j3d(){    c3d=new Canvas3D(SimpleUniverse.getPreferredConfiguration());    su=new SimpleUniverse(c3d);    bgRoot=new BranchGroup();    execute();    }
    public void execute(){    add("Center",c3d);    setSize(400,400);    bgRoot=createSceneGraph();    su.getViewingPlatform().setNominalViewingTransform();    bgRoot.compile();    su.addBranchGraph(bgRoot);    show();    }
public BranchGroup createSceneGraph(){    BranchGroup bg1 = new BranchGroup();    Appearance app = new Appearance();    ColoringAttributes catt = new ColoringAttributes();    catt.setColor(new Color3f(Color.blue));    app.setColoringAttributes(catt);
    TriangleArray triangleArray=new TriangleArray(6,TriangleArray.COORDINATES|TriangleArray.COLOR_3);    triangleArray.setCoordinate(0,new Point3f(0.0f,0.0f,0.0f));    triangleArray.setCoordinate(1,new Point3f(2.0f,0.0f,0.0f));    triangleArray.setCoordinate(2,new Point3f(0.0f,0.0f,2.0f));    triangleArray.setCoordinate(3,new Point3f(0.0f,0.0f,2.0f));    triangleArray.setCoordinate(4,new Point3f(2.0f,0.0f,0.0f));    triangleArray.setCoordinate(5,new Point3f(2.0f,0.0f,2.0f));    Color3f red = new Color3f(1.0f, 0.0f, 0.0f);    for (int i=0;i<6;i++)   
 triangleArray.setColor(i,red);    bg1.addChild(new Shape3D(triangleArray,app));
    return bg1;    }
 
Regards,
Saeed__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com
===
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".

[JAVA3D] How to have a shape on other shape

2005-04-28 Thread Saeed Ansari
Hello,
I want to know how can I draw a box on a rectangle ?
 
 
Regards,
Saeed__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com
===
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".

[JAVA3D] Camera and Location of a Visual Object

2005-04-28 Thread Saeed Ansari
Hi,
I want to know, how can I set the location of the a box and it's view angle ?
for example I want to locate the box at vector ( 2.0 , 1.0 ,0.0 ) and the camera at
( 2.0 , 3.0 , 0.0 ) .
 
REgards,
Saeed__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com
===
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".

[JAVA3D] Problem with code

2005-04-26 Thread Saeed Ansari
Hello All,
I have written below code , but nothing appears on the screen.What is the problem?
 
public class J3D extends Frame {  VirtualUniverse virtual;  Locale locale;  BranchGroup bg;  Canvas3D c3D;  TransformGroup tg;  Transform3D trans3d;  ViewPlatform viewPlatform;  View view;  public J3D() {    virtual = new VirtualUniverse();    locale = new Locale(virtual);    c3D=new Canvas3D(SimpleUniverse.getPreferredConfiguration());    bg=new BranchGroup ();    tg=new TransformGroup();    trans3d=new Transform3D();    viewPlatform =new ViewPlatform();    init();  }  public void init(){    setLayout(new BorderLayout());        add("Center",c3D);    setSize(500,500);    ColorCube cube=new ColorCube(0.25f);   
 tg.addChild(cube);        trans3d.setTranslation(new Vector3f(0.0f,0.0f,-2.0f));        tg.setTransform(trans3d);    bg.addChild(tg);    locale.addBranchGraph(bg);    show();  }public static final void main( String args[]){   J3D j3d= new J3D(); }  
  }__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com
===
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".

[JAVA3D] Full API about Java3D

2005-04-26 Thread Saeed Ansari
Hello,
I want to know if someone has an API document about Java3D.
 
Regards,
Saeed
 __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com
===
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".

[JAVA3D] How have a Locale() ?

2005-04-26 Thread Saeed Ansari
Hi All,
I want to draw two cubes on a scene graph.But I have an error to get a new Locale class.
Can anyone describe me this class and how can I get a new Locale() ?
 
Regards,
Saeed__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com
===
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".

Re: [JAVA3D] Origin of the 3dVector

2005-04-23 Thread Saeed Ansari
I have used the below code for angle of the view:
 
   ViewingPlatform vp = simpleU.getViewingPlatform();   TransformGroup View_TransformGroup = vp.getMultiTransformGroup().getTransformGroup(0);   Transform3D View_Transform3D = new Transform3D();   View_TransformGroup.getTransform(View_Transform3D);   View_Transform3D.setTranslation(new Vector3f(0.0f,0.0f,0.5f));   View_TransformGroup.setTransform(View_Transform3D);
Is it correct or not ?
 
Regards,
Saeed   
Joerg 'Herkules' Plewe <[EMAIL PROTECTED]> wrote:




 

    Transform3D trans3D = new Transform3D();    trans3D.setTranslation(new Vector3f(0.0f,0.0f,0.0f));
 
is pretty much the same as 
 

    Transform3D trans3D = new Transform3D();
The origin of course IS Vector3f(0.0f,0.0f,0.0f). If you cannot see anything ... where is your camera looking to?
 
(IIRC, ColorCube is visible w/o light, right? Otherwise, some ambient light in the scene would be helpful)
 
 

- Original Message ----- 
From: Saeed Ansari 
To: JAVA3D-INTEREST@JAVA.SUN.COM 
Sent: Saturday, April 23, 2005 11:51 AM
Subject: [JAVA3D] Origin of the 3dVector

Hello,
I want to transfer a ColorCube.I am using Transform3D Class to locate the Color cube.
But when I set Location :
    Transform3D trans3D = new Transform3D();    trans3D.setTranslation(new Vector3f(0.0f,0.0f,0.0f));
nothing appears, just a black screen.
I tested with another locations, and now I can't find where id the origin of the 3d Vector on
the screen.
Can you help me?
 === 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". __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com
===
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".

[JAVA3D] Origin of the 3dVector

2005-04-23 Thread Saeed Ansari
Hello,
I want to transfer a ColorCube.I am using Transform3D Class to locate the Color cube.
But when I set Location :
    Transform3D trans3D = new Transform3D();    trans3D.setTranslation(new Vector3f(0.0f,0.0f,0.0f));
nothing appears, just a black screen.
I tested with another locations, and now I can't find where id the origin of the 3d Vector on
the screen.
Can you help me?
 
Regards,
Saeed__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com
===
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".

[JAVA3D] multiple BranchGroup

2005-04-22 Thread Saeed Ansari
Hi All,
I want to know how can I have multiple Object in a SimpleUnivers ?
For example two ColorCubes in a simpleUnivers ?
 
Regards,
Saeed__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com
===
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".