.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > The Camo Workshop > WinSPMBT
Notices


Reply
 
Thread Tools Display Modes
  #1  
Old February 1st, 2023, 05:41 PM

jp10 jp10 is offline
Corporal
 
Join Date: Jul 2016
Location: Nashville, TN, USA
Posts: 177
Thanks: 21
Thanked 69 Times in 48 Posts
jp10 is on a distinguished road
Default Blur effect in terrain render

Within the constraints of the map terrain generation method, could a blur effect be applied to smooth the pixelization at full 'zoom'?
At the moment I'm looking at ground textures not buildings, trees etc.
I am not familiar with WinSP code but generally I would expect it to be an issue of if the game would blur the RGB values with a kernal instead of a more modern post processing filter.

Is the map being generated from data on each pixel or is there a true 'tile' that is a big byte of code? If one took the basic tiles of the open, rough, bare, mud...etc, applied a blur to soften the pixels and then recompiled that into the source could a smoother ground at maximum zoom be achieved?
Reply With Quote
  #2  
Old February 1st, 2023, 08:32 PM
DRG's Avatar

DRG DRG is offline
Shrapnel Fanatic
 
Join Date: Mar 2005
Location: GWN
Posts: 12,495
Thanks: 3,966
Thanked 5,704 Times in 2,815 Posts
DRG will become famous soon enough
Default Re: Blur effect in terrain render

The simple answer is no. I could type for an hour explaining why and Andy could probably do the same but I don't have that hour and I don't think he does either especially given you want some blurred and some not

I don't want blurry terrain anyway and in all the years we have had this in the game I have never had an issue with the look of it
__________________


"You are never to old to rock and roll if you are too young to die".--- What do you expect to be doing when you are 80?


https://www.youtube.com/watch?v=8kWt8ELuDOc
Reply With Quote
  #3  
Old February 1st, 2023, 08:35 PM

jp10 jp10 is offline
Corporal
 
Join Date: Jul 2016
Location: Nashville, TN, USA
Posts: 177
Thanks: 21
Thanked 69 Times in 48 Posts
jp10 is on a distinguished road
Default Re: Blur effect in terrain render

Thanks for a prompt reply.
Reply With Quote
  #4  
Old February 1st, 2023, 10:03 PM
Mobhack's Avatar

Mobhack Mobhack is offline
National Security Advisor
 
Join Date: Mar 2005
Location: Dundee
Posts: 5,957
Thanks: 465
Thanked 1,899 Times in 1,237 Posts
Mobhack is on a distinguished road
Default Re: Blur effect in terrain render

The third party dll that does the graphics is a very early version of DirectX - Dx5?

As its a third party black box which we cannot change, and such effects (pixel shaders?) werent even thought of at the time, then its a definate nope.
Reply With Quote
  #5  
Old February 2nd, 2023, 11:21 AM
DRG's Avatar

DRG DRG is offline
Shrapnel Fanatic
 
Join Date: Mar 2005
Location: GWN
Posts: 12,495
Thanks: 3,966
Thanked 5,704 Times in 2,815 Posts
DRG will become famous soon enough
Default Re: Blur effect in terrain render

The original game displayed terrain for each zoom level from a unique SHP file and as a result, adding new terrain was a ROYAL PITA as each different tile had to be manually reduced and expanded and put in its own files. About a decade ago that was changed and now all the Terrain tiles are reduced or expanded from Z4 and all the terrain SHP files but the Z4s' are redundant and not used (Z4 is the 1:1 standard ).

That was how the Icons were made larger and smaller depending on the zoom and we applied it to terrain. We believe it was done this way in the 1990s to lessen the memory used back in the day when available memory was not nearly as abundant as now and computers were considerably slower.. having a tile in each size made loading zoom in/out faster

So... the code uses that Z4 to create the smaller and larger tiles needed to zoom out and in but as Andy noted the code that does that is not something we could change even if we wanted to
__________________


"You are never to old to rock and roll if you are too young to die".--- What do you expect to be doing when you are 80?


https://www.youtube.com/watch?v=8kWt8ELuDOc
Reply With Quote
  #6  
Old February 3rd, 2023, 07:24 PM

jp10 jp10 is offline
Corporal
 
Join Date: Jul 2016
Location: Nashville, TN, USA
Posts: 177
Thanks: 21
Thanked 69 Times in 48 Posts
jp10 is on a distinguished road
Default Re: Blur effect in terrain render

Thanks for the clarification and insight.
I was not envisioning a heavy blur, maybe anywhere from 6% to 20? Just enough to blend the ground pixels. It would also produce an visual processing depth effect by having the background blurred and leave the vehicle/troop/gun at the current style of render. Trick the eye into a 'closer is focused/distant is unfocused visual effect.
So basically zooming in is just magnification of an BMP with no resampling or increase in PPI. Interesting. I shall have to think on this.
Reply With Quote
  #7  
Old February 3rd, 2023, 07:41 PM
Mobhack's Avatar

Mobhack Mobhack is offline
National Security Advisor
 
Join Date: Mar 2005
Location: Dundee
Posts: 5,957
Thanks: 465
Thanked 1,899 Times in 1,237 Posts
Mobhack is on a distinguished road
Default Re: Blur effect in terrain render

The base shape that is rescaled is resampled by the graphics module using some sort of technique - its not just a simple blow-up i believe - some anti-aliasing is in there. But that is a third-party software library, not ours.
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 08:21 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.