Hi i try to render my model but the are no texture

First of all, welcome to the community! I hope that you enjoy your time here. :slight_smile:

How was your texture applied? Was it added in Blender, and if so, what method did you use for that? And finally, how did you export your model?

so I use this egg exporter: [GitHub - kergalym/PRPEE: Egg Exporter for Blender 2.8 and Panda3D (with or without RenderPipeline)] to export my file in blender and here the tutorial I follow Animated Mixamo model to Panda3D - YouTube i also use Maximo to rigging my model

Oh no, another person using PRPEE! >_<

Okay, first, please stop using that. It’s not intended for general use, I believe, but rather is tuned to its author’s purposes. As such, it may be missing features, or may not produce the output that one might expect.

For an overview of some of the available options, I suggest taking a look at this reference thread that I put together:
https://discourse.panda3d.org/t/exporting-from-blender-a-quick-reference/27511/39

Looking more closely at your screenshot, it also appears that you don’t have any lights present–what happens if you add a light? (The video to which you linked does this when loading a GLTF file, I believe, so you could perhaps look there for reference code to this end.)

this is what i get when i try to render GLTF file

Known pipe types:
wglGraphicsPipe
(all display modules loaded.)
:display:windisplay(warning): SetForegroundWindow() failed!
:assimp(error): class DeadlyImportError: GLTF: error while reading referenced file “angry.bin”
:assimp(error): Unable to open file “/d/Ai assistane/venv/Lib/site-packages/panda3d/etc/…/model/angry.gltf”.
:assimp(error): Unable to open file “/d/Ai assistane/venv/Lib/site-packages/panda3d/etc/…/models/model/angry.gltf”.
:loader(error): Couldn’t load file model/angry.gltf: all matching files on model path invalid (the model path is currently: “/d/Ai assistane/Project;/d/Ai assistane/venv/Lib/site-packages/panda3d/etc/…;/d/Ai assistane/venv/Lib/site-packages/panda3d/etc/…/models”)
Traceback (most recent call last):
File “d:\Ai assistane\Project\holo_model.py”, line 32, in
app = MyApp()
File “d:\Ai assistane\Project\holo_model.py”, line 14, in init
self.model = Actor(“model/angry.gltf”)
File “D:\Ai assistane\venv\lib\site-packages\direct\actor\Actor.py”, line 293, in init
self.loadModel(models, copy = copy, okMissing = okMissing)
File “D:\Ai assistane\venv\lib\site-packages\direct\actor\Actor.py”, line 1916, in loadModel
raise IOError(“Could not load Actor model %s” % (modelPath))
OSError: Could not load Actor model model/angry.gltf

I think that you may have to install the “panda3d-gltf” package in order for gltf-loading to work.

See here, I believe:

this actually work can i ask one more question that how can you to switch between animations thank you so much

1 Like

Simply play (or loop) another animation, I believe. Like so:

myActor.play("animation1")

# ...

# Some time later, when it's time to switch to another animation...
myActor.play("animation2")
1 Like

but can we control when the animation is switch like press R and then the animation 1 play, press B and the animation 2 play
thank you

Of course!

For keyboard control like that, just set up some key-events, and have them call a method of your own that plays (or loops) the relevant animations.

See the first section of the following manual-page for more:
https://docs.panda3d.org/1.10/python/programming/hardware-support/keyboard-support#keyboard-support

In your case, this would likely be handled by your ShowBase-derived class (since events are sent by DirectObject instances, and ShowBase inherits from DirectObject, I believe). Although you could also use some other DirectObject instance, if you wanted to do so.

1 Like