I am developing a small app using OpenGL ES and the glTF reference loader library (c#) on a Xamarin Android based Visual Studio project.
Right now, I am trying to build my own class structure for organizing the models' data. I read the specs, and the skinning tutorial was very helpful, but now I have a question concerning the meshes and skins array:
Question:
This is an excerpt of the model's Skin section:
"skins" : [
{
"inverseBindMatrices" : 115,
"joints" : [
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46
],
"skeleton" : 0
},
The whole model has 5 Meshes (with multiple Primitives) and several bones/joints. However the item count of Skins in the glTF file is way higher than 5! How can this be?! I thought that for each Mesh that is controlled by an armature, there is a Skin? Why are there so many more than 5? Is it because of the multiple primitives? But why are there so many inverseBindMatrices?
It seems to me that there are many pitfalls for a newbie like me. The tutorials are a good starting point, but the examples shown there are so minimalistic, that everything is easy. However, real world models taken from any website are far more complicated than this.
Maybe someone can help me out?
P.S.:
The model I talk about can be found at
Dropbox link to glTF file
Related
PowerBi community - help!
I have a heatmap of product failures based on product characteristics. Right now my matrix is sorting my rows incorrectly. Right now from top to bottom, it is reading 1000, 105, 110, 115, 120, 1200, 1250, 130... and I want it to be in the order of 105, 110, 115, 120, 130, 1000, 1200, 1250. I do have these values as "whole numbers" in my data table. But it seems like it is sorting them alphabetically. Thank you for any tips you have!
Product failure heatmap
Data table
edit: Solved - I had to unpivot my data at one point, and when I made my feild parameters I accidentally used my unpivoted data. Therefore, it was using my unpivoted data type of "text." I was able to re do my feild parameters using my original data - and this solved the issue.
Feild parameters unpivoted -> text
fixed heatmap
I saved the image to database in the following format:
data:image/png;base64,iVBORw0KGgoAAAANSUhEU...
When I get that image from database, I see in "Network" tab in "Response" section the following:
"planimetry": {
"type": "Buffer",
"data": [
100,
97,
116,
97,
58,
...
In Vue.js template I have:
<img
:src="sectionData.planimetry"
/>
The sectionData I'm getting as a prop, and planimetry is type of BLOB.
The issue is the image is not displayed that is: src="[object Object].
How to display the image?
The numbers 100, 97, 116, 97, 58 are just data: in ASCII. This suggests that the array is just the bytes of your original image format.
You could get back to the original format using something like this:
planimetry.data.map(b => String.fromCharCode(b)).join('')
This should be sufficient to use it as the src of an <img>.
I would expect this to be fixed on the server rather than in the UI if possible. If it were returning the raw bytes of the image then fair enough but data:image/png;base64 should really just be transferred as a string.
I am showing multiple Meter Gauges on a single page, in conjunction with Bootstrap, to provide responsiveness. What is obvious is they are all calculating slightly different sizes, so I hoped to use diameter.
Here is my working code:
s1 = [322];
$.jqplot('spend',[s1],{
seriesDefaults: {
renderer: $.jqplot.MeterGaugeRenderer,
rendererOptions: {
min: 100,
max: 500,
intervals:[200, 300, 400, 500],
intervalColors:['#66cc66', '#93b75f', '#E7E658', '#cc6666'],
intervalOuterRadius: 56,
ringColor: '#222',
padding: 3,
tickColor: '#111',
ringWidth: 4,
needleThickness: 11,
shadowOffset: 10,
label: "£"
}
},
title: 'Spend'
});
If I add
diameter:200,
I get no output, and:
'this._center.0' is null or not an object jqplot.meterGaugeRenderer.js, line 616 character 13
'this._center.0' is null or not an object jqplot.meterGaugeRenderer.js, line 616 character 13
I have also tried
diameter:50,
and
diameter:500,
in case I was not providing adequate space, or too much space, but I rather doubt it, as intervalOuterRadius is set at 56, I have also assumed that
diameter:200
is correct syntax given that
intervalOuterRadius:56
(as well as various other values) is correct. I cannot find anyone else who has had this problem, and have had no response on the jqplot google group.
Oh yeah, and I'm primarily writing for IE8 atm but it will need to be used on ie11 in time.
I am now getting a problem when using flot to display chart in time series.
i have the data as below:
[[gd(2012, 12, 10, 00, 06, 11), 382.94], [gd(2012, 12, 10, 00, 14, 59), 383.86],...[[gd(2012, 12, 12, 00, 06, 11), 382.94],...[[gd(2012, 12, 14, 00, 06, 11), 382.94],...[[gd(2012, 12, 10, 16, 06, 11), 382.94]]
but every time I load this data, the xaxis value will be shown from 18:00 to 4:00. not from 00:00 to 23:00.
below is the result screenshot:
Do you see that? there are two lines there because the xaxis's is from 18:00 to 04:00, not from 00:00 to 23:00.
any one can help me on this?
I have studyed it for a while, but result in failure.
thx.
here is some useful code:
function gd(year, month, day, hour, min, second) {
return new Date(year, month - 1, day,hour,min,second).getTime();
}
below article did't save my time:
jquery flot xaxis time
Have solved this。
In backend, we should convert the time format as total seconds from 1970.1.1
so in C# handler:
we should get total seconds:
DateTime.Parse(dr["GetTime"].ToString()).Subtract(new DateTime(1970, 1, 1)).TotalMilliseconds
then In front end, we should use as below:
var data= eval(arrStr);
then all are ok.
Hi is see various code blocks for filtering catergories.
But i haven't seen anything for what i am looking for.
We gonna sell kidsclothing in our webshop.
Kidsclothing can be dived in 4 different size blocks (baby, toddler, enfant and kids) and each block has different sizes.
Like:
Size block - Sizes
Baby - 50, 56, 62, 68 and 74
Toddler - 80, 86, 92 and 98
Enfant - 104, 110, 116 and 122
Kids - 128, 134, 140, 146, 152, 158, 164, 170, 176
Now i put these the right sizes into the right categories (like baby).
But only when i have a product that spans multple size blocks there a more size visible than i would like to see ...
For example.
When i have a configurable product with the following sizes 56, 74, 86 and 98.
The sizes 86 and 98 shouldn't be visible in the baby size block ... and the 56 and 74 shouldn't be visible in the toddler size block.
Who can help me write a code for this?
I have magento 1.6.2 CE
You will have to split your configurable product for every age category.
So you will have more products (consider this as minus).
But from the other hand you will be able to
1. Set different images for child, toddler, enfant (shoes does look different for all of them)
2. Set different prices for every age category.
3. More possibilities on creating price rules.