Show messages:
1-18
…
219-238
239-258
259-278
279-298
299-318
319-338
339-358
…
899-912
From: Karsten (KMRQUS)
p.s.: getPushFrame and showFrame are only nodes for test purposes:-)
From: Frenchy Pilou (PILOU)
Thx for the infos!
From: Sharif (SR13765)
Hi All;
I am trying to understand the frame in the max's NodeEditor. Some nodes have frame input and output. Can someone please explain what is Frame? what kind of input requires for frame input. Is the frame in Max's nodeeditor is the same as frame in MOI.
Thanks,
sharif
From: Karsten (KMRQUS)
Hello Sharif,
the simplest explanation for a frame is local coordinate system. So the frame has a basepoint, a x-axis, a y-axis and a z-axis in Moi. Max has created a new combined datatype for points and frames called pointarray which has a high flexibility. Every element consists of 3 coordinates (x,y,z) and 3 Euler angles (Notation X,Y',Z'') and a seventh coordinate (maybe useful for homogenous proposes?). If you create a frame node, a pointarray with one element in it will be created. You can manipulate the angles to orientate this virtual frame. Typically nodes for objects, that needs a frame as an input in Moi, are labeled with center. Nevertheless you can also connect a point node to it, because the angle infos (point node has also pointarray output) and so the frame informations are present. Only limitation: The point node has no rotation inputs. The big advantage of Max design is the flexibility, reduction of wires and make uniformly arrays of points/frames possible. An good example for the flexibility is Max line node: You can connect a single frame or point as input or complete streams of points/frames -> pointarray. The node will do the rest!
I hope you get me, my english is not the best!
Karsten
From: Frenchy Pilou (PILOU)
@ Max
An Alert Message when we press "New" ?
"Do want to Save before New?" : "Yes / No" for have the Time to Save if not yet done! ;)
From: mkdm
Hi Max!
A short question about PontArray...
How would it be possible to collect a specified set of Point objects, into a PointArray ?
That is, starting from a given number of selected points present in scene, how to create a PointArray from them ?
And, what you say about my question at
http://moi3d.com/forum/index.php?webtag=MOI&msg=7713.274 ?
Thanks for everything and have a nice day.
Marco.
From: Karsten (KMRQUS)
Hello Marco,
my name isn't Max, but I can you give a node for that. It's a quick and untested hack of Max geniue concat node for Objects. I have changed only the input and output parameters. Please test it. Maybe Max can integrate something like that in his next release, maybe there is something like that already existing? Only Max know all the features:-)
Have a nice day
Karsten
Attachments:
arrays2.js
From: Sharif (SR13765)
Hi Karsten;
Thank you for explaining. I need to do some examples to understand it better. I am thinking may be frame is similar to "plane Node" in grasshopper.
Regards,
sharif
From: Sharif (SR13765)
Hi Karsten;
I have created a Series and a Range Nodes from other example nodes. I like the math node under basic and I was wondering if we can use the math node to generate series and range numbers instead of having separate nodes.
Second question is how I could use these generated number from Series and Range to create points in MOI ( See Attached Image ).
Thanks,
sharif
Image Attachments:
CreatePoints.png
From: Max Smirnov (SMIRNOV)
version 0.65
fixed several bugs
Karsten
>> and a seventh coordinate (maybe useful for homogenous proposes?)
It's a scale :)
>>Maybe Max can integrate something like that in his next release, maybe there is something like that already existing?
I wrote this node already But I'll check your version, maybe I'll find something interesting in it. :)
Marco
>> How would it be possible to collect a specified set of Point objects, into a PointArray ?
added ObjtoArray node. At the moment it works with point objects only.
>>Inside the NodeEditor, it would be possible to render the generated objects, using a particular style, just in order to better highlight them ?
added Style property in the Output node
Pilou
>>An Alert Message when we press "New" ?
Maybe in the next beta release..
From: Frenchy Pilou (PILOU)
@Sharif
Why not share your new nodes ?
From: Karsten (KMRQUS)
Hello Max,
great news!
>>> But I'll check your version, maybe I'll find something interesting in it. :)
I don't think so! 99% is your own code - interesting could only be some bugs, that I placed in the rest;-)
Have a nice evening
Karsten
From: Max Smirnov (SMIRNOV)
Pilou, check the new version ;)
From: Max Smirnov (SMIRNOV)
Added properties fix for Output node for back compatibility with old .nod files.
From: Sharif (SR13765)
Hi Pilou
See attached, Includes:
Series
Range
DegToRad ( degree to Radian Conversion, You can use Math node for this )
RadToDeg ( Radian to Degree Conversion, You can use Math node for this )
Thanks,
sharif
Attachments:
nodeTest.js
From: Frenchy Pilou (PILOU)
@Sharif: thx!
@Max
Any of previous nodes works with this new version ???
Result of expression "This properties style" [undefined] is not an object.
From: Max Smirnov (SMIRNOV)
Pilou, yes, I'm sure.
Replace original litegraph-editor.js with the attached file
Now you need to press New button longer to reset the editor.
From: Frenchy Pilou (PILOU)
OK I have now several colors for the Style but not this "Draft" :)
but always all previous nodes loaded don't work with this version 6.5
Result of expression "This properties style" [undefined] is not an object.
Nodes saved with this version 6.5 work fine!
From: Karsten (KMRQUS)
Hello Max,
I'm not sure that the pushFrame works:
pointArray.prototype.pushFrame = function(frame)
{
var rx=ry=rz=0;
if ( frame.zaxis.y === 0 && frame.zaxis.z === 0) { ry = ( frame.xaxis.z > 0 )?90:-90; }
else
{
rx = Math.atan2(frame.zaxis.y, frame.zaxis.z);
ry = -Math.asin(frame.zaxis.x);
rz = Math.atan2(frame.xaxis.z*Math.sin(rx)-frame.xaxis.y*Math.cos(rx), frame.xaxis.x*Math.cos(ry)+(frame.xaxis.y*Math.sin(rx)+frame.xaxis.z*Math.cos(rx))*Math.sin(ry));
}
this.data.push(frame.origin.x); this.data.push(frame.origin.y); this.data.push(frame.origin.z);
this.data.push(rx); this.data.push(ry); this.data.push(rz);
this.data.push(1);
this.xlength++;
}
I'm missing the conversion to deg?
What works for me at the moment is something like:
pointArray.prototype.pushFrame = function (frame)
{
this.data.push(frame.origin.x);
this.data.push(frame.origin.y);
this.data.push(frame.origin.z);
var rx=ry=rz=0;
if ( frame.zaxis.y === 0 && frame.zaxis.z === 0) { ry = ( frame.xaxis.z > 0 )?Math.PI/4:-Math.PI/4; }
else
{
rx = Math.atan2(frame.zaxis.y, frame.zaxis.z);
ry = -Math.asin(Math.round(frame.zaxis.x*10000)/10000);
rz = Math.atan2(frame.xaxis.z*Math.sin(rx)-frame.xaxis.y*Math.cos(rx), frame.xaxis.x*Math.cos(ry)+(frame.xaxis.y*Math.sin(rx)+frame.xaxis.z*Math.cos(rx))*Math.sin(ry));
}
/////////////////////////
this.data.push(rx * 180 / Math.PI);
this.data.push(ry * 180 / Math.PI);
this.data.push(rz * 180 / Math.PI);
this.data.push(1);
// this.xlength++;
}
Although, for the gimbal lock is a calculation vor rx or rz is missing?? e.g. rz = Math.atan2(frame.yaxis.z,frame.yaxis.y); with rx=0;???
Nevertheless, tomorrow is a new day!
Karsten
From: BurrMan
Hey Max,
If you try and set output style property "before" running the node it will produce an error. If you run node first, then style is applied great!
I ran old "jitter node"... But example node and others like motor error out. Hopefully you are just making those future changes now...
Show messages:
1-18
…
219-238
239-258
259-278
279-298
299-318
319-338
339-358
…
899-912