Game Development Community

How do you create mirrors in Constructor?

by Michael Layfield · in Constructor · 10/17/2007 (11:53 pm) · 8 replies

Sorry if this is old, I can't seem to find any info on making mirrors in Constructor for TGE 'cept maybe via Quark which I'm not so hot into learning yet.

#1
10/18/2007 (7:06 am)
Intersect the face you want with the mirror entity.
#2
10/18/2007 (7:44 am)
Thanks David, I didn't notice that there was a mirrorsurface entity in the list.

But now, I couldn't load the dif into TGE. I get this message: "Error: bad lmap coord". Anything I missed or did wrong?

Btw I'm using TGE 1.4.2
#3
10/18/2007 (8:04 am)
I haven't tried it in 1.4.2. Try using the legacy dif exporter. The new features (even though you are using an old one) are most likely not supported in the older version and causing problems in reading the format).
#4
10/18/2007 (9:12 pm)
Sadly, the legacy dif exporter is what i used to export the mirror.
#5
10/19/2007 (6:48 am)
Did you try running it through the one included with 1.4.2 and not out of Constructor?
#6
10/19/2007 (9:43 am)
Ok, I tried exporting it using the map2dif.exe that came with 1.4.2. Well it failed and this is the message i got:

Converting scene to map ...
Map: C:/DOCUME~1/Scott/LOCALS~1/Temp/mirror test.map
Copying textures to C:/Documents and Settings/Scott/Desktop/mirrortest3 ...
WINDOW_008B-(256X256).png
SEGMENTED128X128W.png
Executing map2dif -o "C:/Documents and Settings/Scott/Desktop/mirrortest3" -t "C:/Documents and Settings/Scott/Desktop/mirrortest3" "C:/DOCUME~1/Scott/LOCALS~1/Temp/mirror test.map"
Successfully opened map file: C:/DOCUME~1/Scott/LOCALS~1/Temp/mirror test.map
Parsing mapfile...done.
Creating BSP...done.
Marking active zones...done
Creating surfaces...done.
Lightmaps: Normal...Alarm...done.
Resorting and Packing LightMaps...done.

STATISTICS
- Total brushes: 1
+ structural: 1
+ detail: 0
+ portal: 0
- Number of zones: 1
- Number of surfaces: 6

** *** WARNING WARNING WARNING *** **
*** ** WARNING WARNING WARNING ** ***

Errors exists in this interior. Please use the debug rendering modes
to find and correct the following problems:

* Ambiguous brushes: 0
* Orphaned Polygons: 4

*** ** WARNING WARNING WARNING ** ***
** *** WARNING WARNING WARNING *** **

Exporting to runtime...done.

Writing Resource: persist..(C:/Documents and Settings/Scott/Desktop/mirrortest3/mirror test.dif) Done.

Cleaning Up ...
Deleting auto converted map ...
#7
10/19/2007 (11:24 am)
Okay, maybe I explained it badly. Here is a working .csx file for constructor. I used the legacy exporter to get it into 1.4.2 without problem.
#8
10/23/2007 (5:56 am)
Thanks for the file David. It worked perfectly and from what you've sent, I realized that I used the mirror entity all wrong. Apparently I intersected it onto the face incorrectly thinking that intersecting one section of the node, regardless of where it's facing, is enough.