(don’t scare about the name view.py because it had to be something like Panda Viewer until I found it in the bin folder)
So, first(aka. TODO list Dany’s edition ):
1.)it’s big, it’s seriously very large text for this litlle code. I will make it much smaller
2.)It’s not “interactive”. Robo sayz: To add something interesting.
3.)Something like skybox needed
4.)Robo sayz…zzz: To add clouds. Nice&realistic clouds.
5.)Better lighting to go.
EDIT:
OK, I forgot there’s a bug or somewhat I didn’t like(I think it’s about the lighting colour) so I uploaded BAD version. Be free to edit.
hm… i dont really see anything except a shuttering glowing white ship.
the code itself seems to make strange things,too. from what i see the ships movement is not really moving the ship like you usualy would want it to move. try to load an environment to see the actual movement of it.
also note that .bam files are not compatible across panda-versions. if you distribute files. please use .egg files.
if you read the describtion of the “code snippset” forum you might notice it’s for !working! code only. so if you have bugs in it, or if you are not sure it works.please don’t post it here. having semi-broken code in this section can easily confuse users (especially less experienced users).
i mean ok it rotates. but it jumps forth and back quite a lot.
it’s just … i think what the code does is already in the manual and the samples (several times). well it’s a start, how about continue working on it and make something cool with it?
Nice piece of code.
The ship stutters too bad (I assume you wanted to simulate the ship’s engines running) but replacing the last line with this works better:
I think it’s because my framerate is so high (540 fps) that this somehow influences the camera movement.
The ship’s texture is missing, you need to ship it as well (the file references a texture “…/Textures/ship06.jpg” or something like that, or we’ll only see a white ship.
Yeah, the stutter gives a nice effect - but before I changed that line, there was way too much of it.
The .egg/.bam file does not contain textures itself - it only references them (e.g. contains a path to the texture). You still need to provide the texture files along with the model file.