Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Login
Register
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
Get modelViewMatrix from object
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Get modelViewMatrix from object (Read 2219 times)
kkl
float
Posts: 291
Get modelViewMatrix from object
«
on:
November 16, 2014, 12:50:53 pm »
Hi Egon,
Is there anyway to get modelViewMatrix from object? I need it for multiple sub-meshes location and direction (crowd animation with hardware skinning), so I can animate the submesh by using only one object to reduce drawcall.
Logged
EgonOlsen
Administrator
quad
Posts: 12295
Re: Get modelViewMatrix from object
«
Reply #1 on:
November 16, 2014, 02:23:42 pm »
Translate the matrix returned by getWorldTransformation() by the negated camera position and multiply the resulting matrix with the camera's rotation matrix.
Logged
kkl
float
Posts: 291
Re: Get modelViewMatrix from object
«
Reply #2 on:
November 16, 2014, 03:00:21 pm »
It works like magic now! Thanks alot egon
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
Get modelViewMatrix from object