lettier/3d-game-shaders-for-beginners

About the materials format.

Danny1451 opened this issue ยท 3 comments

Hi, the repo is awesome ! ๐ŸŽ‰
As I'm an iOS developer , and i would like to implement a Metal version with your tutorial.
But i have some problem with the materials , it's the Panda3D format like '.egg' , Could u provide the model file with the universal format (e.g. OBJ, FBX, 3DS, PLY, STL, etc.).

Well, Panda3d provides command lines to do conversion. If you really don'y want to install python on your computer, here's a Google Collabotary script which allows you to convert from .egg to what you probably want (ex; .obj):

https://colab.research.google.com/drive/1SpIwOZ4JLuX53-ZGjoHcB41XuH9paeaG?usp=sharing

Note that it could have been a couple of bash commands instead of a python script. I started from a script I found, not so clean, but it works.

image

Here I imported .obj files in a unity project.

image

Note that you may need to fix rotation when importing (x: -90)

Some related documentation:

Also note that there are many tools available in there:

ls /usr/local/bin/ | grep egg
bam2egg
dae2egg
dxf2egg
egg2bam
egg2c
egg2dxf
egg2flt
egg2obj
egg2x
eggcacher
egg-crop
egg-list-textures
egg-make-tube
egg-mkfont
egg-optchar
egg-palettize
egg-qtess
egg-rename
egg-retarget-anim
egg-texture-cards
egg-topstrip
egg-trans
flt2egg
lwo2egg
obj2egg
vrml2egg
x2egg
ls /usr/local/bin/ | grep bam
bam2egg
bam-info
egg2bam

โœŒ๏ธ

rdb commented

Hello,

To clear up any confusion, the included license only applies to the software and not the data or literature.

Thank you for your understanding.

๐Ÿ‘