Page 5 of 8
Posted: Mon Mar 06, 2006 7:23 am
by Xaron
Thank you, bitplane!
Regards - Xaron
Posted: Sun Mar 19, 2006 7:49 pm
by dawasw
Bitplane I would like to use your grass in my project Journals of Celriech.(name will be changed soon)
I have already combined your grass glass with my source with 0 problems.
The thing is I use a milkshape 3d generated heightmap for terrain. That is because I'm storing my terrain in a 3d format than heightimage -> to have better physics with newton (terrains in irrlicht are causing some issues with newton);
So in game I have a 3d model of my terrain as world and I would like to add grass on-to it. I also have my heightmap image. (please note that I scale terrain in Milkshape)
Hmm when I create grass It is created only on the heightmap (on the little heightmap image); so how would I resize the heightmap image to get effect I would like to have ?
Posted: Tue Mar 21, 2006 6:34 pm
by bitplane
currently the whole Create() function is a bit of a mess, it really needs a rewrite. You *should* be able to work around it (quick and dirty) by moving and scaling an empty node and passing it to the grass instead of the terrain.
and while i'm posting, thanks for all the feedback guys

Posted: Wed Apr 26, 2006 1:46 pm
by etcaptor
// i give up. terrain pivot and position are different.
core::vector3df xz(p.X/Terrain->getScale().X,0.0f,p.Z/Terrain->getScale().Z);
@ bitplane, I saw this in your source. Do you resolve this problem?
I use similar technique for align in my project because it's faster then collisionPoint for terrain. This can resolve this problem:
Code: Select all
xz((p.X - Terrain->getPosition().X)/Terrain->getScale().X, 0.0f,
(p.Z - Terrain->getPosition().Z)/Terrain->getScale().Z));
Posted: Tue May 30, 2006 1:15 pm
by Lo_Ord
Hi!
First off all: Great work with that Scene-Node!
I tried to implement it into a project I'm working on, but I get some error messages:
If I'm trying to create pointers to IWindGenerator and CGrassPatchSceneNode", I'm getting errors, saying that "IWindGenerator" or "CGrassPatchSceneNode" are not members of irr::scene. Still, if I type irr::scene:: (using MS Vs 2005), IWindGenerator and CGrassPatchSceneNode show up correctly...
I tried to rewrite your source-files to fit them into our namespace, but then I'm getting an "external could not be resolved"-error, which makes it nearly impossible for me to track the error down...
Any suggestions?
Posted: Mon Sep 18, 2006 5:00 am
by Sundar
Hi
is there any way to control the height of the grass being generated. i tried this and i am struck pls help
Thx
Posted: Tue Sep 19, 2006 7:43 am
by Xaron
Hi,
this question is answered on page 3 by bitplane:
Look for:
Code: Select all
core::dimension2d<f32> size(rand() % 40 +50, rand() % 60 + 50);
Regards - Xaron
Posted: Fri Sep 22, 2006 11:04 am
by Sundar
Thanx i didnt see it. sorry about that. i ll try it in my home. thnx
Posted: Thu Oct 05, 2006 4:40 am
by trunks14
wow it is truly fast!!!
In my humble system (AMD Athlon XP 1.7Ghz, 256 RAM, ATI Radeon 9550 256 VRAM) it is like 60+ fps nomally (with default settings)
And considering you normally don't need a great terrain full of grass, this is great, i'll use it whenever i make a RPG
Grass Scenenode
Posted: Fri Jan 26, 2007 11:00 pm
by madoc
Hmm is the node no longer available? link seems dead
Posted: Fri Apr 27, 2007 11:57 am
by gunnicom
Like madoc said. Node is not available. Is there any way to get it somewhere?
Posted: Fri Apr 27, 2007 2:01 pm
by BlindSide
Posted: Fri Apr 27, 2007 3:54 pm
by gunnicom
thx
Posted: Sat Apr 28, 2007 3:24 pm
by Holiday
Hello,
I try to compile, but i get this error:
Code: Select all
45 G:\Dev-Cpp\IRRLICHT\irrlicht-1.3\examples\##GAME##\Grass\CGrassPatchSceneNode.h conflicting return type specified for `virtual irr::s32 irr::scene::CGrassPatchSceneNode::getMaterialCount()'
334 G:\Dev-Cpp\IRRLICHT\irrlicht-1.3\include\ISceneNode.h overriding `virtual irr::u32 irr::scene::ISceneNode::getMaterialCount()'
So i changed the s32 to u32, and i didn't get this err anymore,
but i get a different one:
When I init the Grass node, i do this?
Code: Select all
scene::CGrassPatchSceneNode** grass;
How to fix it?
Posted: Sat Apr 28, 2007 3:50 pm
by monkeycracks
Go into CGrassPatchSceneNode.h
Change s32 getMaterialCount() to u32 getMaterialCount()
Also change it in the CGrassPatchSceneNode.cpp