Wall Worm Forums

Design Tools => Wall Worm Model Tools => WWMT Questions => Topic started by: Thefirston on August 20, 2012, 07:09:39 PM

Title: Specular Error
Post by: Thefirston on August 20, 2012, 07:09:39 PM
I keep receiving this message whenever I have a specular texture in my material and press the "Export VTFs" button.

-- Compile error:control aleady defined: chk2
-- In line: checkbox chk2"

Has anyone else experienced this? I've attached a screenshot for reference.
Title: Re: Specular Error
Post by: wallworm on August 20, 2012, 07:14:10 PM
Can you load the latest version of WW and see if the error still occurs?

If it still occurs, please email the Max file to me and I will see what might be amiss.
Title: Re: Specular Error
Post by: Thefirston on August 20, 2012, 07:55:05 PM
I think the version I've been using should be most recent. It's version 1.855.

Here's a link to the max and texture files. Just FYI, I'm using 3ds Max 2011.

http://dl.dropbox.com/u/9676084/TestFiles.rar
Title: Re: Specular Error
Post by: Thefirston on August 20, 2012, 09:34:07 PM
Just checked in 32 bit and 64 bit versions of 2011 and 2012 in case, but still getting the same thing.
Title: Re: Specular Error
Post by: wallworm on August 20, 2012, 10:14:21 PM
I'm going to test your file shortly. Can you update WW as there is a newer version than what you reported earlier. Version 1.856 is available.
Title: Re: Specular Error
Post by: wallworm on August 20, 2012, 10:38:47 PM
I was able to export your file in a couple seconds... no errors. The screen shot is attached.

So it may have been an error in WWMT 1.855 (get 1.856 and see if it fixes it). If you are still having an error, it may be that the WW settings are not set up correctly. Can you share more about your global settings, the settings for your specific model in WWMT, and the steps you are taking?
Title: Re: Specular Error
Post by: wallworm on August 20, 2012, 10:44:21 PM
PS. I meant to add a couple things.

1) The file units is set to Millimeters. For Source, you should design in Generic Units where each unit is a centimeter. It will be good to keep that convention.

2) Something I noticed whne I first opened the file is that the textures did not export immediately (the compiler said it couldn't write to the target directory). The warning is not very useful. The real problem was that the bitmaps (TGAs) were not actually copied to the materialsrc directory--because the filename in the Bitmap node still pointed to a path on your system, and not mine (as teh download had all images in folder with Max scene). This is not an error on your part... I'm just pointing it out for reference for anyone reading this and it came to my mind to share this with people. The solution was simply for me to open the bitmap nodes (in Material Editor) and point the filename to the actual location on my system.
Title: Re: Specular Error
Post by: Thefirston on August 20, 2012, 11:00:34 PM
I'm still getting the same error.

My settings are pretty much default except for the paths in the tool window. I haven't touched anything else yet.

Here's a screenshot.


(https://www.wallworm.net/proxy.php?request=http%3A%2F%2Fi180.photobucket.com%2Falbums%2Fx12%2Fthefirston%2FMySettings.jpg&hash=51222a80fe8aa42331f5ef488e89c6959c09f68f)
Title: Re: Specular Error
Post by: wallworm on August 20, 2012, 11:42:43 PM
I've sent you a PM.
Title: Re: Specular Error
Post by: Thefirston on August 21, 2012, 12:58:03 AM
I've replied to your message and sent you a contact.
Title: Re: Specular Error
Post by: wallworm on August 21, 2012, 04:27:51 PM
Error fixed in WWMT 1.858 (http://www.wallworm.net/index.php/topic,442.0.html).

PS. While testing the file you sent I realized you will have a problem. To use the Specular Level and a bump in Source you need to merge the specular level into the ALpha of the Normal map. You can use ALpha Spec to do that. After you do it, you need to pipe the normal bitmap into both the bump and the specular level to get the correct output.