Re: [JAVA3D] texture mapping with a pattern

2003-01-31 Thread R. Carassou
thanks for your reply ok, it's easy with a primitive shape (sphere, cone) texture coordinates are automaticly created but how can i do that with a irregular geometry?? sorry if my question is stupid... I understand how to use the textCoordinate with a unique texture map onto a shape but not with a

Re: [JAVA3D] texture mapping

2002-09-10 Thread Alex Hew
helps.   -Alex- - Original Message - From: ajaxinc To: [EMAIL PROTECTED] Sent: Tuesday, September 10, 2002 5:02 PM Subject: Re: [JAVA3D] texture mapping Hi Alex,   I tried what you have suggested. It works to some extent ie. the texture was loaded

Re: [JAVA3D] texture mapping

2002-09-10 Thread ajaxinc
Hew To: [EMAIL PROTECTED] Sent: Monday, September 09, 2002 6:23 PM Subject: Re: [JAVA3D] texture mapping Hi Ajax,   TextureLoader load = new TextureLoader("c:/model/grass.jpg", null);Texture text = load.getTexture();    Appearance app = new

Re: [JAVA3D] texture mapping

2002-09-09 Thread Alex Hew
Hi Ajax,   TextureLoader load = new TextureLoader("c:/model/grass.jpg", null);Texture text = load.getTexture();    Appearance app = new Appearance(); app.setTexture(text);  Shape3D shape = new Shape3D(geometry, app);   I did it this way. Hope it helps.   -Alex- - Original Message

Re: [JAVA3D] texture mapping

2002-08-20 Thread Joachim Diepstraten
> I was wondering what the restrictions on the detail of texture mapping with > Java3D were. I would like to map a high resolution earth tiff file onto a > VRML sphere using Java3D but the tiff file is over 100MB. What exactly are The problem is normaly texture format which the hardware can handl

Re: [JAVA3D] texture mapping using image with black background

2002-06-18 Thread Lan Wu-Cavener
Thank you, Russell! It works nicely! I also found couple of good examples in java 3d tutorial. At 09:51 AM 6/14/2002 -0700, you wrote: >Save your image to a file type that supports transparency ( .gif or .png ) - >set the area you want to see the background through as transparent, and then >try

Re: [JAVA3D] texture mapping using image with black background

2002-06-14 Thread Russell Power
Save your image to a file type that supports transparency ( .gif or .png ) - set the area you want to see the background through as transparent, and then try texture mapping with that image. Here's a snippet of code which might help. BufferedImage dest; ... ImageComponent2D ic = new ImageCompone

Re: [JAVA3D] Texture mapping

2002-06-13 Thread Nathan Bower
Time to buy a book I think Sagar. ... But briefly, Hardware texture mapping removes load from the cpu by "painting" the textures onto the shapes (there are several ways) instead of having the CPU do it before sending the results to the graphics card. But the CPU is hardware too I hear you cry? Y

Re: [JAVA3D] texture mapping?

2002-04-15 Thread John Wright
imensions on-the-fly. > > Thanks again > > Sam > > -Original Message- > From: Discussion list for Java 3D API > [mailto:[EMAIL PROTECTED]]On Behalf Of David Rush > Sent: 14 April 2002 17:14 > To: [EMAIL PROTECTED] > Subject: Re: [JAVA3D] texture mapping? > >

Re: [JAVA3D] texture mapping?

2002-04-14 Thread Sam Hocking
ECTED] Subject: Re: [JAVA3D] texture mapping? Sam, No you are right the filters do not alter the shape in any way. They work by either using point sampling of neighbouring texels and using that colour, or by interpolating among neighbouring texels, depending on which mode you choose. Hmmm I'

Re: [JAVA3D] texture mapping?

2002-04-14 Thread David Rush
April 2002 17:03 To: [EMAIL PROTECTED] Subject: Re: [JAVA3D] texture mapping? Hi David, Will setMag/MinFilter resize the *shape* to fit the image dimension that will map onto it though? From what i can gather it doesn't. An easier way for me to explain it might be to assume i have one image whic

Re: [JAVA3D] texture mapping?

2002-04-14 Thread Sam Hocking
Behalf Of David Rush Sent: 14 April 2002 16:27 To: [EMAIL PROTECTED] Subject: Re: [JAVA3D] texture mapping? Hello Sam, You probably know already but remember your images must be a power of 2 in width and height otherwise you'll get an exception. How the texture maps to the shape is deter

Re: [JAVA3D] texture mapping?

2002-04-14 Thread David Rush
Hello Sam, You probably know already but remember your images must be a power of 2 in width and height otherwise you'll get an exception. How the texture maps to the shape is determined by the texture coordinates of the shape. The image will distort to meet the texture coordinates, so the size o

Re: [JAVA3D] Texture Mapping and Loaders

2001-09-18 Thread Joachim Diepstraten
Hi Alejandro > How can I use texture mapping with Shape3D's imported with > a Loader if I don't know what geometry types are used in > the objects? Well simply before you add the Scene to your ContentBranch of your Locale traverse through the Graph. You will hit at the end a Shape3D because it's

Re: [JAVA3D] Texture Mapping and Loaders

2001-09-17 Thread Yazel, David J.
I may be misunderstanding your question, but you can just walk the scene graph after the objects are loaded and use the "instanceof" java command to find the shapes, their geometries and thier types.   Dave Yazel -Original Message-From: Alejandro Terrazas [mailto:[EMAIL PROTECT

Re: [JAVA3D] Texture mapping and transparency

2001-05-11 Thread nader
you should try the volume rendering example under utilities at j3d.org. but be forwarned, there are limitations/bugs that i have posted on this list but no one from sun has replied back. nader On Fri, 11 May 2001 12:29:08 -0700, Vidya Sagar <[EMAIL PROTECTED]> wrote: >Hi, > I am presently

Re: [JAVA3D] texture mapping

2001-01-04 Thread Yazel, David J.
I think you need to specify the coordinates manually for something like that. I have seldom seen a time where the automatic tex coord generation is useful. Generally the only time is when the geometry is procedural and you can equate some mathematical mapping from your r,s to u,v. Dave Yazel Co

Re: [JAVA3D] Texture Mapping

2000-05-26 Thread Roberto Speranza
I think the easiest way to do this to change the texture coordinates of each cube face to reverse the image in the direction you want. If you take the existing texture coordinates for each face and swap the coordinates for the axis you want to reverse, that should do the trick. Roberto Speranza

Re: [JAVA3D] texture mapping question

1999-09-23 Thread Hexerei Software Creations
these instead TextureLoader(java.net.URL maybe.. possibly.. give it a try. -Ursprüngliche Nachricht- Von: ing. P.W.L. JANSSEN <[EMAIL PROTECTED]> An: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Datum: Mittwoch, 22. September 1999 10:36 Betreff: Re: [JAVA3D] texture mapping question

Re: [JAVA3D] texture mapping question

1999-09-22 Thread Olivier fillon
Original Message- From: ing. P.W.L. JANSSEN <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Wednesday, September 22, 1999 8:49 PM Subject: Re: [JAVA3D] texture mapping question >CAZOULAT Renaud CNET/DIH/REN wrote: > >> > The app is failing to creat

Re: [JAVA3D] texture mapping question

1999-09-22 Thread Roberto Speranza
ons Inc. mailto:[EMAIL PROTECTED] http://www.dotinc.net/ - Original Message - From: ing. P.W.L. JANSSEN <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: September 22, 1999 6:19 AM Subject: Re: [JAVA3D] texture mapping question > CAZOULAT Renaud CNET/DIH/REN wrote: > >

Re: [JAVA3D] texture mapping question

1999-09-22 Thread ing. P.W.L. JANSSEN
CAZOULAT Renaud CNET/DIH/REN wrote: > > The app is failing to create the TextureLoader from the > > arguments you supply > > so texLod0 is null hence the null pointer exception later on. I've tried it with an other image and with a canvas3d as the observer but still the same message.As you can

Re: [JAVA3D] texture mapping question

1999-09-22 Thread CAZOULAT Renaud CNET/DIH/REN
> The app is failing to create the TextureLoader from the > arguments you supply > so texLod0 is null hence the null pointer exception later on. Exactly, as the internal BufferedImage has not been loaded (i.e. is still null), a null pointer exception is raised when trying to resize the image to

Re: [JAVA3D] texture mapping question

1999-09-22 Thread CAZOULAT Renaud CNET/DIH/REN
Hi, > This is the error message: > Error: in loading image > Error: in loading image That means the observer.checkimage has returned ImageObserver.ERROR So either the image is not there/corrupted or your implementation of ImageObserver is not correct. > texLod0 = new TextureLoader(new java.net.U

Re: [JAVA3D] texture mapping question

1999-09-22 Thread David Turland
g. P.W.L. JANSSEN <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 22, 1999 9:46 AM Subject: Re: [JAVA3D] texture mapping question > Hi Renaud, > > Thanks for your advice, but unfortunaly it didn't work. > This is my code : >public void c

Re: [JAVA3D] texture mapping question

1999-09-22 Thread ing. P.W.L. JANSSEN
Hi Renaud, Thanks for your advice, but unfortunaly it didn't work. This is my code : public void createAppearances() { Color3f black = new Color3f(0.0f, 0.0f, 0.0f); Color3f deepRed = new Color3f(0.9f, 0.2f, 0.1f); Color3f royalBlue = new Color3f(0.1f, 0.3f, 0.9f);

Re: [JAVA3D] texture mapping question

1999-09-21 Thread CAZOULAT Renaud CNET/DIH/REN
Hi, a null pointer exception in texture loader often means it cannot find the texture. Try to use the constructor with an url like : TextureLoader texLod0 = new TextureLoader(new java.net.URL ("file:sign1.gif"), new String("RGB"), this); I