This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > VRML > January 2006 > No texture-Why
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Rolf Gabler-Mieck 2006-01-12, 6:44 pm |
| Hi I got that shape and define it as follows, but no texture is shown...
the texure works at other faces but not here... any ideas?
Shape {
appearance Appearance {
texture ImageTexture{url "seite_garage01.png"}
}
geometry IndexedFaceSet {
coord Coordinate { point [
0 0 0,
0 0 -1,
0 1 -1,
0 1 0]
}
coordIndex [
1, 0, 3, 2, -1,
]
}
}
best regrads
rolf
| |
| huxu9815@cqyuxia.com 2006-01-12, 10:30 pm |
|
you need to write the complete path for the map:
for example :
url "http://www.google.com/image/show.png"
| |
| fabricator 2006-01-13, 3:17 am |
| Usually you don't need to use full urls.
...\images\image.png
or
\images\image.png
is usually enough. Its possible it just a misspelt file name.
What vrml browser is being used ? I know some have bugs.
perhaps try this below and see if it fixes the problems.
In the first Shape to use the texture
texture DEF seite_garage01_tex ImageTexture{url "seite_garage01.png"}
and later Shape nodes instead use
texture USE seite_garage01_tex
| |
| Rolf Gabler-Mieck 2006-01-13, 6:47 am |
| fabricator wrote:
> Usually you don't need to use full urls.
>
> ..\images\image.png
> or
> \images\image.png
it's in the same directory, so url is correct
> is usually enough. Its possible it just a misspelt file name.
also not misspelled, when I copy that ImageTexture to an other face it
work well and as desired...
>
>
> What vrml browser is being used ? I know some have bugs.
I try several java3d loaders and also 3dsMax4... all don't show the
texture... in 3ds max a blank face is shown in java3d it seems that the
texture will not be draped onto the face just the first pixel-line will
be used...I'd never got such problems...its not my first face with
texture in -z direction....
>
> perhaps try this below and see if it fixes the problems.
>
> In the first Shape to use the texture
>
> texture DEF seite_garage01_tex ImageTexture{url "seite_garage01.png"}
>
>
> and later Shape nodes instead use
>
> texture USE seite_garage01_tex
I did but without any success...
best thanks for you ideas, but it seems that I need further-ones..
best regards
rolf
>
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|