[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
Battlefield Modding Tutorials BFMODS • View topic - Increasing effect visibility distance

Battlefield Modding Tutorials BFMODS

Battlefield Modding Tutorials
It is currently Fri May 03, 2024 10:05 am

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 26 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
PostPosted: Wed May 13, 2009 4:36 pm 
Offline
User avatar

Joined: Thu Feb 05, 2009 7:54 pm
Posts: 487
Location: Germany

_________________
Kampagne XI - Vereinte Achsenmächte


xFire: wgpsenshi


Top
 Profile Send private message E-mail  
 
PostPosted: Wed May 13, 2009 4:45 pm 
Offline

Joined: Tue Nov 27, 2007 7:56 pm
Posts: 1226
BaZOOKa.


Top
 Profile Send private message E-mail  
 
PostPosted: Wed May 13, 2009 9:08 pm 
Offline

Joined: Thu Mar 15, 2007 2:22 pm
Posts: 1253


Top
 Profile Send private message E-mail  
 
PostPosted: Wed May 13, 2009 9:35 pm 
Offline
User avatar

Joined: Thu Feb 05, 2009 7:54 pm
Posts: 487
Location: Germany
Why??? It doesn't do any good. I wrote before that I tested as you said, to no avail.

No matter how I change the loddistance values or TimeToLives, nothing changes regarding max visibility distance...

_________________
Kampagne XI - Vereinte Achsenmächte


xFire: wgpsenshi


Top
 Profile Send private message E-mail  
 
PostPosted: Thu May 14, 2009 12:29 am 
Offline

Joined: Wed Oct 10, 2007 10:01 pm
Posts: 43


Top
 Profile Send private message E-mail  
 
PostPosted: Thu May 14, 2009 12:26 pm 
Offline

Joined: Fri May 23, 2008 7:25 pm
Posts: 49
Can you post a video?


I'd like to see the code in action.





8-)


Top
 Profile Send private message E-mail  
 
PostPosted: Thu May 14, 2009 1:18 pm 
Offline
User avatar

Joined: Thu Feb 05, 2009 7:54 pm
Posts: 487
Location: Germany
Videos are not doing anything good there if they are not HD...but you can easily imagine what this would do.

When you enter a jeep and press F12 for the flyby camera. Now drive towards the camera in a way you can see your soldiers' face. In vanilla you will notice the quality of the face becomes better as you approach and quickly lowers again as you move away. With this code, this simply doesn't happen. You have always the highest LOD quality. Perfomance impact is absolutely minimal and only really noticeable on a very full server with a small map (e.g. Stalingrad or Berlin) where many faces would have to be rendered.

But still would be interested in a solution for the original matter of this topic, the effects visibility. Would be happy if someone could enlighten me on that.

_________________
Kampagne XI - Vereinte Achsenmächte


xFire: wgpsenshi


Top
 Profile Send private message E-mail  
 
PostPosted: Thu May 14, 2009 10:09 pm 
Offline

Joined: Sat Jan 26, 2008 11:58 am
Posts: 206
Location: UK / Sweden
(time for a lengthy and sanctimonious answer)

the problem is not the effect.. it's the projectile geometry. small objects like this seem to disappear (and the attached effect in this case) at relatively short range and it seems no amount of code tweaking can fix it. I guess there an overriding law within the engine that does this. To overcome it you can increase the size of the bounding box of the object which seems to trick the engine into thinking it is big.. and should still be on screen.

I have done this before with little wooden posts along side race tracks where they would always disappear too early... This problem is apparent because like me you are creating maps with high view and detail settings which bf42 pc's couldn’t handle (yeah yeah whatever.. we know...) before and the engine was never expected to display this distance.

I give you projectile_m1_long_view_distance !



add it as a custom static.. change the geometry in the PanzerIV weapons.con to this model (same but HUGE bbox) and you will see smoke trails for eternity.. (almost..)

One thing though.. it seems with projectiles you need to either precache the object or have it appear on the map somewhere as a static.. i had weird issues getting it to appear.
So try it on its own but if you have issues then create a simple static object with this mesh and just place it underground somewhere.. then it will be in the cache and will work. I guess because it is a custom.. and it not loaded on map start (the first time it appears is when its fired..) it doesn’t load up properly.

let me know if you have probs anyway.

*bows


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 26 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 275 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Group