Extrude in Camera direction?
-
Bullit
- Moderator
- Posts: 2621
- Joined: 24 May 2012, 07:44
Extrude in Camera direction?
I have several independent polygons that i want to extrude in a camera direction, so maintaining their silhouette looking from the camera but getting thickness. Is this possible to do with ICE?
-
NNois
- Posts: 754
- Joined: 09 Jun 2009, 18:33
Re: Extrude in Camera direction?
hup, as far as my head con remember you should:
- extrude your polys but with zero value (no extrude but the polys are here) create a cluster
- get your camera position with a get data, then get your point position of the mesh to extrude.
- get the world point position by multiply vector by matrix with your obj.kine.global
- substracct the world point pos with the cam pos and you get a vector, that's the vector to use (normalised) to add to you original point position
- filter that with your cluster
- extrude your polys but with zero value (no extrude but the polys are here) create a cluster
- get your camera position with a get data, then get your point position of the mesh to extrude.
- get the world point position by multiply vector by matrix with your obj.kine.global
- substracct the world point pos with the cam pos and you get a vector, that's the vector to use (normalised) to add to you original point position
- filter that with your cluster
-
Bullit
- Moderator
- Posts: 2621
- Joined: 24 May 2012, 07:44
Re: Extrude in Camera direction?
Sorry for late reply, will try it. Thanks.