I have having trouble loading models and scenerys into the editor.
I have tried to load things and It is saying file not found even when the file is in exact location. I am in need of help of fixing this and can someone send me the code to actually load a map so I can test it out. For example if I had a building to walk in how would i load that. TY for helps.
EDIT: It says attribute error. What does this mean.
Here is what I would figure out to do. Please help me and tell me what
I did wrong.
All I am trying to do is make the box and make it appear so I can look at it.
import direct.directbase.DirectStart
Panda is case-sensitive by default. So make sure that you are using the correct case. E.g. if the filename is actually Object.egg, not object.egg, you have to load it with loadModel(‘model/Object.egg’)
It helps to be explicit with filename extensions too. If you’re loading an egg file, say so: loadModel(‘model/object.egg’)
You’re loading a file from a relative path. Are you sure of the directory you’re starting from? Make sure that you’ve got “.” on the model-path search list, which stands for the current directory (if that isn’t there, it won’t find it). You can put it there by putting:
model-path .
in your Config.prc file. In the meantime, you can prove that this is or isn’t the problem by using a full path, that starts with a slash and a drive letter, something like: loadModel(’/c/myFolder/myOtherFolder/myStuff/model/object.egg’).
If you show us the exact output of your program, including all error messages, it might give us some more clues.
That is my new code wich does work but the box (model) does not show up.
The big grey application box still shows up.
I do not know why this doesnt work since that is what I am told to do.
I do not have any errors when I run this and the only thing wrong with it is it does not show up. Any help?
The model is still not showing up but everything else is still working(gray box still comes up ).
I changed the 0’s to 2’s just for test purposes.
Gotta go to school bbl
Oh, you’re loading the standard box.egg that comes with Panda, of course. That’s 1 x 1 x 1, so maybe I had you put it too far away–it would be tiny at 100 units away.
I did that and no It is not the same model, it is different. I loaded model object.egg wich is a box so I named it box loool.
I did that and it still did not show up. I do not know whats wrong anymore since you dont find anything wrong with it other then pos. Maybe he did not give me a accurate model or maybe it is possibly grey. How are textures loaded in?(If that is the case lmfao)