On Fri, 14 Dec 2001, Desiree Hilbring wrote:

> So what I got now, is a nice mapped texture over the terrain, but I still
> have problems with the scale factor of the texture, how do I calculate
> that factor?
>
> And the map does not really fit the terrain, but I think that's because
> the TK200 does not really fit the DEM.

Scaling is really dependent on what your initial texture is supposed to represent.
It is something only you can know.  In addition,  remember that when calculating
this, most video cards (and I believe it is an OpenGL limitation too) that you
are only guaranteed a maximum of 16 repetitions on a single polygon (ie S & T
cannot be any bigger than 16.0 for your texture coordinates).

If you are doing terrain work, I )highly_ recommend you use Chris Thorne's Rez
project code. It does most of it for you:

http://www.surak.com.au/~chris/vrml/rezIndex.html

--
Justin Couch                         http://www.vlc.com.au/~justin/
Freelance Java Consultant                  http://www.yumetech.com/
Author, Java 3D FAQ Maintainer                  http://www.j3d.org/
-------------------------------------------------------------------
"Look through the lens, and the light breaks down into many lights.
 Turn it or move it, and a new set of arrangements appears... is it
 a single light or many lights, lights that one must know how to
 distinguish, recognise and appreciate? Is it one light with many
 frames or one frame for many lights?"      -Subcomandante Marcos
-------------------------------------------------------------------

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

Reply via email to