Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

About the materials format. #2

Open
Danny1451 opened this issue May 14, 2019 · 3 comments
Open

About the materials format. #2

Danny1451 opened this issue May 14, 2019 · 3 comments

Comments

@Danny1451
Copy link

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

@GabLeRoux
Copy link

GabLeRoux commented Sep 15, 2020

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
Copy link

rdb commented Sep 15, 2020

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

@lettier
Copy link
Owner

lettier commented Sep 15, 2020

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.

馃憤

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants