Exporting Spotlights

Started by ajcgi, February 08, 2018, 07:08:54 AM

Previous topic - Next topic

ajcgi

This may seem like an odd thing to want to do, but... can spotlights be exported somehow? I can get the directional lights out no problem and the cameras, but spotlights are left behind.
I'm using them in TG to do quick lighting LookDev and then taking them into other 3D packages for other purposes. I know I can copy coords across by eye, but a handy export would be... handy. I've exported to FBX and tried reading that into both Softimage and Houdini but neither shows the spotlights as coming across.

KlausK

#1
Couldn`t get them to export no way I tried.
I am curious what you might need them for in the "other" application that a workaround you can replace once exported won`t do?
CHeers, Klaus

edit: in the tgd I renamed the class "spotlight" to "sunlight". The picture shows the errors and warnings window
when reopening the modified tgd. I guess it is simply not implemented.

edit: when I import a fbx from SI into TG the spotlights from SI are converted to "directional" or sunlights.
The parameters in the picture before are lost.

Might be something to finally ask for the TG SDK ;)
/ ASUS WS Mainboard / Dual XEON E5-2640v3 / 64GB RAM / NVIDIA GeForce GTX 1070 TI / Win7 Ultimate . . . still (||-:-||)

ajcgi

It's not a deal breaker for the moment but thanks Klaus.

KlausK

/ ASUS WS Mainboard / Dual XEON E5-2640v3 / 64GB RAM / NVIDIA GeForce GTX 1070 TI / Win7 Ultimate . . . still (||-:-||)

Matt

"spotlight" nodes aren't exported, but "light_source" nodes are. You might want to use a text editor on the .tgd to replace the following:

"spotlight" -> "light_source"
"position" -> "source_centre" (but only in lights, of course)

You'll lose rotation and other spotlight-specific properties, but at least you can export position, colour and intensity this way.

Matt
Just because milk is white doesn't mean that clouds are made of milk.

ajcgi

Ah interesting to know for the future. Thanks both.