21-06-15, 09:04 | #21 |
Member
Joined: Aug 2010
Posts: 1,810
|
I think there's no way, info gets lost on level building...
I can only guess that since in project file cameras and sinks are separated, array lists cameras at first, and then it lists sinks. But it may be wrong. What I can offer you is to parse through all level triggers (which can be a pain ) and create helper type listing based on camera/sink reference either by camera or sink trigger, which you can then refer on run-time. |
21-06-15, 09:25 | #22 |
Member
Joined: Aug 2013
Posts: 686
|
|
21-06-15, 10:16 | #23 |
Member
Joined: Jul 2012
Posts: 4,286
|
Any ideas on getting the ambient room lighting values and lightbulb placement/values into FexInspect?
|
21-06-15, 10:35 | #24 |
Member
Joined: Sep 2007
Posts: 1,684
|
Yes.
Should be straightforward if opentomb parsing is correct. But position of lightbulbs is global and would need to be adjusted to relative to room and half clicks. RView by TurboPascal shows some lights info. Have you used that program? Last edited by sapper; 21-06-15 at 10:37. |
22-06-15, 05:58 | #25 | |
Member
Joined: Sep 2007
Posts: 1,684
|
Quote:
Cameras 0,1,10,11,12 are cameras and rest are sinks so they aren't separated in the array. Maybe can use the flags field since for camera seems to be only 0x0001 or 0x0000? Last edited by sapper; 05-05-18 at 01:53. |
|
24-06-15, 04:57 | #26 |
Member
Joined: Sep 2007
Posts: 1,684
|
I need help getting X and Y lighting direction values from the direction floats for TR4 lighting.
I cannot get the correct angle and sign. Using the TR4 notes. Code:
// The final 3 floats are used only by the 'sun' and 'spot' type lights. // They describe the directional vector of the light. // This can be obtained by : // if both x and y x = cosX * sinY // y = sinX // z = cosX * cosY // // if only x x = 0 // y = sinX // z = cosX // // if only y x = sinY // y = 0 // z = cosY float LightDirectionVectorX float LightDirectionVectorY float LightDirectionVectorZ |
27-06-15, 01:42 | #27 | |
Member
Joined: Sep 2007
Posts: 1,684
|
http://www.mediafire.com/view/0cj9vptii2opcg3/
Quote:
Last edited by sapper; 28-06-15 at 00:57. |
|
28-06-15, 00:56 | #28 |
Member
Joined: Sep 2007
Posts: 1,684
|
http://www.mediafire.com/view/0cj9vptii2opcg3/
New link for Revision 5. A bug in previous version if no cameras/sinks crashed fexinspect. |
02-07-15, 13:37 | #29 |
Member
Joined: Mar 2008
Posts: 801
|
Thank you for the update.
Maybe I haven't seen it yet but is it possible to see the room ambience lighting value? |
02-07-15, 21:59 | #30 |
Member
Joined: Aug 2010
Posts: 1,810
|
I also wanted to mention that OCB/Flag text fields are swapped, when compared to their label counterparts. By the way, what's the whole purpose of textboxes there? They doesn't seem to save new OCBs/masks for given object.
|
Thread Tools | |
|
|