3d-game-shaders-for-beginners icon indicating copy to clipboard operation
3d-game-shaders-for-beginners copied to clipboard

About the materials format.

Open Danny1451 opened this issue 6 years ago • 3 comments
trafficstars

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.).

Danny1451 avatar May 14 '19 10:05 Danny1451

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:

  • https://docs.panda3d.org/1.10/python/tools/model-export/converting-egg-to-bam

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

:v:

GabLeRoux avatar Sep 15 '20 21:09 GabLeRoux

This may also be useful: https://github.com/rdb/blender-egg-importer/

rdb avatar Sep 15 '20 21:09 rdb

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.

:+1:

lettier avatar Sep 15 '20 23:09 lettier