@roland are there any side effects to bakeCurrentTransformIntoVertices?
Can I use (abuse) it every time I want to get the vertex data? Planning to do this for skinning
Basically it’s a good idea to go through the whole docs even if not in details just be aware what the framework offers so you can look up the details when needed. I’ve read the whole stuff mutiple times and I am still missing some pieces. The toilet is a good place to read, I can really recommend it And you know, we all make mistakes so no worries.
Keep coding dude!
r.
Just for fun:
My son is 18 years old and he is also a programmer and when he makes a mistake just because he didn’t check the docs I everytime send him this have it on my desktop prepared
True but that’s why more docs need to be there!
Like, what’s missing in the tutorials is a warning that this bakeCurrentTransforms is almost always necessary!!
I’m sorry, but that’s not true. You get the vertices data always as raw data from the vertex buffer without any transformation. It’s a common 3D stuff.: (Updating Vertices | Babylon.js Documentation)
EDIT: And you can apply transformations to them, it’s absolutely the programmers responsibility how he/she will handle the data coming from the vertex buffer
It should still be there as a warning, most devs will not know the internals
For example, the link you showed has zero indication of the bakeCurrentTransforms
The fact that I posted this as a bug/request, means others will probably too as well
lol what’s this got to do with mistakes
It’s a legit question + a useful suggestion for tutorials. Dismissing this suggestion entirely would be committing an actual “mistake” imo
anyway nice day to you too, thanks for showing the function