Grass Node v0.3.x
Help compiling in Linux
Hi all.
I'm trying to compile the GrassPatchSceneNode
here's output:
------------------------------------------------------------------------
main.cpp: In function ‘int main()’:
main.cpp:311: error: ‘ALLOW_ZWRITE_ON_TRANSPARENT’ is not a member of ‘irr::scene’
--------------------------------------------------------------------------------------------------------
any ideas?
I'm trying to compile the GrassPatchSceneNode
here's output:
------------------------------------------------------------------------
main.cpp: In function ‘int main()’:
main.cpp:311: error: ‘ALLOW_ZWRITE_ON_TRANSPARENT’ is not a member of ‘irr::scene’
--------------------------------------------------------------------------------------------------------
any ideas?
Not working with 1.5 - app crash
After that i have changed: height sth with getting height to found on the forums:
working but very buggy. My terrain is scaled and grass is like on the sky when terrain is lower in y than 0.
It seems not to listen to grassmap i made
After that i have changed: height sth with getting height to found on the forums:
Code: Select all
f32 ay = TerrainHeightMap->getPixel(x1,z1).getBlue()* Terrain->getScale().Y;
f32 by = TerrainHeightMap->getPixel(x1+1,z1).getBlue()* Terrain->getScale().Y;
f32 cy = TerrainHeightMap->getPixel(x1,z1+1).getBlue()* Terrain->getScale().Y;
f32 dy = TerrainHeightMap->getPixel(x1+1,z1+1).getBlue()* Terrain->getScale().Y;
f32 u = xz.X - (f32)x1;
f32 v2 = xz.Z - (f32)z1;
height = ay*(1.0f-u)*(1.0f-v2) + by*u*(1.0f-v2) + cy*(1.0f-u)*v2 + dy*u*v2;
It seems not to listen to grassmap i made
hey,
I compiled the GrassSceneNode with irrlicht 1.7.1 and I got this error
if I commend that line out it seems to works fine though(tested on win7 an Linux).
Another thing, I don't know if that is a bug in Irrlicht or the GrassSceneNode but when I edit or just save the terrain-grassmap with Paint(Win7) it won't work.
Maybe its not a bug at all but MS screwing with the .png standard.
I compiled the GrassSceneNode with irrlicht 1.7.1 and I got this error
'class irr::video::SMaterialLayer' has no member named 'TextureWrap'
Code: Select all
grass[x*width + z]->getMaterial(0).TextureLayer[0].TextureWrap = video::ETC_CLAMP;
Another thing, I don't know if that is a bug in Irrlicht or the GrassSceneNode but when I edit or just save the terrain-grassmap with Paint(Win7) it won't work.
Maybe its not a bug at all but MS screwing with the .png standard.
if(Hell.isFrozen())
{
...
{
...
-
- Posts: 2
- Joined: Sun Mar 28, 2010 10:34 pm
hey,
I have some bugfixes:
in CGrassPatchSceneNode.cpp:
you should change (257):
to:
and (237):
to:
is everyone cool with it?
I have some bugfixes:
in CGrassPatchSceneNode.cpp:
you should change (257):
Code: Select all
f32 dist =(Box.getCenter() + getPosition()).getDistanceFromSQ(SceneManager->getActiveCamera()->getPosition()) + 1;
Code: Select all
f32 dist =(Box.getCenter() + getPosition()).getDistanceFromSQ(SceneManager->getActiveCamera()->getAbsolutePosition()) + 1;
Code: Select all
core::vector3df campos = SceneManager->getActiveCamera()->getPosition();
Code: Select all
core::vector3df campos = SceneManager->getActiveCamera()->getAbsolutePosition();
if(Hell.isFrozen())
{
...
{
...
-
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm