Game Development Community

T3D 1.1 beta 3 - critical bug on shader GenOp - RESOLVED (THREED-1667)

by Enel · in Torque 3D Professional · 04/12/2011 (12:15 am) · 9 replies

T3D 1.1 Preview

win7 64bit

Target:
Water plane

Issue:
crushed running on Water plane after add

this bug dose not occur T3D Preview Demo.

but my project has crashed by NULL Pointer

i don't know why has crashed, just return AssertFatal "NULL argument"..

Repeat: must add it

Suggest : must add it

pixSpecularHLSL.cpp

line 70

// If we have a normal map then mask the specular
   if ( fd.features[MFT_SpecularMap] )
   {
      Var *specularColor = (Var*)LangElement::find( "specularColor" );
      if (specularColor)
         final = new GenOp( "@ * @", final, specularColor );
   }
   else if ( fd.features[MFT_NormalMap] && !fd.features[MFT_IsDXTnm] )
   {
      Var *bumpColor = (Var*)LangElement::find( "bumpNormal" );
      if( bumpColor ) 							/// add this line ( NULL POINTER CHECK )
         final = new GenOp( "@ * @.a", final, bumpColor );
   }





#1
04/12/2011 (9:35 am)
Logged as THREED-1667.
#2
04/22/2011 (1:52 pm)
Enel,

Could you help me reproduce your bug a bit? You didn't provide any details, so I had to try reproducing it by the following steps:

Note: I used the "Full" template to test this.

1) Launch the game
2) load the "blank level"
3) When the level loads, launch the editor with the F11 key.
4) In the Scene tree, add a Water Plane object. (I just named mine "test")
5) Return to the game by pressing F11, run on the water surface. No crash.

Is there anything else you can provide to me to help track this bug down? You say this doesn't happen in the T3D preview, but then logged the bug as a T3D preview bug...which is it? If it's not in the preview, it's likely a bug that's already been fixed (Just not in Beta 3).

Edit: Any kind of mission file or level that you can e-mail to me will help a ton. My e-mail's in my profile.
#3
05/05/2011 (4:34 pm)
@Enel: Could you please provide us with additional information so that we can try to reproduce the issue you are having and get it fixed. Thanks.
#4
05/05/2011 (8:19 pm)
sorry late respond..

and sorry wrong post

it has crashed in 1.1 T3D beta 3


i'm so sorry gentelman
#5
05/06/2011 (3:23 am)
@ Christopher: ehy, never saw your name... new employee?

We always wants blogs about new GG crew members :-D !
#6
05/06/2011 (9:16 am)
@Enel: Could you please give me a step by step detailed report on how I can reproduce the issue you are having?

@Giorgio Zanetti ( JoZ ): You can say that. I was brought as a contractor to help Scott with QA. There will be plenty of blog updates after the release.
#7
05/06/2011 (9:34 am)
@christopher Tauscher

i'm just add water plane object..

may be problem my code

sorry :(..
#8
05/06/2011 (1:30 pm)
@ Christopher: ehehe blog after release... good policy! ;-D
#9
05/11/2011 (3:18 pm)
Marking as resolved since we could not reproduce and was only occurring in 1.1 Beta 3.