29-04-2012 08:15 PM - edited 29-04-2012 08:16 PM
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.
Solved! Go to Solution.
on 30-04-2012 01:02 PM
Geometry is being clipped when it crosses the camera frustum.
http://en.wikipedia.org/wiki/Clipping_%28computer_
on 30-04-2012 02:21 PM
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.
on 30-04-2012 06:06 PM
Thank you! ![]()
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を一度ログアウトし、再度ログインしてください。


Website ©2013 Sony Computer Entertainment Europe
All content, game titles, trade names and/or trade dress, trademarks, artwork and associated imagery are trademarks and/or copyright material of their respective owners. All rights reserved. [more info]
%%http://community.eu.playstation.com/t5/Announcements/Beta-Trial-Information/td-p/11386362
best_shooter.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_driver.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_performer.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_footballer.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_fighter.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_creator.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_action_player.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
dev2.png%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/Producer-and-Developer-Ranks/td-p/18407352
trophy.gif%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/The-Community-Awards-FAQ/td-p/18407096
PSlogoSM.png%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/Online-Support-Coordinator-rank/td-p/18414870