Aha, now it works. I am amazed!!! enn0x, will you update it with some new features like improved water, reflections and so on? It could be great tutorial for all, I think.
Assertion failed: !((To *)(this->_void_ptr))->empty() at line 324 of built/include/pointerToArray.I
Is it me messing up my panda installation, or a bug in panda?
I have no clue why it is occurring, and the assertionerror doesn’t give me one either.
I just tried it with panda 1.4.2. I get a different error, but maybe somehow related. The thing is that the model “sky” is there only as a bam file, so prolly my newer panda version can’t handle it.
Could be another broken piece on Linux. What call is causing that ?
@Laurens: You need to change every loader.loadModel call and add .bam.pz to every model name, then it works (at least here). Oh, you will also need to fix that const windowsproperties thing to make it work.
@ynjh_jo, its the loadModel call of the grass loading stuff. The model path is correct – when I change it to something wrong it fails with a NoneType error. But when the path is correct it just plain fails loading with this assertion error.
Hmmm… this demo is quite old, done for Panda3D 1.3.2 if I still remember right. Several things have changed by now, for example the way you have to specify a file for loading a model. Using .bam files for a demo has been a mistake, since .bam files are version-dependant. You guys are right, it is time to update the code.
On the other hand, there are several things in this demo which I would do different by now. For example creating all the grass geometry in Python and then saving them to .bam files. I will see to it, but I am afraid it will be a few weeks before I find enough time (quite busy with my new job).
enn0x
aw the downloads are gone? I accidentally deleted my copy of this demo, and now the download links aren’t working.
If anyone who has this demo could post it here to download or PM me to send it to me that’d be great!
slightly modified :
ynjh.panda3dprojects.com/other/Demo-Nature.zip
The bams are too old for Panda to laod. Could you maybe convert the bam to egg?
Thanks people who sent me the demo, and thanks ynjh for posting a new download here!
As pro-rsoft mentioned, while the demo looks great in Panda 1.5.4 on Windows, the .bam files won’t load on any other platform. If the original files aren’t posted as eggs by the time my spring commitments edge off, I might just redo the models myself as a way of practicing working with .egg files.
Hmm, if they load fine on your Windows XP machine, you can bam2egg the stuff there and copy the .eggs to your Linux machine.
oh there’s a bam2egg? Didn’t know that, I’ll try it later.
ADDITION: Just converted all the models and put them here
box.net/shared/fkke9b1lsc
I must say, it’s a good thing I know how to write a script to run bam2egg automatically, because apparently each bit of grass is a separate model that needed to be converted.
Obviously you need to edit the python code in a couple places for the demo to load the correct models.
Incidentally, as long as I’m talking about editing the demo code, how do you adjust the sky color? I figured that’s set by _sky near the top of the code, but adjusting that isn’t working the way I expect; clearly it’s not as simple as the RGB value for the color of the sky, more like a multiple that’s used by the shader somehow. The sky is too saturated right now, so I want to see what it looks like with a color more like RGB 200,200,255
thanks a lot, nice job, very fast.
ooh man that’s very awesome , very wonderfull
helped a lot , thank you
Hate to bring up an old topic, but does anyone still have a working link to this code?
I’v notices a lot of dead links in panda3d demos/tutorials, which is a terrible shame.
For instance a lot of these aren’t working:
panda3d.org/manual/index.php … d_Examples
Here you go:
dl.dropboxusercontent.com/u/199 … Nature.zip
Thanks a lot!
Also seems to be exactly what i’ve been looking for
Does anybody still have a working link / zip file of this demo available?
I looked everywhere on all my flash drives and I cannot for the life of me find this demo. I know I had downloaded it at some point and figured it would be on there, but I cannot find it anywhere. It’s sad; I remember this demo being really good.
I did however, find some things related to the nature demo. I made a large collection of open source panda3d projects that I was concerned would be removed from the web a while back. I found this folder of nature demos (Panda3D-Project-Collection/demomaster-0.8/demo_nature at master · christislord12/Panda3D-Project-Collection · GitHub) and looking at the comments in the code, it appears that some of the code was indeed taken from the Panda3d Nvidia nature demo. This was part of the DemoMaster and would take quite a bit of work to get working with a modern version of panda3d.
I also found Yarr (Panda3D-Project-Collection/Yarr at master · christislord12/Panda3D-Project-Collection · GitHub) which also says it contains code from the Nvidia nature demo.