1 registered members (TipmyPip),
18,561
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Disappearing Walls, Ceiling, Floors...
[Re: Homifier]
#143205
07/24/07 22:30
07/24/07 22:30
|
Joined: Jul 2005
Posts: 79 Bonn, Germany
KuleskoStudios
Junior Member
|
Junior Member
Joined: Jul 2005
Posts: 79
Bonn, Germany
|
This happens because your camera gets behind some walls, I think.The problem is that the backfaces are not shown so the part of your level seems to disappear. What you need is a camera collisionsystem. just trace from the point, the camera is aiming to, to the position your camera should be placed at, if there wasn't a wall. And then make the camera be placed either at your planned position or at the target on the wall. here an example from my game silent wg: Code:
vec_Set(temp,nullvector); vec_set(temp,vector(-180,0,160));//I want the camera at 180 //behind the player and 160 above him vec_rotate(temp,player.pan);//this rotates the vector vec_add(temp,player.x);//this finally sets the vector to the //position I wanted c_trace(vector(player.x,player.y,temp.z),temp,ignore_me+ignore_you+ignore_passable+ignore_passents+ignore_models+ignore_sprites); if(result==0){//if there isn't a wall vec_set(camera.x,temp); }else{ vec_set(camera.x,target); }
you would have to put it in a while loop and thats it.
|
|
|
Re: Disappearing Walls, Ceiling, Floors...
[Re: Homifier]
#143207
07/25/07 16:24
07/25/07 16:24
|
Joined: Jan 2006
Posts: 2,157 Connecticut, USA
Blink

Expert
|

Expert
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
|
if you open the project manager you can change the settings with display and camera collision.
My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
|
|
|
Re: Disappearing Walls, Ceiling, Floors...
[Re: Homifier]
#143209
07/25/07 20:35
07/25/07 20:35
|
Joined: Jan 2006
Posts: 2,157 Connecticut, USA
Blink

Expert
|

Expert
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
|
in WED look under file, then project manager, then look at customize, and select display, and customize button to open up the dialog. you can change a bunch of different settings there. and if you are using a 3rd person camera you can customize the collision for the camera and models there too. i hope this helps, good luck!
My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
|
|
|
Re: Disappearing Walls, Ceiling, Floors...
[Re: Homifier]
#143211
07/25/07 23:40
07/25/07 23:40
|
Joined: Jan 2006
Posts: 2,157 Connecticut, USA
Blink

Expert
|

Expert
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
|
go into project manager again and add the cameras that are missing.
My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|