Hi,
I am bob and I will be glad to assist you. (hehe no I am kidding though I will try to help )
I dunno completely that panda3d has simple primitives to build simple shapes? (This is an "I dunno, someone else will clarify this for us"sort of answer )
However I do know that panda3d abstracts the openGL/DirectX layer for you (this is a good thing)
A. It’s much easier for people to do things without playing with openGL or D3D…
and secondly it allows you to switch between openGL/DirectX as a rendering backend… so you could build up your whole game and if someone’s gfx card supports directx better than opengl, they simply change an option in a config file (or in your game, for that matter) and they now use directX, because your code (most the time) has no direct calls to either one.
panda3d uses the concept of “nodepaths” which is AMAZING imo.
I’ve yet to play around with the C++ side of panda myself yet, however I do know that things such as OnscreenImage, would allow you to build 2d sprites in the 3 render area, you can also use egg-texture-cards (command line tool) that basically takes a texture(s, for animations) and builds a 2d sprite model (basically)
After which you can make the appropriate call to loader, to load the model, and place it in the “3d” render node.
in C++ the call is something like window->loader->load_model(“path/to/model/without/dotegg/on/the/end”)
(you should look in the manual for that, inside the hello world example (moving the panda)
after which you should notice that the model has to be put under a render node, if you wanted it inside 2d space (that stretches) then you would say for ex: mymodel.reparentTo(render2d)
or for 2d rendering that goes with the window (aspect ratio)
mymodel.reparentTo(aspect2d)
or for the 3d render node, it’s simply called render
mymodel.reparentTo(render)
of course, the above probably look more like pseudo code to you, those are actually python code,so you’ll have to find the appropriate c++ ones, sorry I’m useless in that area, hopefully I answered a few questions though.
~powerpup118