Re: TExture problem

Chris Marrin ([email protected])
Wed, 7 Jun 1995 10:25:19 -0700


> The rgb file is definately there. I load it into webspace and its just a
flat
> shaded cube no terxtures. I know that encodeing the texture in line as
hex works ok.
> Anybody had this problem.

Unfortunately ivToVRML does no convert filename strings for texture nodes.
The filename in VRML must be a URL. If this filename were simply
"brick.rgb" then it would work fine, as long as this file is in the same
directory where the .wrl file is getting served from.

Webspace will prepend a relative path name (one not starting with '/')
with the URL path used to load the .wrl file. Otherwise it assumes the
string is a full URL (e.g. - http://foo.com/textures/brick.rgb).

Change this by hand to either a relative path or a full URL and it will
work fine.

By the way, converting this texture to a jpeg file will save lots of space
and can be read just as easily by webspace.

-- 
chris marrin      Silicon      http://www.sgi.com/Products/WebFORCE/WebSpace
(415) 390-5367    Graphics     http://reality.sgi.com/employees/cmarrin/
[email protected]   Inc.         
         "As a general rule, don't solve puzzles that open portals to Hell."