does panda have soft/hard edges like in Maya ?

does panda have soft/hard edges like in Maya ?

I’m not familiar with Maya. What are soft/hard edges?

hard edge

soft edge

smooth by maya without add edges ( not really connected to the topic )

I guess at the level of GeomPrimitives we have something like:

gp->set_shade_model(Geom::SM_smooth)

Not sure if it’s what you want.

It’s called flat shading vs smooth shading, and it depends on whether the model has polygon or vertex normals. It’s a setting in the modelling program, it should work on the Panda side if there are no bugs in the export.

If you’re talking about polygon normals vs. vertex normals, that distinction is fully supported by the egg file. If your egg file defines a normal per-polygon, you will get a look like your hard edges. If your egg file defines a normal per-vertex, with an appropriate normal computed to interpolate the connected faces, you will get a look like your soft edges.

Generally, model converters should create the appropriate egg file depending on your source file, but this of course depends on the converter.

It is also true that the shade model can be set explicitly, as heek_ suggests. Usually this is not necessary if your egg file is constructed correctly, but it may be useful e.g. for dynamic geometry.

Short answer: yes.

David

ok thanks all