Skip to content

Add Buffer_Misc model group to separate buffers#553

Merged
bghgary merged 4 commits intoKhronosGroup:masterfrom
YuuuZhang:Separate_Buffers
Nov 5, 2019
Merged

Add Buffer_Misc model group to separate buffers#553
bghgary merged 4 commits intoKhronosGroup:masterfrom
YuuuZhang:Separate_Buffers

Conversation

@YuuuZhang
Copy link
Copy Markdown
Collaborator

@YuuuZhang YuuuZhang commented Oct 31, 2019

Intended to separate buffers into geometry data and animation data.

Fixes #440

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Oct 31, 2019

CLA assistant check
All committers have signed the CLA.

@YuuuZhang YuuuZhang requested a review from bghgary November 1, 2019 05:55
Copy link
Copy Markdown
Collaborator

@bghgary bghgary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good.

Also need to:

If you are running vscode, you can do this from the debug dropdown.

Comment thread Source/Program.cs Outdated
new Texture_Sampler(imageList),
new Animation_SamplerType(imageList),
new Instancing(imageList),
new Buffer_Misc(imageList),
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This list is supposed to be sorted. Please put Buffer_Misc in the right place. Then in a separate PR fix the last two entries so that they are also correct.

Copy link
Copy Markdown
Collaborator Author

@YuuuZhang YuuuZhang Nov 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. I will make Buffer_Misc in the right place.
And correct Animation_SamplerType and Instancing in another PR.

Comment thread Source/ModelGroups/Buffer_Misc.cs Outdated

public Buffer_Misc(List<string> imageList)
{
NoSampleImages = true;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why no sample images for this group? Seems like we should have it.

Copy link
Copy Markdown
Collaborator Author

@YuuuZhang YuuuZhang Nov 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because sample images do not affect separate buffers and animation display effect.
So I do not use sample images to make the geometry settings to be minimal.

But we can also add sample images and update it`s .md files.

Comment thread Source/ModelGroups/Buffer_Misc.cs Outdated
public Buffer_Misc(List<string> imageList)
{
NoSampleImages = true;
UseFigure(imageList, "NYI");
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's this for?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this.

Comment thread Source/ModelGroups/Buffer_Misc.cs Outdated
{
var properties = new List<Property>();
Runtime.MeshPrimitive meshPrimitive = MeshPrimitive.CreateSinglePlane(includeTextureCoords: false);
meshPrimitive.Material = new Runtime.Material
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need a material?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also removed this.

@bghgary bghgary merged commit 6fafe8e into KhronosGroup:master Nov 5, 2019
@YuuuZhang YuuuZhang deleted the Separate_Buffers branch November 6, 2019 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

individual buffers for POSITION, INDEX, NORMAL, animation channels

3 participants