example roaming-ralph problem

Hello, I started to begin with panda3d and I decided to rely on the example supplied with roaming-ralph, including in default panda installation.

But i have 4 questions, i’m in windows 10 with panda 1.9

  1. How insert sky in the map ?
    I tested with this code, but it’s not work:
self.skysphere = loader.loadModel("models/blue-sky-sphere")
        self.skysphere.reparentTo(render)

models/blue-sky-sphere exist.

  1. How to get the size of the map?
    I insert map with this code:
        self.environ = loader.loadModel("models/world")
        self.environ.reparentTo(render)
  1. What formats to create map and 3D model manages panda3d except egg?
    What software used to create models? egg or other formats supported by panda3d

  2. Can i fusion 2 environnement ?

        self.environ = loader.loadModel("models/world")
        self.environ.reparentTo(render)
        self.environ.setPos(0, 0, 0)
        self.environ.setScale(1.025)
		
        self.environ2 = loader.loadModel("models/world2")
        self.environ2.setPos(100, 0, 0)
        self.environ2.reparentTo(render)
        self.environ2.setScale(1.025)
  1. How is the skybox modelled? As a very large sphere that is turned inside out? Or as a small sphere?

It might be an issue of flipping the skybox faces (or calling .setTwoSided(True)) if you’re looking at the wrong side of it. Or, if it’s too small, you may need to increase its size with setScale. Or if it’s too large, you may need to increase the “far” distance of the camera using base.camLens.setFar.

  1. You can call getTightBounds() to return the dimensions as two points:
min, max = self.environ.getTightBounds()
dimensions = max - mins

dimensions will now contain the dimensions in the X, Y and Z direction, respectively.

  1. Panda’s main supported formats are .bam and .egg. Other formats (like .dae or .flt) are typically converted to .egg first.
    In the upcoming Panda 1.10 release, Panda will support many more formats.

  2. Could you elaborate on what you mean by “fusion”? You could reparent them to a shared dummy node and call flattenStrong() on that if you want to combine them into a single node.

ok thank’s for your answer.

For sky I download new sky and it’s work.

Or are what I can download map example egg or bam format ?