香港新手遊戲開發者論壇

 找回密碼
 立即註冊
查看: 14420|回復: 0

Panda3d教學(二)安裝Panda3D在Windows系統上

[複製鏈接]

16

主題

29

帖子

220 小時

在線時間

版主

Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7

積分
378
發表於 2019-12-5 17:49:55 | 顯示全部樓層 |閱讀模式

馬上註冊,結交更多好友,享用更多功能,讓你輕鬆玩轉社區。

您需要 登錄 才可以下載或查看,沒有帳號?立即註冊

x
本帖最後由 小丑遊戲 於 2019-12-5 06:37 PM 編輯

官方教學鍊結:https://www.panda3d.org/manual/?title=Installing_Panda3D_in_Windows
漢化教學帖子前言(第二層):http://power-plant.dlinkddns.com/newplayer-hk/forum.php?mod=viewthread&tid=966&extra=page%3D1

If you have already installed Panda previously, you should uninstall it before installing a new version. Once your machine is clean of all previous versions of Panda, you should download the windows installer from the download page. Run the installer, and follow the prompts:



After installing Panda, you should run the sample programs to verify that the installation is good. Under Windows, the easiest way to run a sample program is to find it in the Start Menu:



But you can also run a sample program manually, using a command prompt.
Open a command prompt, then change directory to the location where you installed Panda. Then, change to the samples subdirectory. There, you will find a large number of samples:





Change directory into one of the sample program directories, then use Python to run the sample program in question:





If the test programs don't run, then usually, you need to update your video drivers. If you want to know exactly why a program didn't run, you may need to run it using the command prompt - this will enable you to see the error messages.


如果看到這些錯誤的訊息時要怎麼作:

display(error): The application requested hardware acceleration, but your OpenGL
display(error): driver, GDI Generic, only supports software rendering.
display(error): You need to install a hardware-accelerated OpenGL driver, or,
display(error): if you actually *want* to use a software renderer, then
display(error): alter the hardware/software configuration in your Config.prc file.
display(error): Window wouldn't open; abandoning window.


This error is fairly self-explanatory: it means your video drivers are inadequate. Obtain better drivers.

如果看到這些錯誤的訊息時要怎麼作:

python is not a recognized internal command

This error message means that the command prompt was not able to locate python. Normally, during the panda installation process, the PATH environment variable is configured to indicate the location of python. However, some PCs have unusual security configurations that prevent the installer from modifying the PATH. This can result in the error message shown above.
To solve this problem, it may be necessary to modify the PATH manually. Click on the "My Computer" icon on your desktop and select Properties. Choose the tab "Advanced". Click the Button "Environment Variables":



If you have administrator access to the PC, select the PATH line in the list under System Variables, otherwise, select the PATH line in the list of personal environment Variables.



Now double click the PATH (or Path) line. a small window opens containing a series of directories separated by semicolons. Add Panda3D's bin and python directories to the end of the PATH.



It may be necessary to log off and log back in to obtain the updated settings.


您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

手機版|Archiver|植物油氣

GMT+8, 2024-9-20 07:08 AM , Processed in 0.059146 second(s), 21 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回復 返回頂部 返回列表