Creating instances

--- Main Contents ---
Generic Tutorials Reference Options
Legal's & Copyright
Contact, info sources
Extending this program
Bugs & Limits
Changelog
Quick'n'Easy
Complex example
Instance-creating things
Walk-Through:
    Before you start
    Installation, basic usage
    Command file Examples
Command-line options
Command file syntax
FAQ / Common pitfalls
Named colors
color
colorize
doublesided
envmap
invisible
legosplit
lower_coll
nocoll
off
setshade
shade
surface
tazsplit
tecolor
tedelete
texmap
texturefloor
transparency
wall_*

rvglue5 is able to write instances with whatever you give him to process.

That is simply done by specifying a .prm suffix in the create keyword:

create instance.prm

stuff.fin (
  ...
)     

Although it's possible to make an instance out of a whole track body, that is most likely not useful. Just to give two ideas on what is possible:


Gluing instances to larger ones

If you have a specific object you built from lots of instances, but then want to move it somewhere else, you get in trouble. It's lots of work to move all the instances to their new position. It's just nicer to build a new, larger instance out of all the parts.

To do that, you just build the instance once in any arbitrary place in it's own .fin file. Then you can do something like:

create instance.prm

myfin.fin (
  # apply any options you like to
)     

And you'll get one larger instance.


Ripping instances out of track bodies

That can easily be done by using the tazsplit option. Create a fresh and empty track zone file which contains just one track zone with ID 0 that bounds the part of the track body you want to have as an instance, one or two lego track pieces or whatever. Then use a command file that looks like this:

create instance.prm

track.w (

  # split the track by track zones:
  tazsplit (

     # use the track zone file mytazfile.taz:
     mytazfile.taz

     # everything that is in no special track zone gets deleted:
     default ( off )

     # everything that is inside zone 0 gets preserved:
     0 ( )
  )
)     


Last modified: Tue July 3 11:04:00 CEST 2001