Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (degenerate_762, AndrewAMD), 877 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Terrain clips away #395157
02/20/12 13:21
02/20/12 13:21
Joined: Jul 2010
Posts: 974
United Arab Emirates, Dubai
TheShooter Offline OP
User
TheShooter  Offline OP
User

Joined: Jul 2010
Posts: 974
United Arab Emirates, Dubai
Hi,
I have some strange clipping problems with my terrain. When I move the camera around, at some point the terrain clips away.

When I just look at the terrain, it looks like this:

When I turn the camera a little bit down, it looks like this:

I attached the following action to the terrain:
Code:
action never_clip()
{
	my.clipfactor = 999999;
}



And I set this in the mainscript:
Code:
camera.clip_near = 1;



Where is the problem?

regards,
TheShooter


Staub ist das neue Prime!!

Programming is like sex:
One mistake and you have to support it for the rest of your life.

Aktuelles Projekt: http://thisiswargame.bplaced.net/index.html

A8 Commercial *freu*
Re: Terrain clips away [Re: TheShooter] #395158
02/20/12 13:34
02/20/12 13:34
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
What is with camrra.clip_far ?

Re: Terrain clips away [Re: Ch40zzC0d3r] #395159
02/20/12 13:44
02/20/12 13:44
Joined: Jul 2010
Posts: 974
United Arab Emirates, Dubai
TheShooter Offline OP
User
TheShooter  Offline OP
User

Joined: Jul 2010
Posts: 974
United Arab Emirates, Dubai
Sorry, I forgot that:
Code:
camera.clip_far = 50000;




Staub ist das neue Prime!!

Programming is like sex:
One mistake and you have to support it for the rest of your life.

Aktuelles Projekt: http://thisiswargame.bplaced.net/index.html

A8 Commercial *freu*
Re: Terrain clips away [Re: Ch40zzC0d3r] #395160
02/20/12 13:47
02/20/12 13:47
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
in A8, if you scale a terrain what is a part of a wmb level, it causes rendering error, but only if vertices are moved by getvertex/setvertex. more exaclty the terrain disappears randomly. I reported it last autumn, but maybe it is not your case.
it can be an entity sorting problem too.


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: Terrain clips away [Re: sivan] #395161
02/20/12 13:48
02/20/12 13:48
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
or forgetting to set clip_far grin


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: Terrain clips away [Re: sivan] #395173
02/20/12 16:00
02/20/12 16:00
Joined: Jul 2010
Posts: 974
United Arab Emirates, Dubai
TheShooter Offline OP
User
TheShooter  Offline OP
User

Joined: Jul 2010
Posts: 974
United Arab Emirates, Dubai
When the terrain is clipped away, it still receives c_traces, and it gets still reflected in the water. I already set the clipfactor (have a look at the first post), but it gets still clipped away. But only, when I move the camera a little bit down. And just in a small area along the y axis.

What could cause that problem?

regards,
TheShooter


Staub ist das neue Prime!!

Programming is like sex:
One mistake and you have to support it for the rest of your life.

Aktuelles Projekt: http://thisiswargame.bplaced.net/index.html

A8 Commercial *freu*
Re: Terrain clips away [Re: TheShooter] #395246
02/21/12 14:24
02/21/12 14:24
Joined: Jul 2010
Posts: 974
United Arab Emirates, Dubai
TheShooter Offline OP
User
TheShooter  Offline OP
User

Joined: Jul 2010
Posts: 974
United Arab Emirates, Dubai
*push*


Last edited by TheShooter; 02/21/12 14:25.

Staub ist das neue Prime!!

Programming is like sex:
One mistake and you have to support it for the rest of your life.

Aktuelles Projekt: http://thisiswargame.bplaced.net/index.html

A8 Commercial *freu*
Re: Terrain clips away [Re: TheShooter] #395250
02/21/12 14:46
02/21/12 14:46
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
idk sorry, try to use a model instead of hmp file.

Re: Terrain clips away [Re: Ch40zzC0d3r] #395272
02/21/12 17:56
02/21/12 17:56
Joined: Jul 2010
Posts: 974
United Arab Emirates, Dubai
TheShooter Offline OP
User
TheShooter  Offline OP
User

Joined: Jul 2010
Posts: 974
United Arab Emirates, Dubai
I already tried this, but I get a "bad model size" error, when I use a model. I have to scale it heavely up, so it fits in my level. What a crap....
any ideas?

regards,
TheShooter


Staub ist das neue Prime!!

Programming is like sex:
One mistake and you have to support it for the rest of your life.

Aktuelles Projekt: http://thisiswargame.bplaced.net/index.html

A8 Commercial *freu*
Re: Terrain clips away [Re: TheShooter] #395284
02/21/12 19:31
02/21/12 19:31
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
Scale it in med down and change scale_x manually with code wink

Page 1 of 2 1 2

Moderated by  HeelX, Spirit 

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