someone can tell me how can i put some photo that i make??

i try for hours to add some jpg bmp
or to create a egg file

but i dont know how to do it
i try to add something like this

www2.warwick.ac.uk/services/fina … s/road.gif

tnx.

panda3d.org/manual/index.php/OnscreenImage

Perhaps an onscreen image?

i dont know where i need to put the
jpg file

i mean i dont know which directory i need too put the file

You can put it wherever you like. You will then write a program that loads it from wherever you put it, and displays it onscreen (or whatever you want to do with it), for instance using an OnscreenImage.

Your question suggests that you might be confused about the nature of Panda. Please note that Panda is not a point-and-click graphics editor. It is a set of libraries for writing programs. Please read the introduction section in the manual for more information.

David

seconde
i know!!!
i write a few softwere in my life
and i look on the manual but,
i didnt find how i need to put the directory
in the code
look, this what i write:

from direct.showbase.ShowBase import ShowBase
from direct.task import Task
from direct.gui.OnscreenImage import OnscreenImage

class MyApp(ShowBase):
def init(self):
ShowBase.init(self)

imageObject = OnscreenImage(image = ‘try.jpg’, pos = (-0.5, 0, 0.02))

app = MyApp()
app.run()

but stil it’s not start the program
i put the try.jpg allmost in all the directory

what do you say?

I’m sure no offense was meant. But perhaps you aren’t as familiar with python?

Do you mean that the program doesn’t start or that the image doesn’t show? For what you wrote, the image is in the same directory as the python file which presumably contains what you wrote down there. I don’t think you need to import “Task”, and I can’t see any indents.

you right i don’t know python!
i try to learn now i have some project to make in my university

any way i meant that the program don’r dont start
the log says

"
[ Fri Apr 16 00:20:25 2010 ] Correctly saved C:\Panda3D-1.7.0\mystuff\mytest.py as ascii
[ Fri Apr 16 00:20:27 2010 ] Traceback (most recent call last):
File “plugins\documents.pyc”, line 205, in OnPageChanged
AttributeError: ‘MyShell’ object has no attribute ‘loaded’
Process started, pid:2720
Process Ended, pid:55947888, exitCode: 0

grrrrr
plz helppppppp

This appears to be an error message from whatever IDE you are using to run your program. It is not an error message from your program itself.

What IDE are you using? I’m not familiar with it.

Have you tried just saving your program to a text file and running it from the command line, as described in the manual? That’s the most fundamental way to run a Python program. Get that working first. Once you have that working, then you can try to figure out how to use a particular IDE.

David

i run it from the cmd
ans it’s say:
“indentation error:unident does not match any outer indentation level”

now i try to find some explntion to this shit
but i thing that this is requires a broad knowledge of Python
What do you say?

you know what the problem

It means you haven’t been consistent with your indentation. Unlike other languages which ignore whitespace, Python uses whitespace as an important part of the syntax. It’s therefore important to use consistent indentation, and if your tabs aren’t consistent, it won’t run.

David

but now i try to add the panda walk,
but he all the time behind the picture that is hiding him.
How to do a background image to use increasingly Panda?

from direct.showbase.ShowBase import ShowBase
from direct.task import Task
from direct.gui.OnscreenImage import OnscreenImage

class MyApp(ShowBase):
   def __init__(self):
      ShowBase.__init__(self)
      imageObject = OnscreenImage(image = 'try.jpg', pos = (-0.5, 0, 0.02))



app = MyApp()
app.run() 

That is the correct indentation I believe.
For that last thing you posted, these are the steps I would do:

  1. I would use a model of a flat plane (I’ve heard of something called “Cardmaker” but haven’t used it, might be worth looking into).
  2. I would load the image as a texture and set it to that model.
  3. I would position that model of a plane behind the panda.
  4. I would at least try to be as clear and polite as possible when asking for help.

Or a quick search turns this up. https://discourse.panda3d.org/viewtopic.php?t=5595&highlight=background+image

I’ll write in credit
Support: bigfoot & drwr

Really helped me
From now on, I believe I understand how things work,
If I have your help again I will continue to drive you crazy

Thank you very much :slight_smile:

:smiley:
How about just support from the forums?