--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/dTutUVqXa8k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/abfbd731-a84e-4e4a-bffe-f6c0cee63710%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[{"id":"f2e61329.7d519","type":"template","z":"b18c0a01.bdb9f8","name":"","field":"payload","fieldType":"msg","format":"html","syntax":"plain","template":"<!DOCTYPE html>\n<html>\n\t<body>\n\n\t\t<script src=\"../three.js\"></script>\n\n\t\t<script>\n\n\t\t\tvar camera, scene, renderer;\n\t\t\tvar mesh;\n\n\t\t\tinit();\n\t\t\tanimate();\n\n\t\t\tfunction init() {\n\n\t\t\t\tcamera = new THREE.PerspectiveCamera( 70, window.innerWidth / window.innerHeight, 1, 1000 );\n\t\t\t\tcamera.position.z = 400;\n\n\t\t\t\tscene = new THREE.Scene();\n\n\t\t\t\tvar texture = new THREE.TextureLoader().load( '../textures/crate.gif' );\n\n\t\t\t\tvar geometry = new THREE.BoxBufferGeometry( 200, 200, 200 );\n\t\t\t\tvar material = new THREE.MeshBasicMaterial( { map: texture } );\n\n\t\t\t\tmesh = new THREE.Mesh( geometry, material );\n\t\t\t\tscene.add( mesh );\n\n\t\t\t\trenderer = new THREE.WebGLRenderer();\n\t\t\t\trenderer.setPixelRatio( window.devicePixelRatio );\n\t\t\t\trenderer.setSize( window.innerWidth, window.innerHeight );\n\t\t\t\tdocument.body.appendChild( renderer.domElement );\n\n\t\t\t\t//\n\n\t\t\t\twindow.addEventListener( 'resize', onWindowResize, false );\n\n\t\t\t}\n\n\t\t\tfunction onWindowResize() {\n\n\t\t\t\tcamera.aspect = window.innerWidth / window.innerHeight;\n\t\t\t\tcamera.updateProjectionMatrix();\n\n\t\t\t\trenderer.setSize( window.innerWidth, window.innerHeight );\n\n\t\t\t}\n\n\t\t\tfunction animate() {\n\n\t\t\t\trequestAnimationFrame( animate );\n\n\t\t\t\tmesh.rotation.x += 0.005;\n\t\t\t\tmesh.rotation.y += 0.01;\n\n\t\t\t\trenderer.render( scene, camera );\n\n\t\t\t}\n\n\t\t</script>\n\n\t</body>\n</html>","x":1022.5000228881836,"y":585.0000257492065,"wires":[["993e12e9.a85cf"]]},{"id":"769baee1.1da76","type":"inject","z":"b18c0a01.bdb9f8","name":"","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":true,"x":855.2380523681641,"y":585.714277267456,"wires":[["f2e61329.7d519"]]},{"id":"993e12e9.a85cf","type":"ui_template","z":"b18c0a01.bdb9f8","group":"1b52a294.dc93fd","name":"","order":5,"width":"6","height":"6","format":"<div ng-bind-html=\"msg.payload | trusted\"></div>","storeOutMessages":false,"fwdInMessages":false,"x":1234.4444999694824,"y":584.4443855285645,"wires":[[]]},{"id":"1b52a294.dc93fd","type":"ui_group","z":"","name":"three","tab":"994601e4.5e75f","disp":true,"width":"6"},{"id":"994601e4.5e75f","type":"ui_tab","z":"","name":"Three","icon":"dashboard","order":6}]
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/dTutUVqXa8k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/888e70d3-7b54-4e9b-8b77-0812ccdaad24%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CALqZgzQh2t8rrNJy%3DodDYHpBT28B3CKBo5p9FpRtsAtfBxGBUQ%40mail.gmail.com.
// When httpAdminRoot is used to move the UI to a different root path, the// following property can be used to identify a directory of static content// that should be served at http://localhost:1880/.httpStatic: '/home/unit32/.node-red/static/',// The maximum size of HTTP request that will be accepted by the runtime api.// Default: 5mb//apiMaxLength: '5mb',
unit32@unit32:~/.node-red$ ls static/98jetta.fbx highcharts.js js steelseries-min.js.mapadapters highcharts-more.js lib texturesbower.json highcharts-more.src.js modules themesChart.bundle.min.js highcharts.src.js package.json three-cdncss highmaps.js README.md three.jsdemo.manifest highmaps.src.js SteelSeries-Canvas tween.jshighcharts-3d.js highstock.js steelseries.js tween-min.jshighcharts-3d.src.js highstock.src.js steelseries-min.jsunit32@unit32:~/.node-red$
<!DOCTYPE html>
<html>
<body>
<script src="/highcharts.js"></script>
<script src="/modules/exporting.js"></script>
<div id="container" style="min-width: 325px; height: 200px"></div>
<script>
// (function(scope){
// scope.$watch('msg', function(msg) {
// mine1.graph(msg.payload);
// });
// })(scope);
$(document).ready(function () {
Highcharts.setOptions({
global: {
useUTC: false
}
});
Highcharts.chart('container', {
chart: {
type: 'areaspline',
animation: Highcharts.svg, // don't animate in old IE
marginRight: 5,
events: {
load: function () {
// set up the updating of the chart each second
var series = this.series[0];
setInterval(function () {
var x = (new Date()).getTime(), // current time
y = Math.random();
series.addPoint([x, y], true, true);
}, 1000);
}
}
},
title: {
text: 'Live random data'
},
xAxis: {
type: 'datetime',
tickPixelInterval: 50
},
yAxis: {
title: {
// text: 'Value'
},
plotLines: [{
value: 0,
width: 1,
color: '#808080'
}]
},
tooltip: {
formatter: function () {
return '<b>' + this.series.name + '</b><br/>' +
Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x) + '<br/>' +
Highcharts.numberFormat(this.y, 2);
}
},
legend: {
enabled: true
},
exporting: {
enabled: true
},
series: [{
name: 'Random data',
data: (function () {
// generate an array of random data
var data = [],
time = (new Date()).getTime(),
i;
for (i = -19; i <= 0; i += 1) {
data.push({
x: time + i * 1000,
y: Math.random()
});
}
return data;
}())
}]
});
});
</script>
</body>
</html>
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CALqZgzQh2t8rrNJy%3DodDYHpBT28B3CKBo5p9FpRtsAtfBxGBUQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/dTutUVqXa8k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/DA08592A-B8B9-4687-B103-1399D17D8CE8%40zenofmud.org.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.
ReferenceError: THREE is not definedat init (eval at globalEval (app.min.js:20), <anonymous>:9:18)at eval (eval at globalEval (app.min.js:20), <anonymous>:4:4)at eval (<anonymous>)at Function.globalEval (app.min.js:20)at ua (app.min.js:21)at n.fn.init.append (app.min.js:21)at n.fn.init.<anonymous> (app.min.js:21)at K (app.min.js:20)at n.fn.init.html (app.min.js:21)at app.min.js:302
<script src="/three.js"></script>
Use of the Application Cache is deprecated on insecure origins. Support will be removed in the future. You should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.
:1880/ui/#/0:1 Document was loaded from Application Cache with manifest http://fragnastika.com:1880/ui/dashboard.appcache
:1880/ui/#/0:1 Application Cache Checking event
:1880/ui/#/0:1 Application Cache NoUpdate event
app.min.js:486Rendered http://fragnastika.com:1880/ui/css/app.min.less successfully.
app.min.js:486CSS for http://fragnastika.com:1880/ui/css/app.min.less generated in 208ms
app.min.js:486Less has finished. CSS generated in 208ms
app.min.js:486Rendered http://fragnastika.com:1880/ui/css/app.min.less successfully.
app.min.js:486CSS for http://fragnastika.com:1880/ui/css/app.min.less generated in 21ms
app.min.js:486Less has finished. CSS generated in 21ms
app.min.js:22 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
send @ app.min.js:22
(unknown) THREE.WebGLRenderer 85dev
(unknown) THREE.WebGLRenderLists: 4,3
Anyways it has Three.js in it simplified with modules and also physics library which three.js does not have by itself. I'm going to try the NPM install route and see what I can do with it.
I can envision this as pretty fun nodes for Node-Red. Maybe if I gain enough knowledge someday I'll give it a shot if nobody else does it.
Mark
So I'm back at the point just before I got this working. I'm starting completely from scratch. I'll take notes and share. I hope to create some nodes and figure it all out. It would be really cool to get data in node-red to manipulate 3D objects on a canvas.
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/dTutUVqXa8k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send an email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/0d113849-3339-4a77-965a-272602378df2%40googlegroups.com.
<script src="/tank_volume/js/three.min.js"></script>
<script src="/tank_volume/js/CanvasRenderer.js"></script>
<script src="/tank_volume/js/Projector.js"></script><script type="text/x-red" data-template-name="tank-volume">
<div class="form-row" id="container">
<label> </label>
</div>oneditprepare: function() {
var containerElement = $("#container");
// renderer
var renderer = new THREE.CanvasRenderer( { clearColor: 0x000000 } );
renderer.setSize( 300, 300 );
container.appendChild( renderer.domElement );
// scene
var scene = new THREE.Scene();
scene.background = new THREE.Color( 0xffffff );
// camera
var camera = new THREE.PerspectiveCamera( 30, window.innerWidth / window.innerHeight, 1, 1000 );
camera.position.set(16, 8, 16);
camera.lookAt( scene.position );
scene.add(camera);
// material
var material = new THREE.MeshBasicMaterial( { color: 0xff00ff, wireframe: true } );
// geometry
var geometry = new THREE.CubeGeometry( 3, 4, 8, 2, 3, 4 );
// mesh
mesh = new THREE.Mesh( geometry, material );
scene.add( mesh );
// render
renderer.render( scene, camera ); RED.nodes.registerType("tank-volume",TankVolumeNode);
// Make all the static resources from this node public available (i.e. third party JQuery plugin tableHeadFixer.js).
RED.httpAdmin.get('/tank_volume/js/*', function(req, res){
var options = {
root: __dirname + '/lib/',
dotfiles: 'deny'
};
// Send the requested file to the client (in this case it will be tableHeadFixer.js)
res.sendFile(req.params[0], options)
});--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/dTutUVqXa8k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/34320abf-76c6-4a3f-bd7d-51e3ad3b490b%40googlegroups.com.