Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
3 registered members (fairtrader, AndrewAMD, 3run), 576 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
camera_question #155658
09/20/07 15:10
09/20/07 15:10
Joined: Jul 2007
Posts: 288
Germany, NRW
Martek Offline OP
Member
Martek  Offline OP
Member

Joined: Jul 2007
Posts: 288
Germany, NRW
Hi,

ich habe für mein Spiel Third-Person-Spiel eine function geschreiben, damit die camera, wenn zwischen wand und player etwas befindet, sie nach vorne schwenkt.
Es funktioniert alles super, nur wenn die camera genau in der Wand ist, dann ruckelt alles.
Dies ist mein Code:

function camera_distance()
{
vec_set(temp.x, camera.x);
temp.z -= 50; //Wert muss noch erporbt werden
c_trace(player.x, temp.x, ignore_me + ignore_passable);
if(result == 0)
{
player.skill10 += 4;
}
else
{
player.skill10 -= 8;
}
}

Wie könnte ich das Ruckeln verhindern???

Mfg, Pingulord


3D Gamestudio A7 Extra
Re: camera_question [Re: Martek] #155659
09/21/07 11:15
09/21/07 11:15
Joined: Sep 2007
Posts: 761
Hrvatska (Croatia ), Slavonski...
cro_games Offline
User
cro_games  Offline
User

Joined: Sep 2007
Posts: 761
Hrvatska (Croatia ), Slavonski...
Could you write that on english?


Hello everyone my name is Ivan Mandic from "Frozen pixel studio". wink
-----------------------------------
Homepage: www.fpx-studio.com
e-mail: emu_hunter_1990@hotmail.com
(working on a game engine)
Re: camera_question [Re: cro_games] #155660
09/21/07 12:00
09/21/07 12:00
Joined: Jul 2007
Posts: 288
Germany, NRW
Martek Offline OP
Member
Martek  Offline OP
Member

Joined: Jul 2007
Posts: 288
Germany, NRW
Hello,

I programm for my thrid-perso-shooter a function, that trace between the player and the camera. If there is something between them, the camera move to the player.
But if the camera is in wall, it move forward an backward, so all is shacking:)
Here is my code:

function camera_distance()
{
vec_set(temp.x, camera.x);
temp.z -= 50; //Wert muss noch erporbt werden
c_trace(player.x, temp.x, ignore_me + ignore_passable);
if(result == 0)
{
player.skill10 += 4;
}
else
{
player.skill10 -= 8;
}
}

Is there somebody who can help me?

Mfg, Pingulord


3D Gamestudio A7 Extra
Re: camera_question [Re: Martek] #155661
09/21/07 18:25
09/21/07 18:25
Joined: Sep 2007
Posts: 761
Hrvatska (Croatia ), Slavonski...
cro_games Offline
User
cro_games  Offline
User

Joined: Sep 2007
Posts: 761
Hrvatska (Croatia ), Slavonski...
function camera_distance()
{
trace_mode = ignore_me + ignore_you + ignore_passents + ignore_models + ignore_passable + ignore_sprites + scan_texture;
result = trace(camera.x,player.x);
if(result >= 0.1)
{
player.skill10 += 4;
}
else
{
player.skill10 -= 8;
}
}


Hello everyone my name is Ivan Mandic from "Frozen pixel studio". wink
-----------------------------------
Homepage: www.fpx-studio.com
e-mail: emu_hunter_1990@hotmail.com
(working on a game engine)
Re: camera_question [Re: cro_games] #155662
09/21/07 19:29
09/21/07 19:29
Joined: Jul 2007
Posts: 288
Germany, NRW
Martek Offline OP
Member
Martek  Offline OP
Member

Joined: Jul 2007
Posts: 288
Germany, NRW
I think that's the same like mine. I tried it, but it dosen't work, or as mine.
So any other idea???

Mfg, Pingulord


3D Gamestudio A7 Extra
Re: camera_question [Re: Martek] #155663
09/22/07 12:17
09/22/07 12:17
Joined: Sep 2007
Posts: 761
Hrvatska (Croatia ), Slavonski...
cro_games Offline
User
cro_games  Offline
User

Joined: Sep 2007
Posts: 761
Hrvatska (Croatia ), Slavonski...
You can find that script on one old aum try to ask George abou it.


Hello everyone my name is Ivan Mandic from "Frozen pixel studio". wink
-----------------------------------
Homepage: www.fpx-studio.com
e-mail: emu_hunter_1990@hotmail.com
(working on a game engine)

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1