Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Grass flickering big/small?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [Current Games From Matrix.] >> [World War II] >> Panzer Command: Ostfront >> Grass flickering big/small? Page: [1]
Login
Message << Older Topic   Newer Topic >>
Grass flickering big/small? - 6/4/2011 3:24:44 AM   
HintJ


Posts: 311
Joined: 10/10/2010
Status: offline
I've recently been converted to the belief that adding grass was a great idea.

But I'm just experimenting now on using it. I've noticed that as I move my view around the map, sometimes the grass flickers between a large and small size.

Grasses section in my Scene.xml
<grasses>
<grass mediaId="mo_bush1.dds" width="1" height="1" density="1" sightingFactorHit="-1" persistent="false" terrain="PlowedField" />
<grass mediaId="mo_fallwheat1.dds" width="1" height="1" density="0.75" sightingFactorHit="-1" persistent="false" terrain="Wheat" />
<grass mediaId="mo_shortgrass1.dds" width="1" height="0.5" density="0.05" sightingFactorHit="0" persistent="false" terrain="LowGrass" />
<grass mediaId="grassclumpST1.dds" width="1" height="0.5" density="0.05" sightingFactorHit="0" persistent="false" terrain="LowGrass" />

</grasses>


Any ideas?




Attachment (1)

_____________________________

"Tactics is knowing what to do when there is something to do. Strategy is knowing what to do when there is nothing to do."
- Savielly Tartakower
Post #: 1
RE: Grass flickering big/small? - 6/4/2011 3:51:48 AM   
Mobius


Posts: 10339
Joined: 6/30/2006
From: California
Status: offline
You don't want to make the sightingFactorHit="-1" as the grass becomes transparent to LOS.

_____________________________

All your Tanks are Belong to us!
panzer

(in reply to HintJ)
Post #: 2
RE: Grass flickering big/small? - 6/4/2011 4:08:47 AM   
HintJ


Posts: 311
Joined: 10/10/2010
Status: offline

quote:

ORIGINAL: Mobius

You don't want to make the sightingFactorHit="-1" as the grass becomes transparent to LOS.


I don't understand. Are you asking why I don't want to, or are you telling me not to?

The -1 or 0 is causing this?

_____________________________

"Tactics is knowing what to do when there is something to do. Strategy is knowing what to do when there is nothing to do."
- Savielly Tartakower

(in reply to Mobius)
Post #: 3
RE: Grass flickering big/small? - 6/4/2011 4:18:26 AM   
junk2drive


Posts: 12907
Joined: 6/27/2002
From: Arizona West Coast
Status: offline
He is telling you to change the -1 to 0.

_____________________________

Conflict of Heroes "Most games are like checkers or chess and some have dice and cards involved too. This game plays like checkers but you think like chess and the dice and cards can change everything in real time."

(in reply to HintJ)
Post #: 4
RE: Grass flickering big/small? - 6/4/2011 4:20:00 AM   
Mad Russian


Posts: 13256
Joined: 3/16/2008
From: Texas
Status: offline
Change the -1 to at least a zero. You can change it to a positive number as well if you like.

Good Hunting.

MR


_____________________________

The most expensive thing in the world is free time.

Founder of HSG scenario design group for Combat Mission.
Panzer Command Ostfront Development Team.
Flashpoint Campaigns: Red Storm Development Team.

(in reply to junk2drive)
Post #: 5
RE: Grass flickering big/small? - 6/4/2011 4:47:37 AM   
rickier65

 

Posts: 14231
Joined: 4/20/2000
Status: offline
I recommend leave the sightfactorhit at -1 this gives the correct default values

This will not affect. The short tall. You are seeing.
Thanks
Rick


< Message edited by Rick -- 6/4/2011 4:58:44 AM >

(in reply to Mad Russian)
Post #: 6
RE: Grass flickering big/small? - 6/4/2011 1:15:04 PM   
HintJ


Posts: 311
Joined: 10/10/2010
Status: offline
Problem solved by not having more than one type of grass assigned to a single type of terrain.

Is it not possible to assign more than one type of grass to "LowGrass?"

_____________________________

"Tactics is knowing what to do when there is something to do. Strategy is knowing what to do when there is nothing to do."
- Savielly Tartakower

(in reply to rickier65)
Post #: 7
RE: Grass flickering big/small? - 6/4/2011 1:41:51 PM   
junk2drive


Posts: 12907
Joined: 6/27/2002
From: Arizona West Coast
Status: offline
Yes but the total density must be less than 1. In theory one at .5 and another at .5 but in my trials and errors a .5 and .4 totaling .9 worked.

_____________________________

Conflict of Heroes "Most games are like checkers or chess and some have dice and cards involved too. This game plays like checkers but you think like chess and the dice and cards can change everything in real time."

(in reply to HintJ)
Post #: 8
RE: Grass flickering big/small? - 6/4/2011 6:02:30 PM   
rickier65

 

Posts: 14231
Joined: 4/20/2000
Status: offline

quote:

ORIGINAL: HintJ

Problem solved by not having more than one type of grass assigned to a single type of terrain.

Is it not possible to assign more than one type of grass to "LowGrass?"


Try different grass model or different height for second model or range of height.

Also use -1 for sightingfactorHit as that will give you the default value unless you know you want something different

Thanks
Rick

(in reply to HintJ)
Post #: 9
RE: Grass flickering big/small? - 6/4/2011 6:08:05 PM   
junk2drive


Posts: 12907
Joined: 6/27/2002
From: Arizona West Coast
Status: offline
Glad we are all in agreement

From my notes

You can leave out all the criteria and it will default to:

persistent = false
density = 0.25
height = 1 (in meters)
width = 1 (in meters)
terrain = clear
sightingFactorHit = (see list below)

Example <grass mediaId="mo_springwheat1.dds" />

Sighting factor is as follows (f = factor):

<removed as they have changed>

If you wish for the grass to have no effect on sighting, add the criteria sightingFactorHit="0"
sighthingFactorHit values should not normally be entered. They were intended for special cases. Also NOTE that values can be entered with ranges, to give variety, or with a single value, for uniformity. In general it should be a small value like 0.1 to 3.0

_____________________________

Conflict of Heroes "Most games are like checkers or chess and some have dice and cards involved too. This game plays like checkers but you think like chess and the dice and cards can change everything in real time."

(in reply to rickier65)
Post #: 10
RE: Grass flickering big/small? - 6/4/2011 11:38:04 PM   
Stridor


Posts: 5081
Joined: 9/8/2007
Status: offline
The game has an internal LOS degradation for each different type (terrain type) of grass. If you leave sightingFactorHit completely out or make it "=-1" then the game will use the default LOS hit. However you can override this. By making it "=0" you can have the game ignore grass for LOS calcs. Also you can make it equal to some positive value if you want to override the defaults.

S.

(in reply to junk2drive)
Post #: 11
Page:   [1]
All Forums >> [Current Games From Matrix.] >> [World War II] >> Panzer Command: Ostfront >> Grass flickering big/small? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

1.281