Re: LANG Question regarding texture mapping.

Jim Dunn ([email protected])
Sat, 2 Dec 1995 07:08:10 -0500


On Dec 1, 11:23pm, Reed M Wiedower wrote:
> Subject: LANG Question regarding texture mapping.
> I'm using simple text editors to cesate my VRML files, and I was
> wondering, how does one insert a picture file into part of the VRML file?

What type of picture file are you trying to insert. Most of the viewers
support a variety of texture formats (RGB, GIF, JPEG, BMP, PNG)
along with SFImage (data right in the WRL file). This is specified like:

Separator {
Texture2 { tree.gif }
Cube {} # or whatever your object is
}

> I looked at the sample TGS provided for me "gas building" but the file
> seemed to be written in hexadecimal (????) code. I'm not an experienced
> programmer but I was having no trouble cesating my project until this
> came up. I need to be able to map pictures onto my file to increase their
> realism.

Once u get comfortable with this you can change the way it maps using
Texture coordinates.

>
> My second question is if there is any way to disable the WebSpace program
> from automatically scaling itself to the largest object in the virtual
> world. Whenever I put a large object, or several small objects very
> (extremely!) far away from my main area, I can no longer find the main
> object because it has been scaled to an incredibly small size.
> Specifically, I am designing a model of the Internation Space
> Station.....I would like to have a background of the stars and planets,
> but if I even get Earth to only 10% of it's actual size I can no longer
> go through the station, let alone see it. Any thoughts?
>

Adding ViewPoints may help. If no viewpoints are specified then most
browsers figure out where everything is and tries to fit that into the
window. By adding viewpoints you tell the viewer where you want to be looking
so you can put the camara (initial view) right in front of your space
station.
(our castle uses this http://www.paperinc.com/vrml/models/castle/castle.wrl)

> End of Line,
>
> Reed
>-- End of excerpt from Reed M Wiedower

Good Luck
Jim

-- 

Jim Dunn mailto: [email protected] Paper Software, Inc. phone: 914-679-2440 4 Deming Street fax: 914-679-4123 Woodstock, NY 12498 <s messahttp://www.paperinc.com>Paper Software Inc</a>

"Out the Token Ring, through the router, down the fiber, off another router, down the T1, past the firewall... nothing but Net!"


  • Next message: Marc de Groot: "The Squirrel LIVES!"
  • Previous message: Mike Heck: "Re: LANG Question regarding texture mapping"