CloudLayerShader (Networked)
by Joshua Halls (Xerves) · in Torque 3D Professional · 08/30/2009 (7:27 pm) · 8 replies
The CloudLayerShader is setup right now to be pixVersion 3.0 only. We actually have someone with a somewhat low end card (x1270) that seems to only do SM2. Since there is no fall back for that shader when it gets to it spits out an error. If you are connected online this will then cause a ghost error. Not sure if there is going to be a fallback for that shader or not.
About the author
Part of the team that works on The Repopulation, a SciFi based MMO using a heavily modified version of the Torque MMO Kit - T3D. I also take care of the T3D version of the Torque MMO Kit.
#2
08/30/2009 (7:37 pm)
Yeah I believe so. Log file didn't show it on and I don't think it will turn on with SM2 only anyway.
#3
08/30/2009 (8:12 pm)
This causes single player not to load the mission as well. Hacked in a simple change to get it to take as SM2 though.
#4
08/30/2009 (8:26 pm)
Do you mean that when he tries to connect to the game it fails on ghosting and does not allow him to connect?
#5
08/30/2009 (8:28 pm)
Ah well that's good to hear, I think cloud layer's shaders might not "really" require 3.0, or with a little fewer instructions it wouldn't.
#6
Preferably setting Basic Lighting on should force both cloud objects to go SM2.
08/30/2009 (8:32 pm)
@James: The worldDist value is the only thing that seems to cause it to require 3.0. Changing that from TEXCOORD8 to TEXCOORD5 does the trick. I am sure it breaks something as this isn't really my area, but changing that and then telling the findObject for CloudLayerShader in cloudLayer.cpp to use the alternative shader if the SM3 one fails seems to work.Preferably setting Basic Lighting on should force both cloud objects to go SM2.
#7
08/30/2009 (8:32 pm)
Logged as THREED-719
#8
CloudLayerShader is now fully 2.0 compatible, it really did not need 3.0 for anything it was doing.
09/04/2009 (3:45 am)
Fixed for the next release.CloudLayerShader is now fully 2.0 compatible, it really did not need 3.0 for anything it was doing.
Torque 3D Owner Marc Dreamora Schaerer
Gayasoft
If so I hope such a fallback / automatic alternative switching is hopefully added if not present yet.