Parenting objects and lights

Started by gregsandor, April 22, 2008, 11:59:45 AM

Previous topic - Next topic

gregsandor

I have 12 lights that line up on my gas station model.  I want to attach them to the model so I can move it to another location on the terrain.  How do I do this?

cyphyr

Simple, as yet you cant. Don't know if Planetside have this in the works (PLEASE it would be so useful) but for now just sit there with a calculator and a note pad (could be done quite quickly in Excel) and work it out the old fashond way.
Richard
www.richardfraservfx.com
https://www.facebook.com/RichardFraserVFX/
/|\

Ryzen 9 5950X OC@4Ghz, 64Gb (TG4 benchmark 4:13)

DeathTwister

What I do is if I have everything the way I want them, I take one piece f the model and move it where I want, then when I have the Cordenances I just type them in and they should all be in the exact same place.  Maybe group them all first I would say also. At least it works for me that is.
Maylock Aromy DeathTwister Stansbury
ATOMIX Productions

cyphyr

You can group your models and move them as one. Well done, how do you do that?
Richard
www.richardfraservfx.com
https://www.facebook.com/RichardFraserVFX/
/|\

Ryzen 9 5950X OC@4Ghz, 64Gb (TG4 benchmark 4:13)

Harvey Birdman

#4
-

Matt

There isn't yet a way to parent one object or light source to another. It may be something we can work on after 2.0 release.
Just because milk is white doesn't mean that clouds are made of milk.

gregsandor

Quote from: Matt on April 27, 2008, 04:58:04 PM
There isn't yet a way to parent one object or light source to another. It may be something we can work on after 2.0 release.

Is there any way to hack it?

Matt

I can't think of any way to get around this at the moment.
Just because milk is white doesn't mean that clouds are made of milk.

gregsandor

As far as I can tell the cmpter wil do what Im going to have to do with my calculator:  if lightA is at -2, 2, -1, when the gas station is at 0,0,0, then when I move the building to -10, 10, -5 add those coordinates to the original light position.  An awful lot of work considering that there are 12 lights for the station, not to mention the streelights and cars and other buildings int he town.

nikita

Instead of moving all the objects around, you could move the terrain underneath.

gregsandor

#10
sure, but I still have to calculate the new difference in altitude at the very least, and then modify all my shaders.

Mr_Lamppost

It would definitely save a lot of time if it were possible to link lights and objects to a parent.
Smoke me a kipper I'll be back for breakfast.

gregsandor

I make my shaders with masks and haven't used functions; is it possible that a GetPostion or similar node can be used to relate a light or object to another?  Alternately how about a populator with more than one slot for its object?

Arandil

There may be a way to script this outside of TG2.  Basically, a text processing script would have to run through and adjust postitions/etc. based on manually moving one of the associated objects and then calculating the offset.  I'm not able to do this atm ...