Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 811 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
lorikob361, LucasJoshua, Baklazhan, Hanky27, firatv
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 4 of 4 1 2 3 4
Re: flat-shaded look? [Re: Xarthor] #133528
06/07/07 14:41
06/07/07 14:41
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
exactly what I was going to say. As well as for the offsets, you cam simply do something like this:

Code:

ACTION Gun
{
...
proc_late();
while(1)
{
...
temp.x = 50;
temp.y = 0;
temp.z = -20;
vec_rotate(temp, camera.pan);
vec_set(my.x, temp);
vec_set(my.pan, camera.pan);
...
wait(1);
}
}



Last edited by xXxGuitar511; 06/07/07 18:01.

xXxGuitar511
- Programmer
Re: flat-shaded look? [Re: Xarthor] #133529
06/07/07 14:45
06/07/07 14:45
Joined: Jun 2007
Posts: 236
acknex.exe
ACKNEX007 Offline
Member
ACKNEX007  Offline
Member

Joined: Jun 2007
Posts: 236
acknex.exe
"
Use level entities and the following flags:
- passable, so the weapon does not block the player's movement
- znear, so the weapon does not get into walls or anything similar
"
Hi Xarthor ,
Freddy need help with Shading (lighting) ?
will passable objects solve that problem ? ;-)

Thanks

Re: flat-shaded look? [Re: ACKNEX007] #133530
06/07/07 15:43
06/07/07 15:43
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Passable flag will not affect shading. It's simply for collision.

znear draws the entity above geometry and other entities (as if it were a view entity). This can only be set through script.

The code above will simply position the entity relative to the view (as a view entity does automatically. You'll have to adjust the temp offset though


xXxGuitar511
- Programmer
Re: flat-shaded look? [Re: xXxGuitar511] #133531
06/07/07 16:22
06/07/07 16:22
Joined: Jun 2007
Posts: 236
acknex.exe
ACKNEX007 Offline
Member
ACKNEX007  Offline
Member

Joined: Jun 2007
Posts: 236
acknex.exe
oh..ok

so lets try to do that.

Re: flat-shaded look? [Re: ACKNEX007] #133532
06/07/07 16:36
06/07/07 16:36
Joined: Feb 2003
Posts: 211
Unna
F
Freddy_dup1 Offline OP
Member
Freddy_dup1  Offline OP
Member
F

Joined: Feb 2003
Posts: 211
Unna
Thank you!
I used the code to place the gun and an invisible entity-light next to
it. This is how it looks:

I made the gun very small and close
to the camera to avoid getting into a wall.
Than I tried znear. That`s even better.
Thanks!

Last edited by Freddy; 06/07/07 16:42.
Re: flat-shaded look? [Re: Freddy_dup1] #133533
06/07/07 17:01
06/07/07 17:01
Joined: Jun 2007
Posts: 236
acknex.exe
ACKNEX007 Offline
Member
ACKNEX007  Offline
Member

Joined: Jun 2007
Posts: 236
acknex.exe
nice..

happy to hear..that your problem is solved. !

Thanks

Re: flat-shaded look? [Re: ACKNEX007] #133534
06/07/07 18:02
06/07/07 18:02
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Ha, no problem. Well actually, there is. I forgot to add a line that gives the gun the same angle as the camera

I fixed it in my above post (highlighted in red). Sorry about that...


xXxGuitar511
- Programmer
Page 4 of 4 1 2 3 4

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