A few questions...

I’ve just started fooling with Panda3D and i have a few questions:

  1. how do you creat a Node group? Do you need a node group for an object to appear in the engine?

  2. how do you insert lights into a scene?

Thanks you.

both questions are answered pretty well by the manual (link above).

(1) panda3d.org/manual/index.php/The_Scene_Graph - read it and love it :slight_smile:

(2)http://panda3d.org/manual/index.php/Lighting

What nemesis said ^^

Thanks for the links. I was wondering:

I inputted this code:

import direct.directbase.DirectStart# Start engine
import math
from pandac.PandaModules import *


m=loader.loadModel("/c/Documents and Settings/Owner/My Documents/game data/Island setup_battleground.x")
m.setPos(0,-38,0)
m.setScale(0.25,0.25,0.25)
m.reparentTo(render)

base.trackball.node().setPos(0,-38,0)


run()

when I run it, I still get the traditional grey window. no model is shown. Any help?

That’s because you’ve placed the trackball inside the model.

took your advice…unfortunately, there is no difference:

import direct.directbase.DirectStart# Start engine
import math
from pandac.PandaModules import *
from direct.task import Task
from direct.actor import Actor

base.setBackgroundColor(0.0,0.3,0.0)

kon=render.attachNewNode("Dunce")

def model():
    m=loader.loadModel("/c/Documents and Settings/Owner/My Documents/game data/Island setup_battleground.x")#all one line
    m.reparentTo(kon)
    m.setPos(0,2,0)
  

def model2():
    mo= loader.loadModel("/c/Documents and Settings/Owner/My Documents/gamedata/funch.x") # all one line
    reparentTo(kon)
    setPos(1,1,1)


def cam():
   base.trackball.node().setPos(0,0,4)


run()

I’m really sorry. this is my first time working with a game engine so it’s mad frustrating. Sorry if I’m asking mad dumb questions.

i see 3 functions but no calls o.ö
is that the whole code?

EDIT: Found out the problem. Scale wasn’t large enough to see.