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
»
Modifying the mesh during drawing process
« previous
next »
Print
Pages:
1
[
2
]
Go Down
Author
Topic: Modifying the mesh during drawing process (Read 6173 times)
EgonOlsen
Administrator
quad
Posts: 12297
Re: Modifying the mesh during drawing process
«
Reply #15 on:
February 28, 2012, 07:37:37 am »
If you are doing this for multiple meshes, you could do it yourself in multiple thread. But i think that the overhead introduced by the threads will eat up the potential performance gain. Can't you simply you serialized objects? They don't need any normals calculated if you already did it before serializing them.
Logged
Thomas.
double
Posts: 833
Re: Modifying the mesh during drawing process
«
Reply #16 on:
February 28, 2012, 10:39:04 am »
Yes, I know about serialized files, but when you modify mesh during the game, normals have to be recalculated...
Logged
My game for Android
,
Physics example
,
Texture assistant
EgonOlsen
Administrator
quad
Posts: 12297
Re: Modifying the mesh during drawing process
«
Reply #17 on:
February 28, 2012, 03:03:04 pm »
Not necessarily...you can either ignore it and use the same normals as before (if that's an option) or you can recalculate the normals in your controller. But i agree that this, depending on the mesh, might not be the simplest thing to do.
Logged
Print
Pages:
1
[
2
]
Go Up
« previous
next »
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
Modifying the mesh during drawing process