I did something like that some time ago.. but never got the time to
release it. :)
What i just did (in a Script):
- Create a Null
- Create a Light
- Get Camera
- Get Mesh
- Add the "Constrain to Closest Surface"-ICE-Tree to the Null to
constrain it to the MeshSurface
- Do some Math:
- Closest Location from Null to Mesh -> get Position + get
Normal
- Get Angle Between "NullPos-CameraPos"-Vector and
"Normal-Vector"
- Rotate the Normal-Vector about the DoubleAngle around the
CrossProduct of "NullPos-CameraPos"-Vector and "Normal-Vector"
- Normalise this Result and Multiply by something (to add
Some Distance)
- Do a ICE-Pose-Constrain on the Light to "NullPos +
ResultVector"
- Add a LookAt-Constrain on the Light to the Null.
PS: I'am not sure if this is the exact way i did it.... but i will have
a look in my "Not-Finisched-ICE-Tools"-Folder, when i'am at home, there
should be a working solution.
Am 04.12.2012 17:27, schrieb Alan Fregtman:
Inspiration.... http://www.youtube.com/watch?v=G7NGPfFDDZ4 @ 4m:45s
;)
On Tue, Dec 4, 2012 at 5:23 AM, Brent McPherson
<brent.mcpher...@autodesk.com <mailto:brent.mcpher...@autodesk.com>>
wrote:
Hi Eugen,
Yes, it would be simple to do with the Tool SDK.
In fact, we already have a spot light creation tool example that
ships with Softimage (search for SpotLightCreateTool in the custom
tools addon) so only the reflected ray part would need to be added.
Anyone up for the challenge? ;-)
--
Brent
-----Original Message-----
From: softimage-boun...@listproc.autodesk.com
<mailto:softimage-boun...@listproc.autodesk.com>
[mailto:softimage-boun...@listproc.autodesk.com
<mailto:softimage-boun...@listproc.autodesk.com>] On Behalf Of
Eugen Sares
Sent: 04 December 2012 09:16
To: softimage@listproc.autodesk.com
<mailto:softimage@listproc.autodesk.com>
Subject: Place Highlight Tool
Hi,
I'd have good use for a tool to place highlights/reflections.
Select a light (or any other scene object), click/move cursor over
any surface, and the light gets placed on the reflected ray of the
camera -> surface point ray.
3ds max has such a tool since forever.
For Softimage, I could only find an old script by Guy Rabiller.
Did I miss something?
Should be possible to implement this nicely with the Tools SDK, I
guess.
Anyone?
Thanks!
Eugen