GeoMipTerrain update task/function argument error [resolved]

Hi, I’m trying out the GeoMipTerrain module have followed their code for Dynamic Terrain here: … MipMapping.

However, I receive the following error for this code:

# Add a task to keep updating the terrain 
taskMgr.add(terrain.update, "update")
Traceback (most recent call last):
  File "./", line 54, in <module>
  File "linuxroot/usr/share/panda3d/direct/src/showbase/", line 2262, in run
  File "linuxroot/usr/share/panda3d/direct/src/task/", line 939, in run
  File "linuxroot/usr/share/panda3d/direct/src/task/", line 877, in step
  File "linuxroot/usr/share/panda3d/direct/src/task/", line 776, in __stepThroughList
  File "linuxroot/usr/share/panda3d/direct/src/task/", line 696, in __executeTask
TypeError: update() takes exactly 0 arguments (1 given)

Is the task manager expecting a function with arguments? Can I avoid this?

Thanks for any advice,

I found it in the docs. Use extraArgs = [].

More precisely we have to call :


Please mark as solved this thread. Is very useful.