Making the same game in threeJS and Unity

preview_player
Показать описание
Code:

Reference:

#gamedevelopment #gamedev #indiegamer #game #indiegamedev #gamedesign #gameart #gamedeveloper #indiedev #unity3d #unitygames #gameengine #beginners #threejs
Рекомендации по теме
Комментарии
Автор

Just wanted throw some info on WebGL Unity as I've been using it for quite a while and may have some insight that may be useful to others.. With Unity you get a lot of powerful features from the Editor that 3js simply does not have available. However, you'll need to optimize it for the web. In this video it may not optimized (real-time shadows are enabled, for one) and you can see the performance suffer in the comparison video. You also need to take a bit of time to optimize code stripping, textures, and things like that to get the build size down. That also means setting up gzip or brotli compression and the like. That being said, there are a lot of built-in tools, and if you're making a game Unity can save you so much time in not having to reinvent the wheel.

With 3JS the file size tends to be smaller / leaner as you're not getting a bunch of extra functionality included by default. Unity just compiles down to JS / WebGL anyways, but it tends to include some additional overhead for things like physics or even font rendering that you may not need. That adds to file size / initial loading, which is an important factor in the web. So 3JS builds are likely smaller to start with. They also feel a bit more native to me, and can handle web-specific content like gifs and glb loading, which Unity does not support by default.

I think they both have their uses and one isn't particularly better than the other for the web - they are just different tools better suited for different projects. I think if you only need web support and don't need to be able to build for other platforms, 3JS can be a great, quick-loading, performant option. If you're making a game or app that could greatly benefit from using the Unity editor, then Unity could potentially save you a lot of time.

beardedninjagames
Автор

I was calculating all the physics by hand. I'm going to study CannonJS now.

ViniciusValente
Автор

In threejs you can create web engine in web browser, which will create game (I use threejs for creating 3D editors mostly so I know), in unity you can make game, making another engine is incredibly hard....

DJenriqez
Автор

I think if you turned off gi/shadows on the car unity project would probably run way faster. Probably doubles the calculations.

multikillgames
Автор

wow thx dude this is easy to follow and learn, please make more videos just like this one 🙏🙏

Yuze
Автор

comparison of performance would be interesting to see

benjburg
Автор

If you do this in Rogue Engine (three.js) it's just as simple as with Unity.

beardscript
Автор

Thank you very much for the Video. Can u please tell us Which performs better Unity or Three js webgl?

creativeplanet
Автор

very good, but threejs has an editor, is very basic, but it works

ernestobarbaroalvarezgomez
Автор

Please make an elaborate video on three js and if possible how to integrate them with libraries like react or angular.

mayukhchanda
Автор

are you actually talking? or is this an AI?

stephenjayakar
Автор

I think the threejs version looks better.

prokeikas
Автор

Why mess around with three.js when Unity can export webGL? I am not getting it.

RayHorn
welcome to shbcf.ru