当前位置:网站首页>[1024 programmers' day] Why do some programmers leave work earlier than you?
[1024 programmers' day] Why do some programmers leave work earlier than you?
2022-06-24 02:55:00 【User 8763535】
1024 What is it? ?
game ?2 To the tenth power of ? A forum Festival ?
10 month 24 Japan , In fact, the program ape turns over and makes the decision , Days of refusing to work overtime —— Programmer's Day ( It's also called manong Festival ).
therefore , Please take care of the endangered species around you !
Why 10 month 24 Japan ? because 1024 yes 2 To the tenth power of , The basic unit of measurement for binary counting , It's the number programmers are most familiar with , It's like a doctor's knife 、 The painter's pen .
There is such a poem in the Jianghu :
abed, I see a silver light , I can write code ; Thousands of birds fly away , I can write code ;
beneath the pine I asked the boy , I can write code ; Sleep in spring , I can write code ;
Day by day , I can write code ; Red beans grow in the south , I can write code ;
Hoe standing grain gradually pawning a midday , I can write code ; To see a thousand miles , I can write code !
But the ideal is full and the reality is very bony ,“ How bald it is to work overtime ” Has become a programmer's Royal paragraph .
It is said that :“ If a worker wants to do a good job, he must sharpen his tools first ”, Well used tools , Efficiency must be high . take 3D For visual application development ,3D Visual application development is a big project for every enterprise , It takes a lot of manpower, material and financial resources to do this project well , But it can actually be simplified , It doesn't take much trouble , say concretely ,ThingJS 3D Visual development platform , be based on webgl3D Drawing standards , Use the hottest Javascript Language , encapsulation threejs library , Front end engineers can realize online development , Visualizing the scene by dragging and simply writing some code , Docking data source , After the project is deployed, it can run on the server ~ It's really easy to use , Good tools , Leave work early !
ThingJS 3D The framework simplifies development , The characteristics of object-oriented and modularization make the web page code easier to manage and maintain , And provide hundreds of official examples , Direct access to API Ability , It doesn't need to be based on 3D Concept development , fit 3D Rapid generation of commercial projects ! Only one layer away from the business , It is an application method that is easy for non developers to understand . Use native JavaScript Development language , With a simple and easy-to-use 3D Build tools , Let front-end programmers and implementers get started immediately .
Only a few lines of code are needed to implement the first person walking
such 3D The first person walking in the scene can be easily realized with only dozens of lines of code , The code is as follows :
var app = new THING.App({
url: 'https://www.thingjs.com/static/models/factory',
skyBox: 'Night',
env: 'Seaside',
});
// After loading the scene, execute
app.on('load', function ()
// Create button
new THING.widget.Button(' add controls ', add_control);
new THING.widget.Button(' Reset ', remove_control);
});
/**
* add controls
*/
var ctrl = null;
var gui = null;
function add_control() {
if (ctrl) {
return;
}
// The camera flies to a certain position
app.camera.flyTo({
'position': [2.8321649862532032, 1.800003570690751, 19.142406079541555],
'target': [8.238903690935196, 1.4337976272817292, 14.458302731727938],
'time': 1000,
'complete': function () {
ctrl = app.addControl(
new THING.WalkControl({
// Parameters can be dynamically modified
walkSpeed: 0.02, // Walking speed
turnSpeed: 0.25, // Right click rotation speed
gravity: 29.8, // Weight of object
eyeHeight: 1.8, // Human height
jumpSpeed: 10, // Press the space bar The speed of the jump
enableKeyRotate: false, // By default, the keyboard is not turned on to control rotation
useCollision: false, // Collision detection is not enabled by default
useGravity: true // Gravity is on by default
})
);
// GUI
gui = new THING.widget.Panel({ 'titleText': ' First person walking ', 'hasTitle': true });
gui.position = [10, 200];
gui.addBoolean(ctrl, 'enableKeyRotate').caption(' The keyboard controls the rotation ');
gui.addBoolean(ctrl, 'useCollision').caption(' collision detection ');
gui.addBoolean(ctrl, 'useGravity').caption(' Gravity detection ');
gui.addNumberSlider(ctrl, 'gravity').caption(' gravity ').step(1).min(0).max(50).isChangeValue(true);
gui.addNumberSlider(ctrl, 'jumpSpeed').caption(' Jump speed ').step(1).min(0).max(30).isChangeValue(true);
}
});
}
/**
* Delete control
*/
function remove_control() {
if (ctrl) {
// The camera flies to a certain position
app.camera.flyTo({
'position': [36.013, 42.67799999999998, 61.72399999999999],
'target': [1.646, 7.891, 4.445],
'time': 1000,
'complete': function () {
app.removeControl(ctrl);
ctrl = null;
gui.destroy();
}
});
}
}Look at the effect :
ThingJS The visualization capability provided can make the Internet of things application scenario easier to understand and control , Significantly improve customer satisfaction and solution competitiveness . Simple to use 3D Visualization platform ThingJS, Front end engineers will js Can the , Give it a try and you'll know how to do it ~
边栏推荐
- 5g Gigabit router dual band industrial grade
- Buddha's foot before examination: the third bullet of leetcode
- [51nod] 2653 section XOR
- Grpc: how to enable tls/ssl?
- Simple use of notification
- Tencent Youtu won the champion of iccv2021 LVIs challenge workshop and the best innovation award of the project
- How to understand EDI requirements of trading partners
- Cloud function pressure measurement based on wechat applet
- Gartner released the magic quadrant of enterprise low code platform in 2021. Low code integrated platform becomes a trend!
- Live broadcast Reservation: a guide to using the "cloud call" capability of wechat cloud hosting
猜你喜欢

2022-2028 global medical modified polypropylene industry research and trend analysis report

2022-2028 global genome editing mutation detection kit industry survey and trend analysis report

2022-2028 global anti counterfeiting label industry research and trend analysis report

2022-2028 global third-party data platform industry research and trend analysis report

The cost of on-site development of software talent outsourcing is higher than that of software project outsourcing. Why

2022-2028 global aircraft front wheel steering system industry research and trend analysis report
![[51nod] 3216 Awards](/img/94/fdb32434d1343040d711c76568b281.jpg)
[51nod] 3216 Awards
![[51nod] 2106 an odd number times](/img/af/59b441420aa4f12fd50f5062a83fae.jpg)
[51nod] 2106 an odd number times

2022-2028 global medical coating materials industry research and trend analysis report

2022-2028 Global Industry Survey and trend analysis report on portable pressure monitors for wards
随机推荐
What does operation and maintenance audit fortress mean? How to select the operation and maintenance audit fortress machine?
AI intelligent analysis is innovated again. In the future, the technical reserve of the security industry will become the top priority
Prompt error when Jekyll runs cannot load such file -- webrick (LoadError)
2022-2028 global anti counterfeiting label industry research and trend analysis report
How does [lightweight application server] build a cross-border e-commerce management environment?
Production line motor monitoring and maintenance - application case of 5g edge calculation for paperboard line motor maintenance
Tencent Youtu won the champion of iccv2021 LVIs challenge workshop and the best innovation award of the project
How to transfer files from the server connected to the fortress machine and how to access the server through the fortress machine
How to build a website? These things should be paid attention to
VNC enters the password and goes around for a long time before entering the desktop. Use procmon to locate the reason
The 2021 Tencent digital ecology conference is coming
How does easynvr call the interface to modify a user-defined page?
Deep and shallow copy
How to build your own cloud game server and what are the building steps
How to access easynvr management platform through web pages without data?
Tencent dongzhiqiang: network security construction needs to change from product driven to service driven
Mutual conversion between qstring and qdatetime
Uipickerview show and hide animation
Tornado code for file download
NFT metauniverse and the relationship between Games Golden Finance