Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3508 Members - Latest Member: PienueDut

26. May 2012, 08:09:24 am
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)[SOLVED] Error in BSPLoader or my error?
Pages: [1]
Print
Author Topic: [SOLVED] Error in BSPLoader or my error?  (Read 1185 times)
Lobotomia
Becoming dependent
**
Offline Offline

Posts: 126



View Profile WWW
« on: 11. August 2008, 03:12:08 pm »

Hi,
i'm based on BSPLoader Demo, but when i load .bsp and i use fpihandler if i move near to wall (touch withit)  i see half of what are behind the wall, is this normal?

Thank you
« Last Edit: 12. August 2008, 02:06:46 pm by Lobotomia » Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 11. August 2008, 03:34:21 pm »

i'm based on BSPLoader Demo, but when i load .bsp and i use fpihandler if i move near to wall (touch withit)  i see half of what are behind the wall, is this normal?

Hi Lobotomia. Welcome to Xith3D Smiley.

Yes. This is normal. Well, not really normal, but it is a known and unsolved problem. It will be solved in the future. But for now I have other things to do. I hope, you can live with it for some more time.

Marvin
Logged
Lobotomia
Becoming dependent
**
Offline Offline

Posts: 126



View Profile WWW
« Reply #2 on: 11. August 2008, 03:50:09 pm »

i'm based on BSPLoader Demo, but when i load .bsp and i use fpihandler if i move near to wall (touch withit)  i see half of what are behind the wall, is this normal?

Hi Lobotomia. Welcome to Xith3D Smiley.

Yes. This is normal. Well, not really normal, but it is a known and unsolved problem. It will be solved in the future. But for now I have other things to do. I hope, you can live with it for some more time.

Marvin
ehm.. very very little, i must write a game as exam for university Tongue
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #3 on: 11. August 2008, 04:15:41 pm »

ehm.. very very little, i must write a game as exam for university Tongue

Do you need third-person-view in your game? Or just first-person? This problem doesn't happen in strict first-person view (or at least it shouldn't).

Marvin
Logged
Lobotomia
Becoming dependent
**
Offline Offline

Posts: 126



View Profile WWW
« Reply #4 on: 11. August 2008, 04:32:46 pm »

ehm.. very very little, i must write a game as exam for university Tongue

Do you need third-person-view in your game? Or just first-person? This problem doesn't happen in strict first-person view (or at least it shouldn't).

Marvin

for me first person or third person is the same, i'm try in first person and i have this problem Smiley
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #5 on: 11. August 2008, 04:45:54 pm »

for me first person or third person is the same, i'm try in first person and i have this problem Smiley

You must make sure, that the near-clip-plane is not too far away for standing near the wall. For me a value of 0.5 is fine for an avatar collision object with a width of 1.5.

Marvin
Logged
Lobotomia
Becoming dependent
**
Offline Offline

Posts: 126



View Profile WWW
« Reply #6 on: 11. August 2008, 04:50:10 pm »

How I Must set this?

for me first person or third person is the same, i'm try in first person and i have this problem Smiley

You must make sure, that the near-clip-plane is not too far away for standing near the wall. For me a value of 0.5 is fine for an avatar collision object with a width of 1.5.

Marvin
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #7 on: 11. August 2008, 05:02:27 pm »

How I Must set this?

I assume, you have a separate RenderPass for the BSP scene. Then you simply do it the following way:
Code:
renderPass.getConfig.setFrontClipDistance( 0.5f );

Marvin
Logged
Lobotomia
Becoming dependent
**
Offline Offline

Posts: 126



View Profile WWW
« Reply #8 on: 12. August 2008, 02:08:46 pm »

How I Must set this?

I assume, you have a separate RenderPass for the BSP scene. Then you simply do it the following way:
Code:
renderPass.getConfig.setFrontClipDistance( 0.5f );

Marvin

Ok I have solved (and i change topic),
my problem was in my code:
Code:
renderPass.getConfig.setFrontClipDistance( 1f );

tnx
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic