- jMonkeyEngine 3.0 Cookbook
- Rickard Edén
- 226字
- 2021-09-03 10:00:45
Importing a model
Let's start off with a pretty basic scenario. We have this model, which we've exported from a 3D modeling package, and we would like to use it for our game. The first thing we need to do is convert it to the format that jMonkeyEngine 3 uses internally (.j3o
). The recommended format to use is .blend
coming from the open source modeling package Blender for which the SDK has extensive support. Another common format is .obj
for static models and Ogre-mesh XML files.
How to do it…
We can import a model by performing the following steps:
- Go to the File menu and select Import Model.
- Next, we need to choose the project we would like to import.
- After selecting the actual model to be imported, we get to preview the model and can make sure that all the assets are properly used.
- Finally, we select where to place it in the Project Assets folder structure.
How it works…
The importer converts the model to the internal .j3o
format. This is a binary format, which means it becomes nonreadable (compare it with a .obj
file, which can be edited in Notepad). The compactness of a binary file is necessary to keep memory consumption low. It becomes impossible to edit externally, though, so keeping the original files organized is a good idea!
- HTML5 移動(dòng)Web開(kāi)發(fā)從入門(mén)到精通(微課精編版)
- Mastering OpenCV 4
- 飛槳PaddlePaddle深度學(xué)習(xí)實(shí)戰(zhàn)
- 劍指大數(shù)據(jù):企業(yè)級(jí)數(shù)據(jù)倉(cāng)庫(kù)項(xiàng)目實(shí)戰(zhàn)(在線(xiàn)教育版)
- Building Machine Learning Systems with Python(Second Edition)
- Apache Camel Developer's Cookbook
- scikit-learn Cookbook(Second Edition)
- Microsoft Exchange Server 2016 PowerShell Cookbook(Fourth Edition)
- 實(shí)驗(yàn)編程:PsychoPy從入門(mén)到精通
- MATLAB 2020 GUI程序設(shè)計(jì)從入門(mén)到精通
- Android技術(shù)內(nèi)幕(系統(tǒng)卷)
- SAP HANA Starter
- LiveCode Mobile Development Hotshot
- Go語(yǔ)言從入門(mén)到進(jìn)階實(shí)戰(zhàn)(視頻教學(xué)版)
- Visual C++實(shí)用教程