Hey,
I’m writing a custom converter from Houdini (USD) to egg, and I struggle with exporting vertices data with plenty of questions that came to my mind.
I’m trying to pass custom data to the vertices, however on file load Panda seems to reject any non-predefined data I’m trying to pass (using both scalras, values and tags) and throws an error.
Is it possible to pass such custom data via egg vertices?
Unfortunately, I can’t upload stuff as a new user so here’s a simple example of the data I want to create:
<Vertex> 4 {
1 0.5 1
<UV> { 0 1}
<test> {1}
}
Also, I’ve found out that on egg import Panda3D seems to remove the ‘unused’ hierarchy elements. I will need those for the future utilities and transformation of the models.
After reading the documentation I’ve added the <Model> {1}
attribute, and it solves the problem, but I wouldn’t say I like it being non elegant
Is there a way to force Panda not to do that or maybe is there any other more elegant solution?
I wonder why there is a Texture slot in Polygon. Is it sampling the texture in the shaders for each of the polygons separately somehow? I would love to understand its usage as I find it unusual. It would be great to know why is it here and what was the idea behind it
I saw in the documentation that Panda3D supports the blending of the textures. Could anyone explain (or at least give a direction) to me how underneath and when the Textures are blended ? Is it some pre-sample blend or a feature built in an automatically generated shader, or maybe something different?