Game Development Community

Bug Fix: max2dtsExporterPlus, bug with reflection

by Yuri Dobronravin · in Torque Game Engine · 07/12/2006 (3:25 pm) · 6 replies

Hi

I found a reason why reflection is exporting in a wrong way with max2dtsExporterPlus (it realy does!)

file maxAppMesh.cpp

line 179
mat.reflectance = stdMat->GetTexmapAmt(ID_RL,0);

should be changed to
mat.reflection = stdMat->GetTexmapAmt(ID_RL,0);

otherwise, you'll get your reflection always set to 1.0 - a completely chrome material.

#1
07/22/2006 (12:44 am)
I haven't dealt with this yet. What version of 3ds max are you using?
#2
07/24/2006 (1:52 pm)
I'm using 3ds max 7. But this isn't a max version problem. It's an obvious logical error. One variable used insted of another.
#3
08/17/2006 (5:27 pm)
So I have the same issue. How do I fix and recompile this? Sorry in advance Im an artist not a programmer. I have found the file and made the change, but how do I recompile. I have Max8 and vs.net.
#4
08/18/2006 (2:12 pm)
@Dale Cannon
You need to have a Max SDK to recompile exporter.
However, I dont have one and my fellow programmer did it for me.

www.logicking.com/myprojects/max2dtsexporterplusbugfix.zip
You need to unzip file and put it to your 3dmax/plugins/folder, near original max2dtsExporter.dle
I dont now why it requires two, but it will not otherwise.
#5
08/18/2006 (3:20 pm)
Thank you Yuri!
#6
08/18/2006 (8:10 pm)
Yes thank you!