[JAVA3D] Texture Coordinates problems.

2005-04-20 Thread Hrvoje Smolic
Hello! I'm doing my little Java3D project for a while now. My general idea is to construct a big virtual world. From a height map I construct an TriangleStripArray. Last few days I spent on problem of multitexturing with several TextureUnitStates. From a height information at specific point I want

Re: [JAVA3D] TEXTURE WITH VRML LOADER AND JAVA3D

2004-08-04 Thread Alessandro Borges
About : --- Serge Bernier <[EMAIL PROTECTED]> wrote: > Serge > > p.s. Im about to finish a loader to implement 3ds mesh animation. The loader > take exported vrml97 files representing the key frames. The animation doesnt > interpolated between keys but with a good frame rate it does the job. If >

Re: [JAVA3D] TEXTURE WITH VRML LOADER AND JAVA3D

2004-08-03 Thread Serge Bernier
:-) That seem very interresting!! That for the response, that exactly what I was looking for. Good luck with the converting stuff. Serge p.s. Im about to finish a loader to implement 3ds mesh animation. The loader take exported vrml97 files representing the key frames. The animation doesnt inte

Re: [JAVA3D] TEXTURE WITH VRML LOADER AND JAVA3D

2004-08-03 Thread Justin Couch
(Sorry for the slow reply, got my head stuck in converting some C++/D3D/HLSL code over to Java/JOGL(AV3D)/GLSLang stuff right now for siggraph. Fascinating task (g), ask me over a beer sometime... ) Serge Bernier wrote: Do you meen the MODULATE capabiltiy in the TextureAttributes object??? Corr

Re: [JAVA3D] TEXTURE WITH VRML LOADER AND JAVA3D

2004-08-03 Thread Serge Bernier
Hi, > Find all the REPLACE entries and replace them with MODULAR, then your > textures will be lit. Do you meen the MODULATE capabiltiy in the TextureAttributes object??? Ive been playing with the capabilities of the testureAttributes (BLEND,REPLACE,MODULATE,ect..) and the result in java3d is n

Re: [JAVA3D] TEXTURE WITH VRML LOADER AND JAVA3D

2004-08-03 Thread Nikolai V. Chr.
Serge Bernier wrote: Hi all, does anyone know why a vrml object with texture viewed in a vrml editor look very nice and when you loaded in java3d it not nice anymore?? All the object seem to have the texture color (REPLACE MODE) and when there is no light I see the texture. Another question: Does t

Re: [JAVA3D] TEXTURE WITH VRML LOADER AND JAVA3D

2004-08-02 Thread Justin Couch
Serge Bernier wrote: If yes: how can I tell to my texture to react to light?? The simple answer is to ignore the VRML specification. VRML requires replace mode to be used for colour textures (RGB, RGBA). You want something that the spec explicitly says should not be done. -- Justin Couch

[JAVA3D] TEXTURE WITH VRML LOADER AND JAVA3D

2004-08-02 Thread Serge Bernier
Hi all, does anyone know why a vrml object with texture viewed in a vrml editor look very nice and when you loaded in java3d it not nice anymore?? All the object seem to have the texture color (REPLACE MODE) and when there is no light I see the texture. Another question: Does texture is affected

Re: [JAVA3D] Texture in a Shape3d

2004-06-10 Thread Romil Shah
In your module createAppearance add : TextureLoader txtL = new TextureLoader("image-name",this); ap.setTexture(txtL.getTexture); This should work. -- Romil D. - Original Message - From: Wendel Silva <[EMAIL PROTECTED]> Date: Thursday, June 10, 2004 1:34 pm Subject: [JA

[JAVA3D] Texture in a Shape3d

2004-06-10 Thread Wendel Silva
Hi, How can i put some texture in a shape3d? []'s Wendel B Silva Below is my code to create a single plane import javax.media.j3d.*; import javax.vecmath.*; public class Shape extends Shape3D { public Shape(double height, double width) { this.setGeometry(createGeometry(height, width)

Re: [JAVA3D] Texture

2004-02-20 Thread pumpkin
Hello On Friday 20 February 2004 17:16, you wrote: > Hunt mentioned that this was > not the result I wanted because the renderer has devided the quad into 2 > triangles then applied the texture to each one..so how can I get it right ? The easy way: Use more triangles. (or an different texture) Qu

Re: [JAVA3D] Texture

2004-02-20 Thread Bassam
t;[EMAIL PROTECTED]>To: <[EMAIL PROTECTED]>Sent: Friday, February 20, 2004 5:18 AMSubject: [JAVA3D] Texture> Hi Bassam> I don't understand "quadraliterl". I didn't found it in a word book or in> the java3d docs. Do you mean a quad

Re: [JAVA3D] texture problem

2004-02-19 Thread Bassam
I would like to ask you to test rendering a  4-point quadraliteral and apply texture. See what happens ?If somebody got it right please send me  some code.   I don't think it is the graphics card because I tested the program over two different cards (NVIDIA GeForce and Rage 128 Pro)  and I g

Re: [JAVA3D] texture problem

2004-02-19 Thread Chris Ender
] = app;imageSwitch.addChild(new Shape3D(qa, app));     Chris - Original Message - From: Bassam To: [EMAIL PROTECTED] Sent: Wednesday, February 18, 2004 11:04 PMSubject: [JAVA3D] texture problemI have a 4 vertix planar polygon (not a square ,because the base is much longer)The problem is when I

Re: [JAVA3D] texture problem

2004-02-19 Thread T.J.Hunt
From: Bassam [mailto:[EMAIL PROTECTED] > I have a 4 vertix planar polygon (not a square ,because the > base is much longer) The problem is when I apply this texture > on it ,the straight lines will be bent in a strange > way...take a look at the two pictures the texture coordinates are: > upp

Re: [JAVA3D] texture problem

2004-02-18 Thread Bassam
I think this is a rendering problem . If you guys considered the left blue strip , it goes straight by the edge. However, it should be minified as we are interpolating upwards.  I need to tell the renderer how to texture my object.   Has anybody exprienced such a thing?   Bassam =

Re: [JAVA3D] Texture bad quality

2004-02-18 Thread Paul Pantera
> http://www-public.tu-bs.de:8080/~y0002384/data/ I believe what you're experiencing is called "mach banding." It occurs when there is a slight change in color over a large area. You end up with bands of different colors instead of a smooth gradiation. It occurs because there aren't enough bits

Re: [JAVA3D] Texture bad quality

2004-02-17 Thread pumpkin
Hello forget my last post, the server is (back) online. On Tuesday 17 February 2004 15:44, you wrote: > the texture as a file on my disk has > 16.8 million colors (24 bits) and a size of 640x480 pixel. 640x480 ? So it is resized/scaled before it becomes a texture ? That's bad. (try 512x512) The

Re: [JAVA3D] Texture bad quality

2004-02-17 Thread pumpkin
Hello > I did a screenshot and put it with the texure on my website > http://www-public.tu-bs.de:8080/~y0002384/data/ .. is the server down or is my providers DNS acting funny again ? the IP i get is 134.169.9.108. No http, no ftp, no ping. (If the images are < 200KB, send them to [EMAIL PROTE

Re: [JAVA3D] Texture bad quality

2004-02-17 Thread Michael Pfeiffer
; Sent: Tuesday, February 17, 2004 2:12 PM Subject: Re: [JAVA3D] Texture bad quality Chris, Actually I take that back, it shouldn't be the screen capture as your spheres are nice and crisp. Thus it appears that however you've mapped the texture onto the background it may be getting ma

Re: [JAVA3D] Texture bad quality

2004-02-17 Thread Bassam
Hi Chris, I took a look at the pictures and I have to say that there is a big difference between them...!   The original picture "texture" is definitly 24 bit color, I can tell by the grading of the grey color and the white too.Pfeifer might be right , there are some graphic cards that do not

Re: [JAVA3D] Texture bad quality

2004-02-17 Thread John Wright
nice to have nicer screenshots : ) > Bye Chris > > - Original Message - > From: "pumpkin" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Sunday, February 15, 2004 6:05 PM > Subject: Re: [JAVA3D] Texture bad quality > > > Hello > &

Re: [JAVA3D] Texture bad quality

2004-02-17 Thread John Wright
ity. > But why? I need to finish my thesis in 2 weeks and it would be > nice to have nicer screenshots : ) > Bye Chris > > - Original Message - > From: "pumpkin" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Sunday, February 15, 2004 6:05

Re: [JAVA3D] Texture bad quality

2004-02-17 Thread Michael Pfeiffer
]> To: <[EMAIL PROTECTED]> Sent: Sunday, February 15, 2004 6:05 PM Subject: Re: [JAVA3D] Texture bad quality Hello On Saturday 14 February 2004 22:02, you wrote: > I applied a grayscale image with 24bit as a texture to a simple quad. What fileformat are you using ? jpeg ? BMP ? > i

Re: [JAVA3D] Texture bad quality

2004-02-17 Thread Chris Ender
ris - Original Message - From: "pumpkin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, February 15, 2004 6:05 PM Subject: Re: [JAVA3D] Texture bad quality > Hello > > On Saturday 14 February 2004 22:02, you wrote: > > I applied a grayscale

Re: [JAVA3D] Texture bad quality

2004-02-15 Thread pumpkin
Hello On Saturday 14 February 2004 22:02, you wrote: > I applied a grayscale image with 24bit as a texture to a simple quad. What fileformat are you using ? jpeg ? BMP ? > it > works perfect but looks bad. the image seems to be color reduced. it is not > dithered or have compression artefacts bu

[JAVA3D] Texture bad quality

2004-02-14 Thread Chris Ender
Hello, I applied a grayscale image with 24bit as a texture to a simple quad. it works perfect but looks bad. the image seems to be color reduced. it is not dithered or have compression artefacts but have blocklike structures. it might have 256 colors? has anybody a solution or idea? //create geom

[JAVA3D] texture mapping

2004-01-12 Thread Gregory Gimler
Hello, I have a question concerning java 3d 1.2.1 VS java 3d 1.3. I have not been able to upgrade to 1.3 until just recently. The problem I had was the sphere I was texture mapping with just a jpeg image would show up fine in 1.2.1 and would show up white in 1.3. The code fix was the following:

Re: [JAVA3D] texture coords exception...

2004-01-06 Thread Flavius Alecu
MAIL PROTECTED] Subject: Re: [JAVA3D] texture coords exception... Date: Tue, 6 Jan 2004 17:07:27 - Flavius said: > Ok, I get an Illegal ArgumentException when I try tu run my app. It > says: 2D texture coordinates not specified... According to the javadoc that is thrown if :

Re: [JAVA3D] texture coords exception...

2004-01-06 Thread Jeremy Booth
Flavius said: > Ok, I get an Illegal ArgumentException when I try tu run my app. It > says: 2D texture coordinates not specified... According to the javadoc that is thrown if : if texCoordSet < 0 or texCoordSet >= texCoordSetCount, or the texture coordinate parameters were not previously set by ca

[JAVA3D] texture coords exception...

2004-01-06 Thread Flavius
Ok, I get an Illegal ArgumentException when I try tu run my app. It says: 2D texture coordinates not specified... here's my code: TexCoord2f tp1 = new TexCoord2f( 0.0f, 0.0f); TexCoord2f tp2 = new TexCoord2f(25.0f, 0.0f); TexCoord2f tp3 = new TexCoord2f(25.0f, 5.0f); TexCoord2f tp4 = new TexCoord

Re: [JAVA3D] texture coordinates....

2003-10-15 Thread Dirk L. van Krimpen
ED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 15, 2003 3:17 PM Subject: [JAVA3D] texture coordinates > so, now I used texture coordinates to put textures on teh ground and on a > brick wall > > i think i have some problems with those. the brick wall, looks really

[JAVA3D] texture coordinates....

2003-10-15 Thread Flavius Alecu
so, now I used texture coordinates to put textures on teh ground and on a brick wall i think i have some problems with those. the brick wall, looks really nice, when you're close to it..when you go far away from it, the texture starts moving around and changing size...this is definetly some tex

[JAVA3D] texture by references

2003-06-20 Thread Auguste Genovesio
If i use a texture by reference with de following types   BufferedImage.TYPE_3BYTE_BGR + ImageComponent.FORMAT_RGB   then i paint the getGraphics() of the BuffredImage, will the view3D be updated straight?    --Auguste GenovesioQuantitative Image Analysis GroupInstitut Pasteur25, rue du Doct

Re: [JAVA3D] AW: [JAVA3D] Texture loading problem for big files ...

2003-06-06 Thread Lan Wu-Cavener
w data. You can use BY_REF mode to avoid recopying of the data. Cheers, Florin -Ursprüngliche Nachricht- Von: Alessandro Borges [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 6. Juni 2003 14:28 An: [EMAIL PROTECTED] Betreff: Re: [JAVA3D] Texture loading problem for big files ... Another opt

Re: [JAVA3D] AW: [JAVA3D] Texture loading problem for big files ...

2003-06-06 Thread Lan Wu-Cavener
data. You can use BY_REF mode to avoid recopying of the data. Cheers, Florin -Ursprüngliche Nachricht- Von: Alessandro Borges [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 6. Juni 2003 14:28 An: [EMAIL PROTECTED] Betreff: Re: [JAVA3D] Texture loading problem for big files ... Another option

[JAVA3D] AW: [JAVA3D] Texture loading problem for big files ...

2003-06-06 Thread Florin Herinean
sandro   - Original Message - From: hammad To: [EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:58 AM Subject: [JAVA3D] Texture loading problem for big files ... I am trying to load a map within my 3D Universe via TextureLoader utility

Re: [JAVA3D] Texture loading problem for big files ...

2003-06-06 Thread Lan Wu-Cavener
components. You could probably load a 2k x 2k image in under a second with this approach. Dave Yazel -Original Message- From: hammad [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 12:58 AM To: [EMAIL PROTECTED] Subject: [JAVA3D] Texture loading problem for big files ... I am trying

Re: [JAVA3D] Texture loading problem for big files ...

2003-06-06 Thread Alessandro Borges
Sent: Thursday, June 05, 2003 1:58 AM Subject: [JAVA3D] Texture loading problem for big files ... I am trying to load a map within my 3D Universe via TextureLoader utility.. The problem which i am facing is that is eats a hell lot of time I have tried differenent file formats

Re: [JAVA3D] Texture loading problem for big files ...

2003-06-06 Thread Alessandro Borges
vel, image); } - Original Message - From: "Lan Wu-Cavener" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 05, 2003 3:57 PM Subject: Re: [JAVA3D] Texture loading problem for big files ... > hi, > > I assume that t

Re: [JAVA3D] Texture loading problem for big files ...

2003-06-06 Thread Lan Wu-Cavener
hi, I assume that this can only applies to BASE_LEVEL, There is no way to generate MULTI_LEVEL_MIPMAP texture wihtout using TextureLoader. Lan At 10:29 AM 6/5/2003 -0300, you wrote: Texture tex = fastLoadJPGTextures("stone.jpg", Texture.BASE_LEVEL, Texture.RGB, 0); / BEGIN CODE *

Re: [JAVA3D] Texture loading problem for big files ...

2003-06-05 Thread Alessandro Borges
 return t2d;  }   /*** END CODE /   I hope it helps Alessandro     - Original Message - From: hammad To: [EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:58 AM Subject: [JAVA3D] Texture loading problem for big fil

Re: [JAVA3D] Texture loading problem for big files ...

2003-06-05 Thread Yazel, David J.
To: [EMAIL PROTECTED]Subject: [JAVA3D] Texture loading problem for big files ... I am trying to load a map within my 3D Universe via TextureLoader utility.. The problem which i am facing is that is eats a hell lot of time I have tried differenent file formats like gif, bmp and jpg ...

Re: [JAVA3D] Texture loading problem for big files ...

2003-06-05 Thread Martin Frey
May be it's possible to preload it via one Thread? So you take no notice of loading the texture.   greetz Martin - Original Message - From: hammad To: [EMAIL PROTECTED] Sent: Thursday, June 05, 2003 6:58 AM Subject: [JAVA3D] Texture loading problem fo

Re: [JAVA3D] Texture loading problem for big files ...

2003-06-05 Thread Vladimir Vernikovski
-- From: hammad To: [EMAIL PROTECTED] Sent: Thursday, June 05, 2003 7:58 AM Subject: [JAVA3D] Texture loading problem for big files ... I am trying to load a map within my 3D Universe via TextureLoader utility.. The problem which i am facing is that is eats a hell l

[JAVA3D] Texture loading problem for big files ...

2003-06-05 Thread hammad
I am trying to load a map within my 3D Universe via TextureLoader utility.. The problem which i am facing is that is eats a hell lot of time I have tried differenent file formats like gif, bmp and jpg . the.bmp files loads the fastest that is around 40 secs ... which is a 12MB file  

[JAVA3D] Texture Attribute problem

2003-03-24 Thread Jack Bowie
I'm sure there's a simple answer to this, but ... I have a Group Node that contains 12 Shape3Ds. Each Shape3D is a face of a dodecahedron and has an independent TFA geometry with coordinates, colors, normals, and texture coords. I am using separate Shape3Ds because I want to associate transparency

Re: [JAVA3D] Texture oddity

2003-02-21 Thread martin
Thursday, February 20, 2003 12:40 AM Subject: [JAVA3D] Texture oddity Hi   Im having some trouble with Textureing anyone help or tell me what i might be doing wrong?   Im making a simple QuadArray item consiting of COORDINATES,  NORMALS and TEXTURE_COORDINATE_2 items. I ha

[JAVA3D] AW: [JAVA3D] Texture oddity

2003-02-20 Thread Florin Herinean
Can you sent us a sample, or a picture with the good and distorted picture ?   Florin -Ursprüngliche Nachricht-Von: martin [mailto:[EMAIL PROTECTED]]Gesendet: Donnerstag, 20. Februar 2003 01:40An: [EMAIL PROTECTED]Betreff: [JAVA3D] Texture oddity Hi   Im having some

[JAVA3D] Texture oddity

2003-02-19 Thread martin
Hi   Im having some trouble with Textureing anyone help or tell me what i might be doing wrong?   Im making a simple QuadArray item consiting of COORDINATES,  NORMALS and TEXTURE_COORDINATE_2 items. I have set 4 Point3f items defining my coordinates and have used GeometryInfo and NormalGener

Re: [JAVA3D] texture mapping with a pattern

2003-01-31 Thread R. Carassou
xture coordinates to the vertex > definition in your > geometry. > > Cheers, > > Florin > > -Ursprüngliche Nachricht- > Von: R. Carassou [mailto:[EMAIL PROTECTED]] > Gesendet: Donnerstag, 30. Januar 2003 18:00 > An: [EMAIL PROTECTED] > Betreff: [JAVA3D] te

[JAVA3D] AW: [JAVA3D] texture mapping with a pattern

2003-01-31 Thread Florin Herinean
: [EMAIL PROTECTED] Betreff: [JAVA3D] texture mapping with a pattern Hi all, i need some help with texture... who can give me a good recipe (or code exemple) to add a texture (repeat a pattern) onto a triangleArray. see my code below i haven't found a complete tutorial about texture, if someone

[JAVA3D] texture mapping with a pattern

2003-01-30 Thread R. Carassou
Hi all, i need some help with texture... who can give me a good recipe (or code exemple) to add a texture (repeat a pattern) onto a triangleArray. see my code below i haven't found a complete tutorial about texture, if someone know a good link, it's would be great. Thanks in advance Regards Renau

Re: [JAVA3D] texture coordinate set

2003-01-12 Thread chris Thorne
Thanks  Brad, That's what I thought but I could not find an explanation :) chris Brad Christiansen wrote: Hi CHris, A texCoordSet is a set of textuer coordinates for the geometry. When you do multi texturing you can specify several sets fo texture coords, and then you can specify which s

Re: [JAVA3D] texture coordinate set

2003-01-12 Thread Brad Christiansen
Hi CHris, A texCoordSet is a set of textuer coordinates for the geometry. When you do multi texturing you can specify several sets fo texture coords, and then you can specify which set of texture coords to use with each texture unit. To specify which set of tex coords to use with each tex unit y

[JAVA3D] texture coordinate set

2003-01-11 Thread chris Thorne
Can someone please explain the meaning and use of texture coordinate set (texCoordSet) for geometry arrays (in particular a triangular strip array)? The java doc does not explain it. thanks, chris === To unsubscribe, send e

Re: [JAVA3D] Texture Loading/Choppy Frame Rates

2003-01-11 Thread chris Thorne
AM Subject: Re: [JAVA3D] TextureLoading/Choppy Frame Rates If frame rate drop is more dramatic when setting the texture,than say, adjusting the size of the window (without textures), then it may bedefinitely that the card doesn't support well texturing. Try adju

[JAVA3D] Texture by-ref for animated textures

2003-01-05 Thread Brad Christiansen
Hi, I was wondering if anyone had/knew of an example of creating an animated texture (by actualy drawing onto the texture, not just swapping images) using texture by ref. Essentaily what I am trying to do (using as little memory as possible) is to use the Java2D drawing routines to draw onto a t

Re: [JAVA3D] Texture Loading - Mapping

2002-12-29 Thread John Wright
Greg, Texture loader will resize your image to make it a power of two. So that will adjust the "quality". And as you approach your image or zoom out from it the display of it will change as it gets larger or smaller (thus causing more interpretation of your original image). >From what you menti

Re: [JAVA3D] Texture Loading - Mapping - got it

2002-12-29 Thread greg baboolal
Hadn't appreciated the perspective view point, but found the TextureByReference example in the j3d demo files anyway. The imagery is still inferior but this may be to the formatting of the actual image. Cheers. __ Do you Yahoo!? Yahoo! Mail Plus -

[JAVA3D] Texture Loading - Mapping

2002-12-29 Thread greg baboolal
Hello, I created a flat (pooltable) image which I then split into two parts, one being the base cloth with pockets and the second being the cushions and side rails. I then create two QuadArrays of arbitary but identical size and attach the two sperate images respectively as textures ( also settin

[JAVA3D] Texture by Reference

2002-12-23 Thread Brad Christiansen
Hi, I am trying to investigate how texture by reference works in J3D but can't find any info / tutorials on how it works / how to use it. Can anyone point me at any info on this? Cheers, Brad This Email may contain c

Re: [JAVA3D] Texture on objects loaded from lwo files

2002-12-16 Thread Kevin Glass
The brute force way of doing this is too traverse the scene tree looking for Appearance nodes and change their textures (assuming appropraite bits have been setup and you can find the node you're looking for). The loaders I've created support a "NodeFactory" interface that allows the user of the l

Re: [JAVA3D] Texture on objects loaded from lwo files

2002-12-15 Thread Botha Levente
Hi all I have an another question. Can i put my own texture on a scene loaded from a (ex) lightwave file? Thanks in advance. Sincerelly, Levente === To unsubscribe, send email to [EMAIL PROTECTED] an

[JAVA3D] Texture Transparent

2002-12-10 Thread Robson Augusto Siscoutto
Please, somebody knows as transforming part of a texture (blue color) in transparent during the rendering, in java3D. To do chromakey. thanks Robson. === To unsubscribe, send email to [EMAIL PROTECTED] and include in the bo

Re: [JAVA3D] Texture & Shading

2002-11-28 Thread Patrick-Emmanuel Boulanger-Nadeau
r the second part of my message though :) - Original Message - From: "Patrick-Emmanuel Boulanger-Nadeau" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 28, 2002 6:39 PM Subject: [JAVA3D] Texture & Shading > Hello ! > I'm new to

[JAVA3D] Texture & Shading

2002-11-28 Thread Patrick-Emmanuel Boulanger-Nadeau
Hello ! I'm new to this mailing list (and pretty much to java 3d :) ) and I was wondering if anyone knew how to use light along with textures. I can't get my texture to shade, whatever I try (adding materials properties and things like that..). I've searched all over the web and still hasn't found

Re: [JAVA3D] Texture Names

2002-11-04 Thread Kelvin Chung
Alan Hudson wrote: Kelvin Chung wrote: Alan Hudson wrote: It is just a counter starting from 1. Prior to v1.3 this counter is not reset when Texture detach from BranchGroup but this is fixed in v1.3. Can you recommend a safe way to allocate a texture name? Set the ID to number larger

Re: [JAVA3D] Texture Names

2002-11-04 Thread Alan Hudson
Kelvin Chung wrote: Alan Hudson wrote: It is just a counter starting from 1. Prior to v1.3 this counter is not reset when Texture detach from BranchGroup but this is fixed in v1.3. Can you recommend a safe way to allocate a texture name? Set the ID to number larger than current texture

Re: [JAVA3D] Texture Magnification Filters and Tiling Textures

2002-10-30 Thread Kevin Glass
Sorry, teach me to read the documentation before I post. There is a setting on Texture to set the wrapping. Kev Kevin Glass wrote: Hi, I've just started tiling some generated textures across my terrain. Originally I got the terribly pixelated look from my BufferedImage textures. I found that

[JAVA3D] Texture Magnification Filters and Tiling Textures

2002-10-30 Thread Kevin Glass
Hi, I've just started tiling some generated textures across my terrain. Originally I got the terribly pixelated look from my BufferedImage textures. I found that I I need to set up the magnification filter to smooth them out. However, I'm tiling textures together and where two different textures m

[JAVA3D] Texture map curiosity fixed!

2002-10-29 Thread Josh Richmond
Back in January I emailed a sample app around demonstrating that using both the Sun VRML loader and the Xj3D loader textures would disappear if I destroyed a canvas, then created a new one (in the context of switching between one and four views). Anyway.. just reporting that the latest release o

Re: [JAVA3D] Texture Names

2002-10-25 Thread Kelvin Chung
Alan Hudson wrote: So I'm playing underneath the covers of Java3D with some native calls to openGL during the pre/post render callbacks of the canvas. This is to get the Elumens Dome running with Java3D. The library uses glGenTextures() to grab an unused textureName(and binds it). But it seems

[JAVA3D] Texture Names

2002-10-25 Thread Alan Hudson
So I'm playing underneath the covers of Java3D with some native calls to openGL during the pre/post render callbacks of the canvas. This is to get the Elumens Dome running with Java3D. The library uses glGenTextures() to grab an unused textureName(and binds it). But it seems that Java3D is overw

Re: [JAVA3D] Texture loading

2002-10-03 Thread Rob Nugent
Out of curiosity, have you tried loading the images using the Java 1.4 ImageIO APIs? I'm not claiming that it'll be better, but I observe that TextureLoader only appears to use either Toolkit.getDefaultToolkit() or JAI if it available. (Presumably because it can't assume the availability of Jav

Re: [JAVA3D] Texture loading

2002-10-02 Thread Alan Hudson
John Wright wrote: >I was experimenting with this yesterday and only saw about a 25% >performance increase by using the image loading code from j3d.org vs >using Sun's "TextureLoader". So I wouldn't expect to see any large >changes. You could put in a lot of work, end up with something less >fl

Re: [JAVA3D] Texture loading

2002-10-02 Thread John Wright
I was experimenting with this yesterday and only saw about a 25% performance increase by using the image loading code from j3d.org vs using Sun's "TextureLoader". So I wouldn't expect to see any large changes. You could put in a lot of work, end up with something less flexible and only gain a mi

Re: [JAVA3D] Texture loading

2002-10-02 Thread Alan Hudson
John Wright wrote: >You could manually insure that your image is sized in powers of two and >rewrite the texture loader code to not resize your image as you load it. > > > Definately insure your using power of 2 texture sizes. That said, we found we had to move to using our own texture loading s

Re: [JAVA3D] Texture loading

2002-10-02 Thread John Wright
- > From: Zak Nixon [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 02, 2002 3:59 PM > To: [EMAIL PROTECTED] > Subject: [JAVA3D] Texture loading > > BlankI have a globe with a texture wrapped around it. While the creation of > the globe, it takes a long time > to load

Re: [JAVA3D] Texture loading

2002-10-02 Thread ZACZEK, MARIUSZ P. (JSC-DM) (NASA)
lto:[EMAIL PROTECTED]] Sent: Wednesday, October 02, 2002 3:59 PM To: [EMAIL PROTECTED] Subject: [JAVA3D] Texture loading BlankI have a globe with a texture wrapped around it. While the creation of the globe, it takes a long time to load the texture. Is there anyway to speed up the loading of a tex

[JAVA3D] Texture loading

2002-10-02 Thread Zak Nixon
BlankI have a globe with a texture wrapped around it. While the creation of the globe, it takes a long time to load the texture. Is there anyway to speed up the loading of a texture. I am currently have the code at the bottom of this message.. Thanks for your help. - Zak Code below: ---

Re: [JAVA3D] Texture Loading/Choppy Frame Rates

2002-09-25 Thread Alex Hew
soon. I guess frame rates should increase dramatically then.   Appreciate the help guys.   - Alex - - Original Message - From: Carlos D Correa To: [EMAIL PROTECTED] Sent: Thursday, September 26, 2002 12:28 AM Subject: Re: [JAVA3D] Texture Loading/Choppy Frame

Re: [JAVA3D] Texture Loading/Choppy Frame Rates

2002-09-25 Thread Carlos D Correa
If frame rate drop is more dramatic when setting the texture, than say, adjusting the size of the window (without textures), then it may be definitely that the card doesn't support well texturing. Try adjusting texture parameters such as Magnification and minification filters, using texture.set

Re: [JAVA3D] Texture Loading/Choppy Frame Rates

2002-09-25 Thread John Wright
OTECTED]> > Sent: Wednesday, September 25, 2002 7:47 PM > Subject: Re: [JAVA3D] Texture Loading/Choppy Frame Rates > > > Alex, > > > > The general recommendation would be to buy a reasonably modern video > > card. Another trick you might do is make the texture a bit

Re: [JAVA3D] Texture Loading/Choppy Frame Rates

2002-09-25 Thread "Schäfer, Peter"
performance) -- Peter > -Original Message- > From: Alex Hew [mailto:[EMAIL PROTECTED]] > Sent: Mittwoch, 25. September 2002 14:02 > To: [EMAIL PROTECTED] > Subject: Re: [JAVA3D] Texture Loading/Choppy Frame Rates > > > Hi John, > > Thanks for the quick reply.

Re: [JAVA3D] Texture Loading/Choppy Frame Rates

2002-09-25 Thread Alex Hew
Hi John, Thanks for the quick reply. I did as you mention, the fps only increased by 1 - 2 frames. Any other suggestion? - Alex - - Original Message - From: "John Wright" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 25, 2002 7:47 P

Re: [JAVA3D] Texture Loading/Choppy Frame Rates

2002-09-25 Thread John Wright
Alex, The general recommendation would be to buy a reasonably modern video card. Another trick you might do is make the texture a bit less demanding. Convert the jpg to a GIF (so you are only using one byte per pixel rather than 4 bytes per pixel), also you might consider reducing the size of t

[JAVA3D] Texture Loading/Choppy Frame Rates

2002-09-25 Thread Alex Hew
Hi all,   I have a terrain generated using the TriangleStripArray, and a model running on the terrain. The fps is around 52.   When I set a texture to it using the code stated below, TextureLoader load = new TextureLoader("grass.jpg", null); Texture texture = load.getTexture(); appearance.se

Re: [JAVA3D] Texture/Memory Leak

2002-09-19 Thread Alan Hudson
Kelvin Chung wrote: > Hi Alan, > >Thanks for your test program. We're able to reproduce the problem > and bug 4748837 - Memory leak when new texture is set in Appearance > is filed. > ok. Standard response, remind when the next release is planned? > A workaround is to set new Appearance wh

Re: [JAVA3D] Texture/Memory Leak

2002-09-17 Thread Kelvin Chung
Hi Alan, Thanks for your test program. We're able to reproduce the problem and bug 4748837 - Memory leak when new texture is set in Appearance is filed. A workaround is to set new Appearance whenever new Texture is assigned. (see attachment). This should be fix by next release. - Kelvin

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
al Message - From: ajaxinc To: [EMAIL PROTECTED] Sent: Monday, September 09, 2002 8:32 PM Subject: [JAVA3D] texture mapping what is the simplest way to texture map a jpg over a shape3D

[JAVA3D] texture mapping

2002-09-09 Thread ajaxinc
what is the simplest way to texture map a jpg over a shape3D

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

[JAVA3D] texture mapping

2002-08-20 Thread Gregory Gimler
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 limitations and best methodologies for doing this? Thanks.

Re: [JAVA3D] Texture not correctly

2002-08-14 Thread Andreas Bauer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wednesday 14 August 2002 07:23, you wrote: > Here is the method which will create a box with 4 faces only and I load the > texture with TextureLoader and use MODULATE as parameter. It works > perfectly if I create a box with the class Box but not

[JAVA3D] Texture not correctly

2002-08-13 Thread Andy
Here is the method which will create a box with 4 faces only and I load the texture with TextureLoader and use MODULATE as parameter. It works perfectly if I create a box with the class Box but not this: private BranchGroup createBox(){ BranchGroup root = new BranchGroup();

Re: [JAVA3D] Texture

2002-08-12 Thread Andy
? Many thanks Andy - Original Message - From: "David Yazel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 12, 2002 9:12 PM Subject: Re: [JAVA3D] Texture > Set the PolygonAttributes.setPolygonMode(POLYGON_FILL ); > > Dave Yazel > http://www.magic

Re: [JAVA3D] Texture

2002-08-12 Thread David Yazel
Set the PolygonAttributes.setPolygonMode(POLYGON_FILL ); Dave Yazel http://www.magicosm.net - Original Message - From: "Andy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 12, 2002 10:25 PM Subject: [JAVA3D] Texture When I create a shape3d

  1   2   3   >