Chapter 8 Source Code

He personally sorted out the laws in the 'Cyberpunk Real World'. And the most open disciplines in that world are biochemistry and informatics.

Therefore, how could Ji Zhen not understand computer technology.

Not only understand, but also very understanding. Many kinds of technologies that only exist in the imagination of human beings can be turned into reality in Ji Zhen's case.

"Really?"

Yu Banshan looked at Ji Zhen with suspicion, if he wanted to talk about mathematics and physics, he definitely admired the professor, and a lot of mathematical knowledge and physics knowledge could make him dizzy.

But he absolutely didn't believe that Ji Zhen also knew about computer technology, especially the technology in game engines.

"What, don't believe me?" Ji Zhen laughed, "Do you want me to talk about it?" ”

He didn't have the idea of pretending to be forced, but sometimes things just took the initiative to come to him, and he inadvertently completed the pretending.

Hey, it's all a last resort!

Yu Banshan said: "Okay, I really don't believe that the professor even understands computer technology. ”

After a series of keyboard strokes, Ji Zhen said: "For the time being, let's not look at the two subsystems you developed yourself, let me first take a look at the basic functions of your game engine." ”

There are many parts of the game engine, and several of the more important ones have a greater impact on the game.

Light and shadow effects, animation systems, physics systems, and rendering.

"Light and shadow effects, that is, the way the light source in the game scene affects the people and things in it. Basic optical principles such as refraction and reflection, as well as advanced effects of dynamic and colored light sources, are achieved through different programming techniques of the engine. ”

"Am I right?"

Yu Banshan nodded, "That's right, it's nothing, the important thing is technology." ”

"Don't worry, I'm going to talk about it next." Ji Zhen waved his left hand, but his right hand tapped on the keyboard with one hand, but it was changing the programming source code of the light and shadow effects.

"Your lighting and shadow effects should be pretty good, especially in terms of color light sources, the picture presented should be very impactful. However, you can't deal with a single light source, it looks too fake, and the form is single. ”

"The main thing is that your source code is too complex and redundant. If you continue to do it with this light and shadow effect, you will have to use a 1080Ti graphics card! Now is the time when mining is hot, the price of graphics cards has risen, do you think players will change graphics cards for this game? ”

If you want to achieve the ultimate light and shadow effect, unless you have foreign technology, you can only use the amount to pile up the quality.

Despite this, he still stiffened his mouth and said, "You can come, you come?" ”

This kind of elementary school student's logic on your line was directly said by him, obviously he had no temper in his heart, but he was unhappy.

Anyone who says that their hard work is useless will of course feel a little unhappy in their hearts.

Ji Zhen smiled slightly, and continued to type on the keyboard with his right hand, replacing the last line of code, but he didn't take Yu Banshan's words.

"Let's take a look at the animation system, there are two types of animation systems: the skeletal animation system and the model animation system. The former uses built-in bones to drive objects to produce motion, which is relatively common. The latter is a direct deformation on the basis of the model. ”

Ji Zhen shook his head, and began to start his poisonous tongue against the animation system again.

"I know you're from the computer department, not the medical department. But this skeletal animation is also too bad, right? And it looks very incoherent, isn't it ugly for animators to design actions based on your models? ”

"Players see the way the game character walks, and they feel the urge to uninstall the game."

Ji Zhen said at this time, but he didn't glance at Xiao Nai and the others at all, and even the fragrance from Bei Weiwei next to him was ignored by him.

He tapped his hands on the keyboard, changing the source code again.

Yu Banshan was about to speak again, but was stopped by the cold Xiao Nai.

"Third brother, what's wrong?"

At this time, Xiao Nai's face was a little serious, and his already cold face collapsed even tighter.

When Ji Zhen was talking about the light and shadow effects just now, Xiao Nai focused his attention on the display screen.

On that, the source code that he participated in knocking down was changed by Ji Zhen by sixty percent. Not only is the number of changes huge, but the speed is incredibly fast.

As if you don't have to think about it at all, the source code is changed line by line.

He is not the kind of ignorant person, on the contrary, although he is cold, he has self-cultivation. did not quarrel with Ji Zhen like Yu Banshan. Instead, when Ji Zhen changed the source code, he focused his attention on the modified code.

Because Ji Zhen changed too quickly, and Xiao Nai still had to think about it in his mind, it wasn't until he talked about the animation system that Xiao Nai sorted out the new source code of the light and shadow effects in his mind.

Yes, brand new code!

It seems that Ji Zhen only replaced sixty percent of the source code, but in the eyes of Xiao Nai, a master of computer technology, all the sixty percent replaced are core code. And those that are not replaced, on the contrary, are irrelevant.

"If you look at it seriously, Professor Ji does understand computer technology, and he is better than me."

This time, Xiao Nai is completely convinced!

In terms of computer technology, which he is best at, he was defeated by Ji Zhen, and he lost convincingly.

The new code for light and shadow effects is so powerful!

It can be said that this kind of light and shadow effect is stronger than the 3A masterpieces abroad. Not only is it stronger in terms of effect, but it is also less demanding for the graphics card.

For the same effect, the 3A masterpiece requires 1080Ti, but it only needs 1060Ti.

Xiao Nai's words fell, and his other two roommates, Qiu Yonghou and Hao Mei, also nodded in cooperation.

They also saw the changed source code, and although they didn't see as far as Shaunai, they could see part of it.

"Your physical system is doing a little bit poorly!"

Ji Zhen's unceremonious words spurted out of his mouth again, and to his surprise, no one came to object.

Turning his head, Xiao Nai and the others all moved chairs and sat down next to Ji Zhen.

If there is a deficiency, it is necessary to learn.

Xiao Nai was the first to ask, "Professor, what do you say?" ”

"It's too scattered, you have a lot of physical values, and they're very detailed. But overall, it's too scattered. If you tie these details together, it will be much smoother. And it will also take up fewer resources. ”

Yu Banshan immediately interjected, "We have also thought about this method, but the way of linking it is equally complicated, and if it is related in a complex way, the resources occupied will increase." ”

Ji Zhen smiled, "This needs to find the right way." ”

As he spoke, Ji Zhen tapped with his ten fingers, and in less than five minutes, he was done.

"I call it a three-dimensional spider web connection system, which not only ensures the stability and consistency of the values, but also ensures the accuracy of collision detection."

Yu Banshan only saw the lines of code flowing, and wanted to understand it carefully, but his eyes couldn't keep up with the speed of the code.

"Don't worry, after I upgrade your rendering, you can learn it carefully."

At this time, Ji Zhen completely incarnated as a teacher, and in his words, he said to Xiao Nai and the others from a lofty position.

Rendering is one of the most important functions of the engine, and when the 3D model is created, the artist will assign material maps to the model according to different faces. This is equivalent to covering the bones, and finally through the rendering engine, all the effects such as models, animations, light and shadow, and special effects are calculated and displayed on the screen.

The rendering engine is the most complex of all the components of the engine, and its power directly determines the quality of the final output.

Ji Zhen suddenly asked while tapping on the keyboard to upgrade the rendering function, "By the way, is your engine used for single-player games or online games?" ”

There is still a difference between the engine of a single-player game and an online game.

"Online games, of course."

"Which company are you looking for?" NetEase, Tencent, Perfect, Snail? ”

Even if Bei Weiwei is added, there are only five people, and Ji Zhen estimates that they should find an agent to run this game.

Otherwise, the expenses are too great, and just the server can overwhelm them.

Of course, they can also find angel investors to raise funds, in which case the shares will be diluted.

"We're ready to run it ourselves."

However, Xiao Nai's answer was exactly what Ji Zhen expected.

"How do you fix the server?"

If the quality of the online game is high and the gameplay is good, then the number of people is still very large, and the requirements for the server are also high.

"Do you use a cloud server?"

Xiao Nai shook his head, "In terms of funds, I still have a way." ”

Ji Zhen nodded.

"The gameplay planning of the game should be done with dim sum, don't make it the same as "The Moon Knife at the End of the World"."

Speaking of the game planning of the Tianya Moon Knife, he was scolded to death by the players.

The game's actions, graphics, light skills, costumes, etc. are all good, but the gameplay is too fucked up, endless daily life!

It is known as the Tianya Daily Knife by players.

"Alright, you guys give it a try."

After modifying the light and shadow effects, animation system, physics system, and rendering functions, Ji Zhen only took half an hour.

"Because I changed the source code, your previous problem no longer exists. So, now you guys try again! ”

This game engine was originally developed by Xiao Nai and the four of them, although Ji Zhen has modified it, there is no change in function.

Yes, they each started the test.

At this time, Ji Zhen stretched his waist, stood up from the chair, and looked at the clouds in the sky through the window.

"Professor, when did you learn computing?" Xiao Nai tested the four, but Bei Weiwei stood beside Ji Zhen and asked curiously.

Ji Zhen smiled slightly, showing a charming side.

"I started learning it very early, but I always played at home, and I never showed it in front of outsiders."

Ji Zhen thinks that he is still more empathetic, and lengthens his learning process, so as not to leave a shadow in his heart to the students in the computer department.

"Confidential!"

Uh-huh.

Bei nodded slightly, and she suddenly felt that her heart was not so strong. The figure that was consumed in my heart seemed to begin to emerge again.

Shaking his head fiercely, Bei slightly expelled this thought.