> > I think you might be making some wrong assumptions somewhere. > Unfortunately I am running out of time to look at this as I fly back to > Oz in a couple of hours and then will be off on holidays for a couple of > weeks. If you can't fix it by 1st week of Jan, can you fire me a > reminder email and I'll take a look at it then.
Thank, maybe I'll do that, I won't be in for the next week either. > > > A texture coordinate defines how much of the texture is to appear to > that point. Let's use an example where you wanted to have a texture > appear twice on the side of a box. A normal texture, that completely > covers the side of a box would have the following texture coordinates: > > 1,0 +-----+ 1,1 > | | > | | > +-----+ > 0,0 0,1 > > > As you say, the coordinate value goes from 0 to 1. A the point where the > value is 1, that means you have given it a range of the exact width of > the underlying image (1 - 0 = 1) so all of your texture image pixels > (texels) are transefered onto the surface of the box. > > What you need to think here is what those values represent. Really they > are just way of saying "copy this percentage of the image onto this > surface". Another standard example is where you only want say half the > image to be textured on the box. To do this, you would set up the > coordinates to be: > > 1,0 +-----+ 1,0.5 > | | > | | > +-----+ > 0,0 0,0.5 > > > > So, if I can nominate fractional values to "clip" the texture Okay, that is, what I really want to do, I do not want to wrap, because there is not much sense in repeating a topographic map onto a terrain. So my image has a size from 512 by 512 pixels but my terrain covers only 429 by 468 pixel. First thing I did was scaling the image down with: setScale(1/(length of image in meters)) Than I figured that I have to translate the image. I thought, maybe I can calculate the translation by: length of dem / length of image = 0.83 (That is close but still somehow shifted). I tried: a 0.7 would work, and there I am stuck. I am using TexCoordGeneration. How can I get hold of the TextureCoordinates then, to have a look at them? Thanks Desiree =========================================================================== 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".
