Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (TipmyPip, OptimusPrime, AndrewAMD), 14,882 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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