Product Chat / Grass sway speed

Author
Message
Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 9th Aug 2019 20:04
Hi all, I'm trying on my levels to use the grass as a tree spraying tool kind of thing but I cannot get the grass to stop swaying. I have tried it with the tab tab set to lowest but its still doing it!! also ive chaged the values in the vegetation_basic fx these lines



still no joy ,reason I'm doing this is that the trees (grass) just split in two when they sway see pic. so any help here would be appreciated cheers

Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
AMD Radeon 7570 1gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel

I only smile because i have absolutely no idea whats going on

Attachments

Login to view attachments
Tauren
9
Years of Service
User Offline
Joined: 25th Jun 2015
Playing: PUBG,Conan Exiles,WoW,HoMM III,MoO 2,Master of Orion 2016
Posted: 9th Aug 2019 20:58 Edited at: 9th Aug 2019 21:12
Hello, Honkeyboy !
I'm not sure, but perhaps this problem is related to the problem of the swing speed of trees ?
I have long been struggling with the speed of animation of static entities I created a ticket https://github.com/TheGameCreators/GameGuruRepo/issues/580 and added some files for the test.
Perhaps you have something to add to this question?

Or this is a completely different problem..
I confess that I almost did not deal with grass when there were problems with animated trees..
But for some reason it seems to me that they are interconnected.
PM
Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 9th Aug 2019 22:03
For trees Tauren you may want to look at this by Devcore35
https://forum.game-guru.com/thread/215336
for myself its purely to do with the grass it used to be if you changed the vegetation to lowest the animations would stop but this is no longer working, in fact nothing seems to be working as far as the grass settings go apart from sizing and population e.g no change at all between lowest and highest anyone else have this or do I need to verify ?
Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
AMD Radeon 7570 1gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel

I only smile because i have absolutely no idea whats going on
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 10th Aug 2019 01:22
Cant stop them animating either ..
To be honest though I never noticed they did but that's just me ..
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
cybernescence
GameGuru Master
11
Years of Service
User Offline
Joined: 28th Jan 2013
Playing: Cogwheel Chronicles
Posted: 10th Aug 2019 09:33
Are you replacing the grass (veg) model with one for a tree? It looks like it’s using the cross quad grass model for your trees?

Are you using pbroverride=1 - if so the sway for grass is in a apbr_core.fx.

Cheers.
Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 10th Aug 2019 15:16 Edited at: 10th Aug 2019 15:55
@ cybernescence yes to both m8 and thanks will check the apbr_core.fx. out
@ synchromesh yeah just an experiment m8 sometimes if you put down heavy amounts of grass you lose around 10fps so playing around to see if its not animating whether or not you lose the same amount.
Edit: ok I zeroed the sway values in the apbr_core.fx and still no joy (see vid) I have also done some large jungle ferns which don't have the same visual issue, but still hit the fps if used heavily so need to find a way to stop it animating to check the fps hit on a level.
Also I think I saw a little while back Lee looking into multiple grass types and so thought it'd be cool if one or more of those grass types was a tree a sort of all in 1 spray type tool
p.s does the scaleoveride have anything to do with the sway? I wouldn't have thought so but best to check


Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
AMD Radeon 7570 1gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel

I only smile because i have absolutely no idea whats going on
cybernescence
GameGuru Master
11
Years of Service
User Offline
Joined: 28th Jan 2013
Playing: Cogwheel Chronicles
Posted: 10th Aug 2019 15:59 Edited at: 10th Aug 2019 16:10
Quote: "ok I zeroed the sway values in the apbr_core.fx"


Did you remember to delete apbr_veg.blob afterwards and restart GG?

Cheers

EDIT:

as a quick test, changed:

float SwayAmount = 0.0f; //0.05f;
float SwaySpeed = 0.0f; //1.0f;

and restarted GG after deleting the .blob file and swaying has stopped.

Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 10th Aug 2019 21:45 Edited at: 10th Aug 2019 21:59
OK m8 and no I didn't thanks for that
Edit changed the values to what you have put. deleted the blob file and got this error so presume the blob file is not being re created for me?

Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
AMD Radeon 7570 1gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel

I only smile because i have absolutely no idea whats going on

Attachments

Login to view attachments
cybernescence
GameGuru Master
11
Years of Service
User Offline
Joined: 28th Jan 2013
Playing: Cogwheel Chronicles
Posted: 10th Aug 2019 23:33 Edited at: 10th Aug 2019 23:35
Yes must be some error in the file now. Check the lines you have changed carefully.

Cheers.

Edit: or change the setup.ini to reload all the shaders and it should give you a meaningful error message.
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 10th Aug 2019 23:38
Close GG.
Edit setup.ini file and change:

forceloadtestgameshaders=0

to

forceloadtestgameshaders=1

save changes and reopen GG.

Run your level
Turn to editor and close GG

Back the changes to the setup ini file so it should looks now such as: forceloadtestgameshaders=0
Save changes and reopen GG.
hth
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 13th Aug 2019 11:21 Edited at: 13th Aug 2019 11:41
Took a day off and played EQ2 with my daughter, went back to it followed the instructions again and it worked first time, thanks guys would be nice to have a switch in the setup.ini for grass animations as it now has zero hit on the fps (previously - 10fps) and as synchromesh said not a lot of people are looking at the grass animating when playing a level but they may notice the big fps drop!
last pic shows the final veg with some ground cover added(no loss of fps) included if you want to try it.
You will need to follow the above instructions:





Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
AMD Radeon 7570 1gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel

I only smile because i have absolutely no idea whats going on

Attachments

Login to view attachments
cybernescence
GameGuru Master
11
Years of Service
User Offline
Joined: 28th Jan 2013
Playing: Cogwheel Chronicles
Posted: 13th Aug 2019 12:36
That’s quite an increase in FPS I’m not sure I would have expected that much from suppressing vertex updates.

It could be coded relatively easily to stop the animation if ‘lowest’ was selected for grass via tab tab UI.

Cheers.
Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 13th Aug 2019 13:01 Edited at: 13th Aug 2019 13:47
Yeah m8 the fps hit when you use a lot of grass is quite apparent in my case by stopping the animation I gained 10fps, I tried this before using trees as grass to make it like a spray trees tool so to speak but have only recently noticed the fps drop when its animated. I'm currently working on a few types of trees to use as grass and trying to add grass at the bottom without getting that x pattern its not too bad tbh I've just done a pine for the ice terrain. (see pic) showing how you can easily create the grass to simulate trees. (pic2) raising the ground)Now I just need to increase the hight I have had mixed results actually increasing the size of the .x but noticed there was a scale setting under sway etc can this be used to do it?
p.s I only need to slightly increase there size maybe 1.2 - 1.5 x bigger (the ones in the pic are at 100% size)
Cheers





Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
AMD Radeon 7570 1gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel

I only smile because i have absolutely no idea whats going on

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-24 01:11:34
Your offset time is: 2024-11-24 01:11:34