mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-25 14:36:13 +01:00
affectors
This commit is contained in:
parent
8c978903ac
commit
f1a4f09fdd
8 changed files with 92 additions and 2 deletions
|
@ -710,6 +710,7 @@
|
||||||
{"name":"s_node_stripe","order":16,"path":"sprites/s_node_stripe/s_node_stripe.yy",},
|
{"name":"s_node_stripe","order":16,"path":"sprites/s_node_stripe/s_node_stripe.yy",},
|
||||||
{"name":"s_node_lua_global","order":19,"path":"sprites/s_node_lua_global/s_node_lua_global.yy",},
|
{"name":"s_node_lua_global","order":19,"path":"sprites/s_node_lua_global/s_node_lua_global.yy",},
|
||||||
{"name":"node_pb_draw_diamond","order":10,"path":"scripts/node_pb_draw_diamond/node_pb_draw_diamond.yy",},
|
{"name":"node_pb_draw_diamond","order":10,"path":"scripts/node_pb_draw_diamond/node_pb_draw_diamond.yy",},
|
||||||
|
{"name":"s_node_3d_point_affector","order":21,"path":"sprites/s_node_3d_point_affector/s_node_3d_point_affector.yy",},
|
||||||
{"name":"polygon_points","order":2,"path":"scripts/polygon_points/polygon_points.yy",},
|
{"name":"polygon_points","order":2,"path":"scripts/polygon_points/polygon_points.yy",},
|
||||||
{"name":"transformBox","order":15,"path":"scripts/transformBox/transformBox.yy",},
|
{"name":"transformBox","order":15,"path":"scripts/transformBox/transformBox.yy",},
|
||||||
{"name":"sh_grey_alpha","order":12,"path":"shaders/sh_grey_alpha/sh_grey_alpha.yy",},
|
{"name":"sh_grey_alpha","order":12,"path":"shaders/sh_grey_alpha/sh_grey_alpha.yy",},
|
||||||
|
|
|
@ -1346,6 +1346,7 @@
|
||||||
{"id":{"name":"s_node_stripe","path":"sprites/s_node_stripe/s_node_stripe.yy",},},
|
{"id":{"name":"s_node_stripe","path":"sprites/s_node_stripe/s_node_stripe.yy",},},
|
||||||
{"id":{"name":"s_node_lua_global","path":"sprites/s_node_lua_global/s_node_lua_global.yy",},},
|
{"id":{"name":"s_node_lua_global","path":"sprites/s_node_lua_global/s_node_lua_global.yy",},},
|
||||||
{"id":{"name":"node_pb_draw_diamond","path":"scripts/node_pb_draw_diamond/node_pb_draw_diamond.yy",},},
|
{"id":{"name":"node_pb_draw_diamond","path":"scripts/node_pb_draw_diamond/node_pb_draw_diamond.yy",},},
|
||||||
|
{"id":{"name":"s_node_3d_point_affector","path":"sprites/s_node_3d_point_affector/s_node_3d_point_affector.yy",},},
|
||||||
{"id":{"name":"polygon_points","path":"scripts/polygon_points/polygon_points.yy",},},
|
{"id":{"name":"polygon_points","path":"scripts/polygon_points/polygon_points.yy",},},
|
||||||
{"id":{"name":"transformBox","path":"scripts/transformBox/transformBox.yy",},},
|
{"id":{"name":"transformBox","path":"scripts/transformBox/transformBox.yy",},},
|
||||||
{"id":{"name":"s_node_fluidSim_group","path":"sprites/s_node_fluidSim_group/s_node_fluidSim_group.yy",},},
|
{"id":{"name":"s_node_fluidSim_group","path":"sprites/s_node_fluidSim_group/s_node_fluidSim_group.yy",},},
|
||||||
|
|
|
@ -13,14 +13,28 @@ function __3dGizmoPlaneFalloff(radius = 0.5, color = c_white, alpha = 1) : __3dG
|
||||||
[
|
[
|
||||||
new __vertex( -radius, -radius, -_d, color, alpha ),
|
new __vertex( -radius, -radius, -_d, color, alpha ),
|
||||||
new __vertex( -radius, radius, -_d, color, alpha ),
|
new __vertex( -radius, radius, -_d, color, alpha ),
|
||||||
|
|
||||||
|
new __vertex( -radius, radius, -_d, color, alpha ),
|
||||||
|
new __vertex( radius, radius, -_d, color, alpha ),
|
||||||
|
|
||||||
new __vertex( radius, radius, -_d, color, alpha ),
|
new __vertex( radius, radius, -_d, color, alpha ),
|
||||||
new __vertex( radius, -radius, -_d, color, alpha ),
|
new __vertex( radius, -radius, -_d, color, alpha ),
|
||||||
|
|
||||||
|
new __vertex( radius, -radius, -_d, color, alpha ),
|
||||||
|
new __vertex( -radius, -radius, -_d, color, alpha ),
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
new __vertex( -radius, -radius, _d, color, alpha ),
|
new __vertex( -radius, -radius, _d, color, alpha ),
|
||||||
new __vertex( -radius, radius, _d, color, alpha ),
|
new __vertex( -radius, radius, _d, color, alpha ),
|
||||||
|
|
||||||
|
new __vertex( -radius, radius, _d, color, alpha ),
|
||||||
|
new __vertex( radius, radius, _d, color, alpha ),
|
||||||
|
|
||||||
new __vertex( radius, radius, _d, color, alpha ),
|
new __vertex( radius, radius, _d, color, alpha ),
|
||||||
new __vertex( radius, -radius, _d, color, alpha ),
|
new __vertex( radius, -radius, _d, color, alpha ),
|
||||||
|
|
||||||
|
new __vertex( radius, -radius, _d, color, alpha ),
|
||||||
|
new __vertex( -radius, -radius, _d, color, alpha ),
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
new __vertex( 0, 0, _d + 0, color, alpha ),
|
new __vertex( 0, 0, _d + 0, color, alpha ),
|
||||||
|
|
|
@ -66,7 +66,7 @@ function Node_3D_Point_Affector(_x, _y, _group = noone) : Node_3D_Object(_x, _y,
|
||||||
gizmo_plane[0].checkParameter({ distance: _fald });
|
gizmo_plane[0].checkParameter({ distance: _fald });
|
||||||
|
|
||||||
var _prot = new BBMOD_Quaternion(_rot[0], _rot[1], _rot[2], _rot[3]);
|
var _prot = new BBMOD_Quaternion(_rot[0], _rot[1], _rot[2], _rot[3]);
|
||||||
plane_normal = _prot.Rotate(new BBMOD_Vec3(0, 0, 1));
|
plane_normal = _prot.Rotate(new BBMOD_Vec3(0, 0, 1)).ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(CURRENT_FRAME == 0)
|
if(CURRENT_FRAME == 0)
|
||||||
|
|
|
@ -427,7 +427,7 @@ function NodeObject(_name, _spr, _node, _create, tags = []) constructor { #regio
|
||||||
///**/ addNodeObject(d3d, "3D Particle", s_node_3d_set_material, "Node_3D_Particle", [1, Node_3D_Particle]).setVersion(11560);
|
///**/ addNodeObject(d3d, "3D Particle", s_node_3d_set_material, "Node_3D_Particle", [1, Node_3D_Particle]).setVersion(11560);
|
||||||
|
|
||||||
ds_list_add(d3d, "Points");
|
ds_list_add(d3d, "Points");
|
||||||
addNodeObject(d3d, "Point Affector", s_node_3d_discretize, "Node_3D_Point_Affector", [1, Node_3D_Point_Affector]).setVersion(11570);
|
addNodeObject(d3d, "Point Affector", s_node_3d_point_affector, "Node_3D_Point_Affector", [1, Node_3D_Point_Affector]).setVersion(11570);
|
||||||
|
|
||||||
//ds_list_add(d3d, "Legacy"); //////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
//ds_list_add(d3d, "Legacy"); //////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
//addNodeObject(d3d, "3D Plane", s_node_3d_plane, "__Node_3D_Plane", [1, __Node_3D_Plane],, "Put 2D image on a plane in 3D space.").isDeprecated();
|
//addNodeObject(d3d, "3D Plane", s_node_3d_plane, "__Node_3D_Plane", [1, __Node_3D_Plane],, "Put 2D image on a plane in 3D space.").isDeprecated();
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 2.6 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.6 KiB |
74
sprites/s_node_3d_point_affector/s_node_3d_point_affector.yy
Normal file
74
sprites/s_node_3d_point_affector/s_node_3d_point_affector.yy
Normal file
|
@ -0,0 +1,74 @@
|
||||||
|
{
|
||||||
|
"resourceType": "GMSprite",
|
||||||
|
"resourceVersion": "1.0",
|
||||||
|
"name": "s_node_3d_point_affector",
|
||||||
|
"bbox_bottom": 59,
|
||||||
|
"bbox_left": 4,
|
||||||
|
"bbox_right": 61,
|
||||||
|
"bbox_top": 4,
|
||||||
|
"bboxMode": 0,
|
||||||
|
"collisionKind": 1,
|
||||||
|
"collisionTolerance": 0,
|
||||||
|
"DynamicTexturePage": false,
|
||||||
|
"edgeFiltering": false,
|
||||||
|
"For3D": false,
|
||||||
|
"frames": [
|
||||||
|
{"resourceType":"GMSpriteFrame","resourceVersion":"1.1","name":"cc497e53-a320-436d-8b85-1c4873ebfb1f",},
|
||||||
|
],
|
||||||
|
"gridX": 0,
|
||||||
|
"gridY": 0,
|
||||||
|
"height": 64,
|
||||||
|
"HTile": false,
|
||||||
|
"layers": [
|
||||||
|
{"resourceType":"GMImageLayer","resourceVersion":"1.0","name":"605130f5-1c72-488d-a143-43e833223f94","blendMode":0,"displayName":"default","isLocked":false,"opacity":100.0,"visible":true,},
|
||||||
|
],
|
||||||
|
"nineSlice": null,
|
||||||
|
"origin": 4,
|
||||||
|
"parent": {
|
||||||
|
"name": "3D",
|
||||||
|
"path": "folders/nodes/icons/3D.yy",
|
||||||
|
},
|
||||||
|
"preMultiplyAlpha": false,
|
||||||
|
"sequence": {
|
||||||
|
"resourceType": "GMSequence",
|
||||||
|
"resourceVersion": "1.4",
|
||||||
|
"name": "s_node_3d_point_affector",
|
||||||
|
"autoRecord": true,
|
||||||
|
"backdropHeight": 768,
|
||||||
|
"backdropImageOpacity": 0.5,
|
||||||
|
"backdropImagePath": "",
|
||||||
|
"backdropWidth": 1366,
|
||||||
|
"backdropXOffset": 0.0,
|
||||||
|
"backdropYOffset": 0.0,
|
||||||
|
"events": {"resourceType":"KeyframeStore<MessageEventKeyframe>","resourceVersion":"1.0","Keyframes":[],},
|
||||||
|
"eventStubScript": null,
|
||||||
|
"eventToFunction": {},
|
||||||
|
"length": 1.0,
|
||||||
|
"lockOrigin": false,
|
||||||
|
"moments": {"resourceType":"KeyframeStore<MomentsEventKeyframe>","resourceVersion":"1.0","Keyframes":[],},
|
||||||
|
"playback": 1,
|
||||||
|
"playbackSpeed": 30.0,
|
||||||
|
"playbackSpeedType": 0,
|
||||||
|
"showBackdrop": true,
|
||||||
|
"showBackdropImage": false,
|
||||||
|
"timeUnits": 1,
|
||||||
|
"tracks": [
|
||||||
|
{"resourceType":"GMSpriteFramesTrack","resourceVersion":"1.0","name":"frames","builtinName":0,"events":[],"inheritsTrackColour":true,"interpolation":1,"isCreationTrack":false,"keyframes":{"resourceType":"KeyframeStore<SpriteFrameKeyframe>","resourceVersion":"1.0","Keyframes":[
|
||||||
|
{"resourceType":"Keyframe<SpriteFrameKeyframe>","resourceVersion":"1.0","Channels":{"0":{"resourceType":"SpriteFrameKeyframe","resourceVersion":"1.0","Id":{"name":"cc497e53-a320-436d-8b85-1c4873ebfb1f","path":"sprites/s_node_3d_point_affector/s_node_3d_point_affector.yy",},},},"Disabled":false,"id":"6911bb1c-bfd2-4198-99a8-786a0aa40e79","IsCreationKey":false,"Key":0.0,"Length":1.0,"Stretch":false,},
|
||||||
|
],},"modifiers":[],"spriteId":null,"trackColour":0,"tracks":[],"traits":0,},
|
||||||
|
],
|
||||||
|
"visibleRange": null,
|
||||||
|
"volume": 1.0,
|
||||||
|
"xorigin": 32,
|
||||||
|
"yorigin": 32,
|
||||||
|
},
|
||||||
|
"swatchColours": null,
|
||||||
|
"swfPrecision": 2.525,
|
||||||
|
"textureGroupId": {
|
||||||
|
"name": "Default",
|
||||||
|
"path": "texturegroups/Default",
|
||||||
|
},
|
||||||
|
"type": 0,
|
||||||
|
"VTile": false,
|
||||||
|
"width": 64,
|
||||||
|
}
|
Loading…
Reference in a new issue