Game Development Community

Problem with chapter 13

by Fredrik Dyrwoolf · in · 10/25/2008 (12:54 pm) · 2 replies

Hi,

When I try to create the fog effect I get this error mess:

'GarageGames.Torque.Materials.DistanceFog' is inaccessible due to its protection level

It seams to be private?

And when I try to add the sun it dont seam to render. I create a empty scen with the startergame and add the corona materials and the function CreateSun. I then call it last in the BeginRun method. (Maby that is wrong?)

#1
11/23/2008 (9:26 am)
I get the same message when trying to create the fog:
'GarageGames.Torque.Materials.DistanceFog' is inaccessible due to its protection level
#2
12/16/2008 (3:04 pm)
Sadly, this is another case where the book is faster than the engine. In Torque X 2.0, this property in internal, but in Torque X 3.0, its public. As soon as TX3 is released, these properties will become accessible. Sorry about that...

John K.