Gamestudio Links
Zorro Links
Newest Posts
MRC.c and WFO
by 11honza11. 11/18/25 15:22
webGL
by Ice2642. 11/17/25 21:27
Camera always moves upwards?
by NeoDumont. 11/17/25 09:56
Future of ZorroHFT
by TipmyPip. 11/16/25 13:52
COT Download with Quandl does not work
by Petra. 11/15/25 09:35
Training with the R bridge does not work
by Petra. 11/15/25 09:31
Zorro 2.70
by jcl. 11/15/25 08:43
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (AndrewAMD), 32,145 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
SkinnyApe, tritom, sheliepaley, Blueguy, blobplayintennis
19179 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
[help] how to attach view to entity ? #125227
04/20/07 11:21
04/20/07 11:21
Joined: Dec 2006
Posts: 65
A
andy_1984 Offline OP
Junior Member
andy_1984  Offline OP
Junior Member
A

Joined: Dec 2006
Posts: 65
trying to figure out how to attach a view (car door mirrors and rear view mirror) to a vehicle entity so that it will also move with the entity without the use of complex camera script ?

Re: [help] how to attach view to entity ? [Re: andy_1984] #125228
04/20/07 11:30
04/20/07 11:30
Joined: Jan 2007
Posts: 651
Germany
R
RedPhoenix Offline
User
RedPhoenix  Offline
User
R

Joined: Jan 2007
Posts: 651
Germany
vec_set(viewname.X,entitypointer.X);

This has to be done in an endless loop and of course there has to be a pointer to the entity it shall follow. Simply as that, and if you want to set the view to a certain position at the entities body, you have to calculate the difference between its origin and add this after the vec_set.

Re: [help] how to attach view to entity ? [Re: RedPhoenix] #125229
04/20/07 12:53
04/20/07 12:53
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
If you wanted it to actually be on the surface of the cars mirror (with shape and everything), you'd have to use render_to_texture functions (I think)


xXxGuitar511
- Programmer
Re: [help] how to attach view to entity ? [Re: xXxGuitar511] #125230
04/20/07 13:25
04/20/07 13:25
Joined: Dec 2006
Posts: 65
A
andy_1984 Offline OP
Junior Member
andy_1984  Offline OP
Junior Member
A

Joined: Dec 2006
Posts: 65
sounds interesting guitar. need to look into that function, what exactly does it do. im asuming right now it attaches a view to a texture within the entity ? copying the same size and dimensions ?

Re: [help] how to attach view to entity ? [Re: andy_1984] #125231
04/20/07 14:36
04/20/07 14:36
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Yes, but it requires Pro or Sylex3...


xXxGuitar511
- Programmer
Re: [help] how to attach view to entity ? [Re: xXxGuitar511] #125232
04/20/07 19:25
04/20/07 19:25
Joined: Dec 2006
Posts: 65
A
andy_1984 Offline OP
Junior Member
andy_1984  Offline OP
Junior Member
A

Joined: Dec 2006
Posts: 65
only got A6 commercial, will sylex work ?

Re: [help] how to attach view to entity ? [Re: andy_1984] #125233
04/20/07 22:54
04/20/07 22:54
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
yes, it will...

But I don't think anyone has done such yet (Correct me if I'm wrong everyone). You'd have to setup a shader for the mirrors, and it's probably more work than it's worth...


xXxGuitar511
- Programmer

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

Gamestudio download | 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