I have made for a test a basic cube and made it a simple material only by changing RGBA…still no material export (like in chicken’s documentation says), how come, am I doing something wrong?
I have the last version of blender and he recognises python! The last version of chicken! And I simply export on .egg yet when I run my program, nothing!
You have to add lighting to your scene in order to make materials appear.
However, instead of assigning a color in the material, it’s better to assign a color using vertex colors. I believe blender offers functionality to paint vertex colors on the model. This approach works without lighting setup and is (I think) even a tiny bit faster.
Yep I tested it now and with programed lights and it works. It would be nice to say in the Panda3D manual somewhere that RGBA does not work without lights so others to not ask these dumm questions.
Mybe this post is a little bit old but im having similar problems. I thought chicken was not exporting the materials and procedurals textures, so I read this post about lights.
Just placed a light but the rectangle is not showing the way it should :
[SPOILER]
[/SPOILER]
I cant get the spoilers to run dont know why
Well the matter is that the rectangle having the light is not being viewed correctly, paste the code here, maybe im not using the correct light :
"
import direct.directbase.DirectStart
import direct.directbase.DirectStart
from pandac.PandaModules import *
#Load the first environment model
environ = loader.loadModel(“models/pruevas/pirenaia3”)
environ.reparentTo(render)
environ.setScale(0.25,0.25,0.25)
environ.setPos(-8,42,0)