Gamestudio Links
Zorro Links
Newest Posts
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,529 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How can I not clip the terrain? #151285
08/31/07 05:30
08/31/07 05:30
Joined: Aug 2007
Posts: 6
inferno Offline OP
Newbie
inferno  Offline OP
Newbie

Joined: Aug 2007
Posts: 6
Hello Everyone,

How can I not make the terrain clip? When I use camera.clip_far = x; The terrain also clips. Only problem with this is when the terrain unclipped, the mountains suddenly appear, it doesn't look so great. Any help would be great. Thank you.



Re: How can I not clip the terrain? [Re: inferno] #151286
08/31/07 06:58
08/31/07 06:58
Joined: Oct 2006
Posts: 873
S
Shadow969 Offline
User
Shadow969  Offline
User
S

Joined: Oct 2006
Posts: 873
hm, i think there was a flag noclip, or something like that, try searching manual

Re: How can I not clip the terrain? [Re: Shadow969] #151287
08/31/07 14:48
08/31/07 14:48
Joined: Apr 2005
Posts: 3,076
Germany, NRW
rvL_eXile Offline

3D Artist
rvL_eXile  Offline

3D Artist

Joined: Apr 2005
Posts: 3,076
Germany, NRW
Increase the Clip_far Value

cYa Sebastian


Tutorials:
[Blender]Terrain creation ENG/GER
[Blender]Low Poly Tree Modeling
[GIMP]Create a Texture for Terrains
CLICK HERE


Re: How can I not clip the terrain? [Re: rvL_eXile] #151288
08/31/07 16:53
08/31/07 16:53
Joined: Aug 2007
Posts: 6
inferno Offline OP
Newbie
inferno  Offline OP
Newbie

Joined: Aug 2007
Posts: 6
QUOTE: Increase the Clip_far Value

The problem with that solution is the other models (such as trees and buildings) don't get clipped. I just want the terrain to be not clipped. Thank you.

Re: How can I not clip the terrain? [Re: inferno] #151289
08/31/07 17:39
08/31/07 17:39
Joined: Jan 2006
Posts: 968
EpsiloN Offline
User
EpsiloN  Offline
User

Joined: Jan 2006
Posts: 968
in every function/action attached to an entity add:
Code:

if(vec_dist(my.x,player.x) > clip_range_var)
{
my.invisible = on;
}
else { my.invisible = off; }


this will hide all ents that are outside of your custom clip range,and will leave your terrain unaffected (also increase your clip range,to show the mountains)

PS.: You have to define the variable clip_range_var...


Extensive Multiplayer tutorial:
http://mesetts.com/index.php?page=201
Re: How can I not clip the terrain? [Re: EpsiloN] #151290
09/01/07 11:38
09/01/07 11:38
Joined: Mar 2005
Posts: 564
/www/europe/ germany/index.php
TSG_Torsten Offline

User
TSG_Torsten  Offline

User

Joined: Mar 2005
Posts: 564
/www/europe/ germany/index.php
@Epsilon: But I think this method is slower than using the clipping from the engine.

Sorry, but I also have no idea how to do that, I don't know any "no-clip" flag or something else.

Regards
TSGames

Re: How can I not clip the terrain? [Re: TSG_Torsten] #151291
09/02/07 15:32
09/02/07 15:32
Joined: Jan 2006
Posts: 968
EpsiloN Offline
User
EpsiloN  Offline
User

Joined: Jan 2006
Posts: 968
It'll be slower if the user has a 10 years old comp. Plus , I doubt someone will use more than 20000 ents,to slow down the engine that much.

Also , there is a better way , to hide everything thats behind the player , but it requires more math and scripting.


Extensive Multiplayer tutorial:
http://mesetts.com/index.php?page=201

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1