Re: [JAVA3D] Bug in PickIntersection Class? bug 4516752

2002-10-16 Thread R CM
erp > point outside triangle"); > } > break; > > which I think is > pointCoordinatesVW; > > not initialize properly before > pickIntersection.getPointCoordinates(); > invoke. > > Please send us a complete test case to tak

[JAVA3D] ColorCube problem

2002-10-16 Thread R CM
Hi all, I've recently update to j3d1.3 and jdk1.4.1 and a amazing problem occur with the ColorCube class you can test the Bug with the SimpleUniverseLess.java recently post by Kelvin Chung replace the line : import com.sun.j3d.utils.geometry.ColorCube; by : import com.sun.j3d.utils.geometry.*;

[JAVA3D] Bug in PickIntersection Class? bug 4516752

2002-10-15 Thread R CM
Hi, in the mailingListArchive( 07/02/2002) i've find a mail post by Kelvin Chung bug 4516752 - IntersectTest throws runtime exceptions is fixed in the next v1.3 beta2 release. But I'm getting this error with J3d 1.3 (with jdk 1.4.1) I am getting the error "interp point outside triangle" when I d

Re: [JAVA3D] Linear scaling for zoom

2002-10-09 Thread R CM
try this code: x = evt.getX(); y = evt.getY(); dx = x - x_last; dy = y - y_last; double scaleValue = 1.0; if (dy < 0) scaleValue = ((-scaleFactor_*Math.abs(dy))/(scaleFactor_*Math.abs(dy)+1))+1; else scaleValue = scaleFactor_*dy+1; transformX.set(scaleValue); set this transform3D to the v

Re: [JAVA3D] Drawing intersection of Geometry with Cutting Plane

2002-10-09 Thread R CM
i'm actually use the "hardware method", with two clips planes in fact the front clip and the back clip of a camera locate just on the cut plane. works only with parallel projection (see my code bellow) but the result is not very nice the cross section obtained is a dotted line... there are some g

[JAVA3D] Basic Texture Mapping

2002-09-17 Thread R CM
Hello I've got a basic Problem with Texture Mapping, I search in the archives, and in the great book written by D.Selman but i really need help... i would like to apply and repeat a image (128 *128) onto a spheroid shape3D (geom = trianglearray) without distorsion and without effect when i zoom on

[JAVA3D] TriangleArray Topology Need help

2002-09-09 Thread R CM
Hi all I really need some informations about the Triangulator class and the triangleArray... I use a geometryInfo(Polygon array) with coordinates and indices arrays then i triangulate it then recomputeIndice() so i've got a geometryInfo (TriangleArray) i want to know each triangles and each gro

[JAVA3D] normals generator problem

2002-08-21 Thread R CM
Hi all my problem: I want to compute the exterior normals for each triangle of a non convex shape I use a geometryInfo(Polygon array) then a triangulate it then recomputeIndice() so i've got a geometryInfo (TriangleArray) i try to use the normalGenerator but all "vertex normals" seem to be orie

[JAVA3D] Normals problem

2002-07-25 Thread R CM
Hi all, I want to compute the external normals of each triangle of a TriangleArray (closed shape) (in fact a GeometryInfo (PolygonArray) convert into TriangleArray by the Triangulator utility) I'm using the normalGenerator but with a simple test case (tetrahedron) some of the generated normals a

Re: [JAVA3D] Live Object

2002-07-24 Thread R CM
hi all, two way for do this : first: in your PickBehavior (you can find a exemple in the J3d Demo) pickcanvas = new PickCanvas(canvas,rootBG); pickcanvas.setMode( PickTool.GEOMETRY_INTERSECT_INFO) ; public void updateScene(int xpos, int ypos) { PickResult pickResult = null; pickCanvas.setShapeL

[JAVA3D] wgl DLL init error

2002-07-17 Thread R CM
hi all, some time a error occur when i run my application It' s maybe a Ogl error not a j3D error but I'm not sure. the output : wgl CreateContext failed : a init method of a DLL failed the only solution to solve this problem when it occur , it's to reboot my machine... any other idea? maybe som

Re: [JAVA3D] removing a child

2002-07-09 Thread R CM
hi David, to use removeChild(),you must know the child's index. you can store this index or use Branchgroup.detach() instead. Download the Java 3D Tutorial available from Sun, complete with examples! http://java.sun.com/products/java-media/3D/collateral/ There is a french translation of the tut

Re: [JAVA3D] volume and surface

2002-07-01 Thread R CM
Hi all, I'm also very interrested about this subject I think olivier want to compute the mathematical area of the shape : you must make the sum of the areas of each triangle. and for the mathematical volume, i think it's more difficult... perhaps with a octree method and test for each cell if it'

Re: [JAVA3D] Zoom in ortogonal projection

2002-06-24 Thread R CM
hello , use the scale factor of a TG... in the scene, or in the view branchGraph. if you want to make your own MouseScaleBehavior instead of the MouseZoomBehavior, be carefull the minus scale is between 0 to 1 and the plus scale is between 1 to infinity, you can look the source code of the MouseZo

[JAVA3D] about new OrbitBehavior

2002-06-21 Thread R CM
Hi all, I have just a simple question, why the method "transformChanged" or the MouseBehaviorCallback system doesn't exist in this class (orbitBehavior)??? how can i get the transform3D apply to the Viewing plateformTG?? (without modifying the source code and add my own method TransformChanged!)

[JAVA3D] OrbitBehavior BUG?

2002-06-13 Thread R CM
hello, They are many mails post in the archive about this behavior but i've don't find the same Bug... i've download the 1.3beta OGL version and i have a new bug in my application with the OrbitBehavior (com.sun.j3d.utils.behaviors.vp.OrbitBehavior) the behavior only work (wake up) with the can

[JAVA3D] JDK 1.3.1 with j3d 1.3b2 please Help!!

2002-05-30 Thread R CM
Hello, i can't use the last beta version(1.3b2) with my jdk 1.3.1_03 i can't compile the j3d demo or my own code (with j3d import!) the compiler don't find the package "java.nio." but the code never call this package, it's very weird... (compiler output at the end of mail) and it's work fine with

Re: [JAVA3D] OrientedShape with multiple views : bug?

2002-05-28 Thread R CM
Fabio > > > > > -Original Message- > > From: R CM [mailto:[EMAIL PROTECTED]] > > Sent: segunda-feira, 27 de maio de 2002 06:16 > > To: [EMAIL PROTECTED] > > Subject: [JAVA3D] OrientedShape with multiple > views : bug? > > > > > >

[JAVA3D] OrientedShape with multiple views : bug?

2002-05-27 Thread R CM
hello, the J3D API doc say for the OrientedShape class: "It is similar in functionality to the Billboard behavior, but OrientedShape3D nodes will orient themselves correctly for each view, ... " if i have only one view, it's work well, but when i use a oriented Shape with 4 differents views in

[JAVA3D] code design question for shape preview

2002-05-15 Thread R CM
hi i want to make a panel with several "shapes previews" in a gridLayout and be able to select one and import it in my viewer. how design my code : one universe for each preview and one more for the viewer? one universe for all the previews, with several cameras (and canvas 3D), and one more for

[JAVA3D] make slice in a shape

2002-05-15 Thread R CM
hi all, I've already ask some help about this subject, but i need more help i'm want to move a cut plane on a shape and getting the cross-section in a other canvas (2D or 3D) I use the front clip and the back clip of the camera as cut plane, and the camera is locate juste in front of the cut pl

[JAVA3D] differents textures on the both sides of a shape 3D

2002-05-02 Thread R CM
hi all, can I apply two differents textures on the both sides of a shape 3D? does I need to make two shapes and place them back to back? or anyone have a better solution ? Thanking you in advance for your help. Renaud ___ Do You Yahoo!?

Re: [JAVA3D] make slice in a shape, how use modelClip class?

2002-04-15 Thread R CM
> the cross section. > If you use ModelClip then the clipping will also be > seen on other cameras in > the scene. > > R CM schrieb: > > > hi all, > > I'm looking for some help or some code exemples > > > > i'm want to move a cut plane on a shape

[JAVA3D] make slice in a shape, how use modelClip class?

2002-04-12 Thread R CM
hi all, I'm looking for some help or some code exemples i'm want to move a cut plane on a shape and getting the cross-section in a other canvas (2D or 3D) i think i must use the modelClip class but i'm not sure and I dont understand how it's work... i have already try to use a camera locate on