jufa / starfleet_generator Goto Github PK
View Code? Open in Web Editor NEWfun procedural generator for fictional starship configurations
fun procedural generator for fictional starship configurations
{
"nacelle_toggle": false,
"nacelle_y": 24.96,
"nacelle_x": 0,
"nacelle_z": -12.69,
"nacelle_length": 7.99,
"nacelle_radius": 0.61,
"nacelle_widthRatio": 1.12,
"nacelle_rotation": 0,
"nacelleLower_toggle": true,
"nacelleLower_y": 21.71,
"nacelleLower_x": 4.44,
"nacelleLower_z": 8.68,
"nacelleLower_length": 28.19,
"nacelleLower_radius": 1.5,
"nacelleLower_widthRatio": 1.02,
"nacelleLower_rotation": -0.46,
"engineering_toggle": true,
"engineering_y": -24.8,
"engineering_z": 3.89,
"engineering_length": 16.7,
"engineering_radius": 2.03,
"engineering_widthRatio": 0.98,
"engineering_skew": -0.71,
"pylon_toggle": false,
"pylon_nacelleForeOffset": 0.25,
"pylon_nacelleAftOffset": 0.2,
"pylon_engineeringForeOffset": 0.26,
"pylon_engineeringAftOffset": 0.1,
"pylon_thickness": 0.17,
"pylonLower_toggle": true,
"pylonLower_nacelleForeOffset": 0.21,
"pylonLower_nacelleAftOffset": 0.68,
"pylonLower_engineeringForeOffset": 0.25,
"pylonLower_engineeringAftOffset": 0.11,
"pylonLower_thickness": 0.34,
"neck_toggle": true,
"neck_primaryForeOffset": 0.39,
"neck_primaryAftOffset": 0,
"neck_engineeringForeOffset": 0.36,
"neck_engineeringAftOffset": 0.08,
"neck_thickness": 0.42,
"primary_toggle": true,
"primary_y": 0.71,
"primary_z": -2.91,
"primary_radius": 15.98,
"primary_thickness": 4.54,
"primary_widthRatio": 0.56,
"name": "USMC Taildragger",
"nacelle_lowerToggle": false,
"neckThickness": 1.08
}
edges should scale after node dimensions in update
skewing is affected by scaling but shouldn't
{
"nacelle_toggle": true,
"nacelle_y": 19.07,
"nacelle_x": 4.89,
"nacelle_z": 0.88,
"nacelle_length": 32.48,
"nacelle_radius": 0.68,
"nacelle_widthRatio": 2.47,
"nacelle_rotation": 0.75,
"nacelleLower_toggle": true,
"nacelleLower_y": 19.07,
"nacelleLower_x": 4.89,
"nacelleLower_z": 2.42,
"nacelleLower_length": 32.48,
"nacelleLower_radius": 0.68,
"nacelleLower_widthRatio": 2.47,
"nacelleLower_rotation": -0.76,
"engineering_toggle": true,
"engineering_y": -35.33,
"engineering_z": 0.18,
"engineering_length": 29.89,
"engineering_radius": 1.87,
"engineering_widthRatio": 2.17,
"engineering_skew": -1.51,
"pylon_toggle": true,
"pylon_nacelleForeOffset": 0.34,
"pylon_nacelleAftOffset": 0.58,
"pylon_engineeringForeOffset": 0.34,
"pylon_engineeringAftOffset": 0.04,
"pylon_thickness": 0.45,
"pylonLower_toggle": true,
"pylonLower_nacelleForeOffset": 0.34,
"pylonLower_nacelleAftOffset": 0.58,
"pylonLower_engineeringForeOffset": 0.34,
"pylonLower_engineeringAftOffset": 0.04,
"pylonLower_thickness": 0.45,
"neck_toggle": true,
"neck_primaryForeOffset": 0.5,
"neck_primaryAftOffset": 0.04,
"neck_engineeringForeOffset": 0.23,
"neck_engineeringAftOffset": 0,
"neck_thickness": 0.98,
"primary_toggle": true,
"primary_y": -2.17,
"primary_z": -5.21,
"primary_radius": 17.52,
"primary_thickness": 4.22,
"primary_widthRatio": 0.63,
"name": "USS Emmet Till"
}
{
"nacelle_toggle": true,
"nacelle_y": 2.74,
"nacelle_x": 8.6,
"nacelle_z": -2.06,
"nacelle_length": 11.58,
"nacelle_radius": 1.25,
"nacelle_widthRatio": 0.99,
"nacelle_rotation": -0.7,
"nacelleLower_toggle": false,
"nacelleLower_y": 22.99,
"nacelleLower_x": 2.69,
"nacelleLower_z": -3.66,
"nacelleLower_length": 6.68,
"nacelleLower_radius": 1.6,
"nacelleLower_widthRatio": 1.12,
"nacelleLower_rotation": 0.73,
"engineering_toggle": true,
"engineering_y": -20.49,
"engineering_z": 0.39,
"engineering_length": 24.32,
"engineering_radius": 0.96,
"engineering_widthRatio": 3.1,
"engineering_skew": 1.36,
"pylon_toggle": true,
"pylon_nacelleForeOffset": 0.15,
"pylon_nacelleAftOffset": 0.39,
"pylon_engineeringForeOffset": 0.36,
"pylon_engineeringAftOffset": 0.26,
"pylon_thickness": 0.19,
"pylonLower_toggle": true,
"pylonLower_nacelleForeOffset": 0.04,
"pylonLower_nacelleAftOffset": 0.57,
"pylonLower_engineeringForeOffset": 0.74,
"pylonLower_engineeringAftOffset": 0,
"pylonLower_thickness": 0.1,
"neck_toggle": false,
"neck_primaryForeOffset": 0.6,
"neck_primaryAftOffset": 0.04,
"neck_engineeringForeOffset": 0.06,
"neck_engineeringAftOffset": 0,
"neck_thickness": 0.22,
"primary_toggle": true,
"primary_y": -4.53,
"primary_z": -2.26,
"primary_radius": 15,
"primary_thickness": 4.26,
"primary_widthRatio": 0.11,
"name": "ShootingStar Class",
"nacelle_lowerToggle": false,
"neckThickness": null
}
right now ships can be any size. Lets add a full ship rescale control so we can adjust size without changing other params
{
"nacelle_toggle": true,
"nacelle_y": 17.66,
"nacelle_x": 2.61,
"nacelle_z": -2.34,
"nacelle_length": 22.68,
"nacelle_radius": 1.18,
"nacelle_widthRatio": 1,
"nacelle_rotation": 0,
"nacelleLower_toggle": false,
"nacelleLower_y": 5.92,
"nacelleLower_x": 1.62,
"nacelleLower_z": 4.34,
"nacelleLower_length": 15.17,
"nacelleLower_radius": 1,
"nacelleLower_widthRatio": 1,
"nacelleLower_rotation": 0,
"engineering_toggle": true,
"engineering_y": -27.92,
"engineering_z": 7.6,
"engineering_length": 14.52,
"engineering_radius": 2,
"engineering_widthRatio": 1,
"engineering_skew": -1.04,
"pylon_toggle": true,
"pylon_nacelleForeOffset": 0.11,
"pylon_nacelleAftOffset": 0.74,
"pylon_engineeringForeOffset": 0.63,
"pylon_engineeringAftOffset": 0,
"pylon_thickness": 0.25,
"pylonLower_toggle": true,
"pylonLower_nacelleForeOffset": 0,
"pylonLower_nacelleAftOffset": 0.28,
"pylonLower_engineeringForeOffset": 0.3,
"pylonLower_engineeringAftOffset": 0.02,
"pylonLower_thickness": 0.25,
"neck_toggle": false,
"neck_primaryForeOffset": 0,
"neck_primaryAftOffset": 0,
"neck_engineeringForeOffset": 0.68,
"neck_engineeringAftOffset": 0,
"neck_thickness": 0.36,
"primary_toggle": true,
"primary_y": -7.16,
"primary_z": 2.74,
"primary_radius": 10.71,
"primary_thickness": 3.06,
"primary_widthRatio": 1,
"name": "USS Cerberus",
"nacelle_lowerToggle": false,
"neckThickness": null
}
{
"nacelle_toggle": true,
"nacelle_y": 19.26,
"nacelle_x": 3.27,
"nacelle_z": 0.08,
"nacelle_length": 18.77,
"nacelle_radius": 1.32,
"nacelle_widthRatio": 1,
"nacelle_rotation": -0.92,
"nacelleLower_toggle": true,
"nacelleLower_y": 18.2,
"nacelleLower_x": 4.94,
"nacelleLower_z": 0.08,
"nacelleLower_length": 18.44,
"nacelleLower_radius": 1.33,
"nacelleLower_widthRatio": 1,
"nacelleLower_rotation": 0.94,
"engineering_toggle": true,
"engineering_y": -30.89,
"engineering_z": 0.18,
"engineering_length": 16.48,
"engineering_radius": 2.23,
"engineering_widthRatio": 1.05,
"engineering_skew": -1.17,
"pylon_toggle": false,
"pylon_nacelleForeOffset": 0.1,
"pylon_nacelleAftOffset": 0.65,
"pylon_engineeringForeOffset": 0.63,
"pylon_engineeringAftOffset": 0.14,
"pylon_thickness": 0.45,
"pylonLower_toggle": true,
"pylonLower_nacelleForeOffset": 0.1,
"pylonLower_nacelleAftOffset": 0.65,
"pylonLower_engineeringForeOffset": 0.63,
"pylonLower_engineeringAftOffset": 0.06,
"pylonLower_thickness": 0.45,
"neck_toggle": true,
"neck_primaryForeOffset": 0.32,
"neck_primaryAftOffset": 0.04,
"neck_engineeringForeOffset": 0.25,
"neck_engineeringAftOffset": 0,
"neck_thickness": 0.3,
"primary_toggle": true,
"primary_y": -9.53,
"primary_z": -5.26,
"primary_radius": 11.64,
"primary_thickness": 3.61,
"primary_widthRatio": 1.15,
"name": "USS Smallstepper"
}
Maybe add additional 3-view and name overlay options
add a button to export a screenshot from the current view
Maybe add additional 3-view and name overlay options
{
"nacelle_toggle": true,
"nacelle_y": 20.99,
"nacelle_x": 2.88,
"nacelle_z": -5.12,
"nacelle_length": 20.7,
"nacelle_radius": 1.53,
"nacelle_widthRatio": 1,
"nacelle_rotation": 0,
"nacelleLower_toggle": false,
"nacelleLower_y": 10.85,
"nacelleLower_x": -1.46,
"nacelleLower_z": 5.78,
"nacelleLower_length": 12,
"nacelleLower_radius": 1,
"nacelleLower_widthRatio": 1,
"nacelleLower_rotation": 0,
"engineering_toggle": true,
"engineering_y": -49.45,
"engineering_z": 1.2,
"engineering_length": 31.34,
"engineering_radius": 2.3,
"engineering_widthRatio": 1,
"engineering_skew": -1.16,
"pylon_toggle": true,
"pylon_nacelleForeOffset": 0,
"pylon_nacelleAftOffset": 0.86,
"pylon_engineeringForeOffset": 0.24,
"pylon_engineeringAftOffset": 0.54,
"pylon_thickness": 0.3,
"pylonLower_toggle": true,
"pylonLower_nacelleForeOffset": 0.3,
"pylonLower_nacelleAftOffset": 0.3,
"pylonLower_engineeringForeOffset": 0.3,
"pylonLower_engineeringAftOffset": 0.3,
"pylonLower_thickness": 0.32,
"neck_toggle": true,
"neck_primaryForeOffset": 0.39,
"neck_primaryAftOffset": 0.15,
"neck_engineeringForeOffset": 0.36,
"neck_engineeringAftOffset": 0.08,
"neck_thickness": 0.3,
"primary_toggle": true,
"primary_y": -15.22,
"primary_z": 3.12,
"primary_radius": 11.08,
"primary_thickness": 7.55,
"primary_widthRatio": 0.34,
"name": "USS Daedelus"
}
will also need a version number param so that we can validate params are going to work
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.