Chapter 349 The 3D game engine is very troublesome

"I can take you with me to knock on the door of adventure, but you are the one who opens the door to this challenge to fate."

"This is the toughest and most adventurous motorsport in the whole world, and it's the game of the brave!"

"The whole journey is more than 8,000 kilometers, across Europe and Africa, far from the road, uninhabited, the terrain is steep, the climate is harsh, most of it is in the tropical desert, the high temperature is more than 40 degrees during the day, and the night is below 0 degrees, which is a test of human endurance!"

"In the 1995 Paris-Dakar Rally, CCTV Sports Channel followed the whole process and attacked! Longteng Entertainment & Games is recruiting volunteers and drivers from all over the country, who will be the first Chinese driver to challenge the Dakar Rally? ”

This is an advertisement for CCTV's sports channel, which instantly attracted the attention of people across the country and triggered a heated discussion after it was broadcast on CCTV 1!

The specific recruitment conditions, published in the "Sports Weekly" for four consecutive issues, are very demanding, and have very high requirements for the physical fitness, driving experience, age and psychological endurance of the racing drivers, and reaction speed, which are all hard indicators.

In addition, China will send two teams to participate, one is the seed team, Shanghai Shark Racing Team, all vehicles and parts are imported from the United States, by the GMC pickup branch of General Motors Company full guidance, technician training and backup vehicles by Shanghai Automobile Group is responsible, this is the first unofficial cooperation between SAIC and GM, aiming to establish a good exchange relationship.

The second is the friendly participation team, the Great Wall Longteng Racing Team, which is driven by the drivers who are openly recruited by the whole society by the Great Wall Motors. Walking with CCTV sports channel reporters, the emphasis is on participation. No race pressure.

Although there are now joint ventures such as JMC and Nissan in China to produce pickup trucks. The technology and quality are better than the domestic Great Wall, but Jiangling is a Japanese Isuzu technology, not to mention Nissan, so Longteng's final choice is to cooperate with the domestic Great Wall Motors.

Within Longteng Company, employees enthusiastically responded to the call and signed up for the reinforcement team of the rally, willing to follow the large army to challenge the limit, contribute to the company, and volunteer.

Look at the thick stack of lists that have been collected. Zhao Yongping smiled dumbly: "Mr. Yang, do these guys think they are traveling to Europe?" This is a race that costs several lives every year, with an average speed of 150 kilometers per hour for cars and 130 kilometers per hour for motorcycles. ”

Yang Yun sighed: "That's why it's challenging!" The support team can't follow the track, but on a smooth road, so we only need to send out two maintenance technicians for photographic equipment, and the logistics volunteers still choose experienced veterans from outside. Other than that. I'm worried about the driver and the reporter in the Great Wall car, the quality of the car is not good, and if the driver is inexperienced, it is easy to get into an accident. ”

Zhao Yongping said: "Mr. Wei of the Great Wall patted his chest and said it was okay. He brings together the best technology from the plant to retrofit the vehicles. In addition to the fuel tank with a range of 800 kilometers stipulated by the organizing committee of the competition, the heat dissipation effect of the engine should be enhanced, and the horsepower and torque should be increased. Replace the top engine oil imported from abroad and strengthen the chassis girders. Add double-layer beams, increase suspension travel, and more. ”

"So many modifications...... Is the Great Wall down? Yang Yun couldn't believe it. He only knows that Great Wall started as a pickup truck, but now it seems that he has not seen a production model roll off the assembly line.

Zhao Yongping was very sure and helped to say good things: "I have been to the real yàn room of the Great Wall factory, they are preparing to launch a mass production pickup truck the year after tomorrow, and next year's Dakar Rally is a good opportunity to test the quality of the product, not to mention how many rankings it gets, as long as it can be completed safely, it is enough to show that the quality of the Great Wall pickup truck is good, this is the best advertisement." ”

"Hah!" Yang Yun laughed: "If that's the case, their engineers will definitely kill this test vehicle." There are more than 60 modification clauses officially allowed for the Dakar Rally, and now they are busy! ”

Zhao Yongping laughed: "That's right! Moreover, the Great Wall is in Baoding, and the capital has issued a death order to get the participating teams out at any cost. In order to ensure success, some senior technicians were transferred from other factories by administrative means, all of whom were technicians from Nissan and Mitsubishi to help the Great Wall, making it as ...... as a domestic automobile battle."

"Hey, when can I let Chinese car companies send technicians to Japanese factories to guide the work. Okay, that's it for now! The most important thing is to ensure the safety of personnel, and then bring enough on-board cameras and maintenance accessories, and be sure to shoot the real scene of the rally! After Yang Yun explained this, he came to the test center again.

The 3D game engine of "Stereo No. 3" is in the final run-in period, and after Zhang Guoqiang's research team got the latest physical modeling from KTT Suzuki Yu, it cooperated with the real yàn room of the Department of Physics of Tsinghua University to carry out a number of action model simulations at the same time.

Looking at the schematic animation of the rolling trajectory of a cuboid object simulated on a computer screen, Yang Yun frowned and asked, "This is a model of an object rolling on a flat ground, right?" It seems a bit simple! ”

Zhang Guoqiang nodded: "Yes, the running speed of the object, the collision angle, centrifugal force, friction force, and various parameters can be set in, which can perfectly simulate the results of the collision of two cars in a speeding drag race." ”

Watching Zhang Guoqiang open the source code, he found a long list of functions with the same function name and different parameters, but the same function.

This programming pattern is called refactoring, such as a function called "tumbling", and it can come in four forms.

Tumbling (no parameter), Tumbling (parametric 1), Tumbling (parametric 1, parametric 2), Tumbling (parametric 1, parametric 2, parametric 3), parametric 1 is a roadblock, parametric 2 is a vehicle obstacle, and parametric 3 is an environmental property.

Then in the game, the vehicle is out of control due to the centrifugal force of high-speed cornering, and you can directly call the program Roll (no parameters), and you can see the standard rollover animation.

When you hit a roadblock and hit other vehicles, the player's vehicle rolling effect is slightly different from that of rolling (no parameters), the rollover model will add the physical trajectory of the roadblock and other colliders, and you need to use a complex physics model to simulate the animation of the roadblock being knocked into the air and several cars overturning together at the same time.

The parameters of environmental attributes are the same, rain, muddy ground, and icy ground all have a corresponding physical model, and the corresponding vehicle roll simulation animation is unique.

Of course, the function of vehicle rolling, far more than these four forms, the vehicle's own attributes, center of gravity, horsepower, torque, turning angle, the external environment may have more complex chain collisions, tire wear for too long, grip decline, etc., it can be said that there are countless parameters that affect the rollover effect.

Therefore, in order to realistically simulate the real environment, the "Stereoscopic No. 3" game engine needs more and more complete functions!

"These should be more suitable for urban supercars, the Dakar Rally terrain is too complicated, it doesn't collide, it's just a challenge with the cruelty of nature, and I hope you can make the models a little richer," Yang said. ”

The Dakar Rally is more demanding, a small sand dune, a broken wall, dead wood hidden under shallow sand, or simply a gravel and sand road that is several kilometers long, the impact on the vehicle is ever-present, and the "Stereo No. 3" engine needs to build more physical models out!

Zhang Guoqiang nodded and smiled: "We have already thought of this!" A year ago, we cooperated with the Department of Physics of Tsinghua University, and they helped to improve the object motion modeling of the three-dimensional No. 1 engine, "Tomb Raider" used No. 2, and now there is a No. 3 used in "Dakar Rally". ”

Next, he quickly explained the details of the cooperation between the two sides, interspersed with a few pedantic old master's jokes in the middle, which made everyone laugh non-stop.

"Well, pay attention to the patent issue, and the secrecy!" Yang Yun explained a few more words and motioned to Zhang Guoqiang to demonstrate "Tomb Raider".

"Tomb Raider" has been designed for half a year, and the entire program has been done last month, the program runs smoothly, the number of secret locations is abundant, the location is hidden, the animation CG and the story plot are complete, and it can be made into an installation package at any time, encrypted and burned to the disc for sale.

Before Yang Yun signed the Tongguò acceptance, the programmers in the Tomb Raider R&D team were working on a daily basis to modify code, test bugs, or port the new technology of Engine 3 to the existing version.

"Yes, the new SS joystick controller!" Yang Yun pinched the new SS controller with a joystick, pinched his fingers everywhere, and found the feeling of playing PS games in the Sony game room.

Although this handle is not his favorite style, it is enough for this era, and he can't wait to try the feeling of controlling the cursor with a joystick.

At the beginning of the game, after a spooky cutscene, the words "Tomb Raider 1 - Prequel to China" appear on the TV screen, and a female figure with big pigtails walks out and stands in front of a closed tomb gate, holding a gun.

Yang Yun's eyes widened and he carefully looked at this character model.

It's still composed of a large number of mosaics, but these mosaics are very small, compared to the forehead table xiàn force on the MD platform, it's already much better, after all, this is a 32-bit graphics card specially made by ATI for Longteng, and the graphics reconstruction ability is quite good.

Looking at the face that was seven or eight points similar to Angelina Jolie, and the concave and convex figure that was almost identical, or even more exaggerated, Yang Yun's mouth showed a smile, which he deliberately arranged this way.

In ten years, Julie can play Laura, which is a role tailored for her, but after the age of 30, Julie is old and does the stupid thing of cutting off the huge chest of herself, and then the second Laura will have to be replaced.

Chinese-style Tomb Raider game begins! (To be continued......)