Hi All,
I’m trying to get to grips with panda3d. I’m using it in Ubuntu 64bit and scripting with python (of course). I have a number of questions/issues that I can’t seem to easily find answers for.
I’m loading terrains using heightfields from png files, which I generated using L3DT. Doing one piece of terrain and texturing it with one texture works fine. Now, if I want to make a large terrain, it will require either, using multiple heightmaps, each with their own texture OR using an enormous heightmap but with multiple textures (in order for decent detail). I’m assuming trying to use very large heightmaps / textures is bad in general.
-
So my first question is, how do I stitch them together? Can GeoMipMap do this? Do I have to specify the coordinates in 3D space manually for each terrain block?
-
Say I have a terrain made up of grass/water/rock/sand. Can I use small textures and use a sort of masked array to only texture some areas with a given texture?
-
I made a terrain using a 1024x1024 heighmap. I didn’t scale it in the code, hence the coordinates in the X-Y plane goes from 0-1024 right? (or maybe not?) I also loaded another model and I make it move at 100 units per second. This all works fine but my model jumps back and forth rapidly. I can’t figure out why this is happening. I’m updating the model’s coordinates directly using self.myModel.setPos() at every frame.
Any help will be greatly appreciated. I’m having some other issues too but I suppose these are teething issues due to my lack of Panda knowledge.