Re: LANG: repeating textures
Vassilis Bourdakis ([email protected])
Fri, 08 Dec 1995 14:28:33 +0000
- Messages sorted by:
[ date ][ tmesad ][ subject ][ author ]
- Next message:
Vassilis Bourdakis: "Re: LANG: repeating textures"
- Previous message:
Mr 'Zap' Andersson: "Re: Fwd: A method to achieve: RE: Curved Light"
- Maybe in reply to:
Adrian Scott: "LANG: repeating textures"
- Next in thesad:
Vassilis Bourdakis: "Re: LANG: repeating textures"
Gavin Bell wrote:
> <snip>
> The texture coordinates at the vertices of a cube range from 0.0 to 1.0
> (e.g. lower-left-front vertex of front-face has tex coords (0,0),
> upper-right-front vertex of front face has tex coords (1,1)).
>
> Texture2Transform can be used to scale these texture coordinate. You'll
> only get repeated textures if the texture coordinate are greater than 1
> (or less than zero). So:
> Texture2 { filename "wallpaper.gif" }
> Texture2Transform { scaleFactor 3 3 }
> Cube { }<snip>
Okay,
For the last these days I'm trying to get some V.SIMPLE texture mapping working properly.
It is a model of the Pulteney bridge in Bath, and I want to texture map the facades
of the buildings. I got the photos (jpg) and a simple version of the model
(just the road, pavement and a series of IndexFaceSets)
I simply apply a texture on each IndexFaceSet (which BTW is simply a orthogonal face)
The rssult can be seen in:
http://fos.bath.ac.uk/pb/txtst.wrl
Only building 6 and 3 get a texture map which is close to being right (not quite)
The others are simply repeating the last (or first) line of the jpg file all over.
The way I understand it is that I _SHOULD_N'T_ need to specify anything to get this
thing working properly. It is ONE image pasted on ONE orthogonal face. It should stretch,
squeeze whatever the image on the face and that would be it! But it wont :-(
Any ideas?
Cheers
--
--- --- ---- ---- ----
Dr. Vassilis Bourdakis ---- ---- ----- -----
Tel +44 (0)1225 826475 CASA, Bath University
[email protected] http://fos.bath.ac.uk
- Next message:
Vassilis Bourdakis: "Re: LANG: repeating textures"
- Previous message:
Mr 'Zap' Andersson: "Re: Fwd: A method to achieve: RE: Curved Light"
- Maybe in reply to:
Adrian Scott: "LANG: repeating textures"
- Next in thesad:
Vassilis Bourdakis: "Re: LANG: repeating textures"