-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
details property should be removed in favor of an extension #361
Comments
@pjcozzi @tparisi @RemiArnaud what do you think ? |
I agree completely with the intension here. As of now, I don't use this in Cesium so I don't have any firsthand experience with it, but this looks reasonable to me. Minor typo: "allExtensions" : "[COLLADA-1.4.1/commonProfile]" should be: "allExtensions" : ["COLLADA-1.4.1/commonProfile"] |
Thanks for the feedback, typo fixed. |
Adding discussion from #240. @fabrobinet said:
|
Adding discussion from #97. @fabrobinet said:
Initial converter implementation: 0445397 |
I think @fabrobinet proposal here is the right direction, but I am not the right person to take the lead on this since Cesium is not generating shaders from this description. I can start tightening up the schema and figuring out how to integrate it with the spec, and then come back to this if someone, perhaps @tparisi or @kainino0x, doesn't get to it first. Also keep in mind that we want to support PBR materials post 1.0. |
Closing since the design discussion is taking place in #84. |
The
details
property provides ways for an engine who creates its own shaders to just use the input values of the parameters based on semantics & conventions.A example of
details
is:commonProfile
should beCOLLADA-1.4.1/commonProfile
to be consistent withtype
. But that's not a big deal as more important changes should be considered and withextensions
type goes away.details
property shouldn't be tied to theCOLLADA-1.4.1/commonProfile
in the sense thatglTF
core spec shouldn't even be aware of it. But if that's a core property it should be specified along with the properties within it such aslightingModel
,texcoordBindings
...glTF aims to be generic just like
OpenGL
so while these informations are mandatory for developers using an engine who do not want/can't use shaders provided by glTF, high level concepts such aslightingModel
should be specified in extensions where these concepts makes sense with regard to the tool or original asset (COLLADA, FBX...) who generated the asset.parameters
property should be reworked to be provided as a dictionary, so that a mapping is provided to rely the concept defined for a givenparameter
named astransparency
inCOLLADA-1.4.1/commonProfile
and namedopacity
in glTF 0.9 see Trouble converting Agisoft PhotoScan model #339Consequently the specification of
COLLADA-1.4.1/commonProfile
supported parameters will have to take place in a separate extension and not in core glTF and sounds that's more sane to me.Other converters(FBX...) may then specificy in separate extensions in the same way which properties where used to generate the provided shaders - so they can possibly be re-created.
The proposal is to then to replace within the
pass
property,details
byextensions
as shown in the following example:parameters
are currently exported but that's not needed.The text was updated successfully, but these errors were encountered: