![]() |
Atmospheric effects (ProjectParam) |
Post Reply
|
| Author | |
anshika
Visitor
Joined: December 31 2009 Status: Offline Points: 12 |
Post Options
Thanks(0)
Quote Reply
Topic: Atmospheric effects (ProjectParam)Posted: March 30 2010 at 8:07am |
|
I want to change Project Parameters like 'FogColor' , 'DisplaySun' , 'DisplayMoon' etc.
I am using the following commands in SGAPI :
1. ITerraExplorer51.set_ProjectParam("DisplaySun",true);
2. ITerraExplorer51.ProjectParam("DisplaySun")=true;
3. teCoClass = new TerraExplorerClass();
terraExplorer = teCoClass as ITerraExplorer51;
terraExplorer.set_ProjectParam("DisplaySun", true);
After implementing the above codes i am unable to get any result.
Similarly using "FogColor" option i am unable to change the Fog color.
Please explain how it works??
and will "DisplaySun" show a virtual sun or not? just like a virtual moon which is visible in TerraExplorer Pro.
and how can we change the location of this virtual moon/sun wrt any location on globe??
|
|
![]() |
|
Eylon
Skyline Admin Group
Joined: May 05 2003 Location: Israel Status: Offline Points: 259 |
Post Options
Thanks(0)
Quote Reply
Posted: April 01 2010 at 8:44am |
|
Hi,
The following SGAPI code turns the sun off and set's the fog color to green:
The sun is positioned in the sky based on the current TerraExplorer Time.
You can see more information in the programmer's guide chapters for IDateTime5 interface. Changing the time, will change the sun to the correct position in the sky based on the paramters.
Hope this helps...
|
|
|
Eylon
|
|
![]() |
|
Post Reply
|
|
|
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |