Previous Thread  Next Thread

chat icon Crash/Camera problem

shursey

Posted: Mon Feb 24, 2003 11:02 pm
Joined: 15 Oct 2002
Posts: 11
Hey everyone!
I have a question about the game engine. Is there a way to make alter a dynamic object so that it can only collide with non-dynamic objects, but passes through other dynamic objects? If this is impossible, I've made a simulation of a marbal passing through a LOOOOOOOOOOOOOOOOONG tube but I can't get the camera to follow directly behind it. Does anyone have any ideas on what I should do? PLEASE HELP ME!!!
Reply with quote


joeri

Posted: Tue Feb 25, 2003 4:11 pm
Joined: 10 Jan 2003
Posts: 2242
I'd like to help but I don't fully understand the question.

If you want the camera to stay inside the tube without using python then you're in trouble. The camera does not collide with objects. And the camera actuator does not take collision into account.
Reply with quote


shursey

Posted: Tue Feb 25, 2003 10:18 pm
Joined: 15 Oct 2002
Posts: 11
Well... that really bites Confused ! Does anyone know where I can find a python script or alternate method that will make the camera follow the marbal INSIDE the tube?
Reply with quote


soul_crash

Posted: Wed Feb 26, 2003 1:11 am
Joined: 14 Oct 2002
Posts: 9
possibly the ghost button in the dyn object panel? or try turning off collision for the faces maybe?
Reply with quote


joeri

Posted: Wed Feb 26, 2003 9:59 am
Joined: 10 Jan 2003
Posts: 2242
Send me the file, and I'll take a look at it.
Reply with quote


shursey

Posted: Fri Feb 28, 2003 1:27 pm
Joined: 15 Oct 2002
Posts: 11
Ok, the file should be there by the time you read this. Thanks Very Happy
Reply with quote


joeri

Posted: Fri Feb 28, 2003 11:55 pm
Joined: 10 Jan 2003
Posts: 2242
Your file is pretty much okay Very Happy

But,..... there are a few remarks.

In the game engine polygons are single sided, this means the camera sees them only from 1 side. You can make them double sided (this doubles the polycount) or let them all face inward. To do this you select the object and type TAB - A - Ctrl/Shift/N - Enter - TAB. For this to work (and that brings me to point 2) you need a nice and clean model.
Not only does this game engine not like many polygons, it really does not like many objects. So join your objects into one. (select objects, Ctrl/J - Enter).
Now how do you know in object or editmode what way the normal is facing? In the edit button-window (F9) there is a "Double Sided" toggle button on the right, depress it to see single sided polygons.
And while you're at it, also remove doubles, this is done in editmode with all verteces selected where you want the doubles removed from (in your case all , so TAB - A -> remove doubles - TAB.
An other thing you can do to see the normals direction is select the object and press F, now you're in faceselect mode, wich brings me to the next point ... I think you should add some lights (SPACE->Add->Lamp) and make all faces calculate realtime light. You can do this by selecting your object, go in face select mode (F) select all faces (A or A - A if one face was selected) and use the special menu ( W ) to set light ( W 3). If your in wireframe mode press Alt/Z to see the effects the lights are having on your objects, move (G) the lights for realtime editing. For extra tasty colors you can vertex-paint them in. Press the little paintbrush icon and you'll see face & vertex paint settings for your object.
Press V to go into vertex paint mode, and by pressing the leftmousebutton you'll paint the righthand color onto your object.

Have fun!
Reply with quote


shursey

Posted: Sun Mar 02, 2003 3:49 am
Joined: 15 Oct 2002
Posts: 11
Thanks for those great tips Very Happy ! They will come in handy. But how do I solve my camera problem?
Reply with quote


joeri

Posted: Sun Mar 02, 2003 1:17 pm
Joined: 10 Jan 2003
Posts: 2242
What do you mean? The camera works fine.
It follows the ball inside the tube.
Reply with quote


shursey

Posted: Mon Mar 03, 2003 10:37 pm
Joined: 15 Oct 2002
Posts: 11
Sorry about my lack of clarity Sad . What I mean is that the camera should follow the marbal like it would if it was parented but still follow inside the tube. Thanx for your trouble Confused .
Reply with quote


Pablosbrain

Posted: Mon Mar 03, 2003 11:15 pm
Joined: 28 Jan 2004
Posts: 111
I don't know the game engine... but....
could you parent the camera to a cube or something that is behind the camera and then have the cube be the object that follows the marble... this would then allow you to have the cube take collisions and such and cause it to stay in the tube? don't know.. .never messed with the game engine much yet.
Reply with quote


snowy_duck

Posted: Fri Mar 07, 2003 1:41 am
Joined: 21 Oct 2002
Posts: 40
okay a question on those faces. taking into acount ONLY the speed of game and the file size which is better, textures or painting...(i hope i don't start something Laughing )
Reply with quote


z3r0_d

Posted: Fri Mar 07, 2003 5:55 pm
Joined: 16 Oct 2002
Posts: 1520
Painting will produce a smaller file, than texturing.

It shouldn't run any faster unless it is on a system doing the opengl in software (without a reasonable video card).

That said, texures can be pretty small, and add a lot when used properly.
Reply with quote


Samoht

Posted: Sat Mar 08, 2003 12:45 am
Joined: 21 Oct 2002
Posts: 4
Pablosbrain wrote:
I don't know the game engine... but....
could you parent the camera to a cube or something that is behind the camera and then have the cube be the object that follows the marble... this would then allow you to have the cube take collisions and such and cause it to stay in the tube? don't know.. .never messed with the game engine much yet.


I was thinking the same thing. Just need to make sure that the camera object is a constant distance from the marble.
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group