Graphics

Reply
Accepted Solution

Problem with camera intersecting walls

[ Edited ]

When the camera intersect a wall this is the result(look at the right, i can see trough)


 

 

I want the entire wall to be rendered, instead it renders the wall until the camera position. What can i do?

 

For the level i'm using a simple grid of cubes, i'm using this code for depth test and back culling.

 

graphics.Enable (EnableMode.CullFace);
graphics.SetCullFace (CullFaceMode.Back, CullFaceDirection.Ccw);
graphics.Enable (EnableMode.DepthTest);
graphics.SetDepthFunc (DepthFuncMode.LEqual, true); 

 

PS:

textures are not mine and i won't use them at the end. 

Please use plain text.

Rif.: Problem with camera intersecting walls

Geometry is being clipped when it crosses the camera frustum.

 

http://en.wikipedia.org/wiki/Clipping_%28computer_graphics%29

Please use plain text.

Re: Problem with camera intersecting walls

You should adjust your near/far clipping planes. Make the 'near' plane closer to the camera and you will be able to move closer to the wall without it clipping. Don't move it too close though or you loose depth precision.

Please use plain text.

Rif.: Problem with camera intersecting walls

Thank you! :BigGrin:

Please use plain text.
This widget could not be displayed.
Announcements

Welcome to the PlayStation Mobile Developer Forums


This is a community for the discussion of technical topics with other developers and SCE engineers. Posting ideas/requests are also appreciated. Join the discussion!

PlayStation®Mobile開発者フォーラムでは世界中の開発者の皆様と一緒に、議論や情報交換が可能です。SCEも議論に参加し、皆様の開発をサポートします。アイデアやリクエストも大歓迎です。ぜひご参加ください。

PSM Developer Registration (for free) on PSM DevPortal is required to post on the forum.
Please sign out then sign in again to the forum and PSM DevPortal after you have completed the registration.

フォーラムへ投稿をするにはPSM DevPortalへの登録(無料)が必要です。
登録後はフォーラムと PSM DevPortalを一度ログアウトし、再度ログインしてください。






Recent News