Thank you drwr. That sounds good. I tried to implement it, but I still have some trouble with adding a texture to my NodePath (or let me say find the c++ names of the necessary python functions…).
I have this NodePath that will be my skybox (a scratch):
NodePath skybox = NodePath("skybox");
skybox = pWindow->load_model(pFramework->get_models(), "box");
(By the way: is there an synonym to pythons “loader.load_model(“filename”)” in c++, I mean its just a wrapper isn’t it?)
In the manual they say:
Texture tex = loader.loadCubeMap("");
How is it done in C++?
@drwr:
what is nodePath.set_bin(…) for? I didn’t find it in the C++ Reference of NodePath. Is your parameter “background” an imagefile like “skybox.png” ?
If I have a Texture tex, how can I admit it to my NodePath?
I’m sorry, this all looks like being very basic but I was not able to find something suitable in the forums via search and time is running…