Yes it works fine with your exe and irrlicht dll
Could you send me your modified irrlicht.lib file ?
Thanks
Simple Terrain Class
-
- Posts: 222
- Joined: Mon Jan 19, 2009 10:03 pm
- Location: Miami, Florida
- Contact:
wow this is great, with the old terrain I peaked at 616FPS, with your new one I got to 4656FPS(with the camera facing the terrain, w/o 6k+)! I did find that it made my grapics card 'scream'. The fan got louder than usual and started making some squeaking noise O.o Might just be cause my fan sucks. My gfx card is an ati 4870 with 512mb DDR5
anyways thanks for this, its really useful
anyways thanks for this, its really useful
@kidhr
Oh yeah good working, totally forgot about that one!
@grumpymonkey
Yeah it gets a bit like a Burn-Test with the GPU @ 100% :p (Use at own risk! )
@Saumane
Sure, Here are my Unity scripts I wrote for terrains,
hopefully enough of them to export heightmap and splatmap.
I think maybe the heightmap must be 257*257 but that shouldn't be hard to change.
The heightmap resolution I'm uysing are (Do [Terrain]->[Set Resolution...]):
Terrain width 20480
Terrain Height 20480
Terrain length 20480
Heightmap resolution 257
Detail resolution 1024
Controle texture resolution 1024
Base texture resolution 1024
Put the files in the "basefolder"\UnityProject\Assets\Editor\ folder
Make a "basefolder"\Map folder
and leave room in the base folder for exports
Something along those lines anyway if you want to use the scripts out of the box.
Oh yeah good working, totally forgot about that one!
@grumpymonkey
Yeah it gets a bit like a Burn-Test with the GPU @ 100% :p (Use at own risk! )
@Saumane
Sure, Here are my Unity scripts I wrote for terrains,
hopefully enough of them to export heightmap and splatmap.
I think maybe the heightmap must be 257*257 but that shouldn't be hard to change.
The heightmap resolution I'm uysing are (Do [Terrain]->[Set Resolution...]):
Terrain width 20480
Terrain Height 20480
Terrain length 20480
Heightmap resolution 257
Detail resolution 1024
Controle texture resolution 1024
Base texture resolution 1024
Put the files in the "basefolder"\UnityProject\Assets\Editor\ folder
Make a "basefolder"\Map folder
and leave room in the base folder for exports
Something along those lines anyway if you want to use the scripts out of the box.
Re: Simple Terrain Class
This is awesome!
Although I'm having a small problem..
It compiles fine but I get this in the console
The game compiles and I have a terrain but the texture is mostly black with some red, green, and blue splots all over.
It doesn't appear as if the texture files for the material are being set properly, the console shows it to load the files, but the material never gets them?? probably because the shader didn't load??
any ideas???
Although I'm having a small problem..
It compiles fine but I get this in the console
Code: Select all
HLSL pixel shader compilation failed:
(113): error X3500: asymetric returns from if statements not yet implemented
ShaderNumber=-1
It doesn't appear as if the texture files for the material are being set properly, the console shows it to load the files, but the material never gets them?? probably because the shader didn't load??
any ideas???
Dream Big Or Go Home.
Help Me Help You.
Help Me Help You.
Re: Simple Terrain Class
Hello, would you help to get it textured with OpenGL?
Here is my code :
Here is my code :
Code: Select all
if(choice=='1')
{
//use the new terrain:
SimpleTerrain =
new SimpleHeightMap(smgr, smgr->getRootSceneNode(), 0, "heightmap32bit00-00.raw",core::vector3df(0,0,0),core::vector3df(0,0,0),
core::vector3df(800.0f,800.0f,800.0f));
//SimpleTerrain->setMaterialType((video::E_MATERIAL_TYPE)ShaderNumber);
//SetTextures(SimpleTerrain->getMaterial(0));
SimpleTerrain->setMaterialType(video::EMT_SOLID);
video::SMaterial material = SimpleTerrain->getMaterial(0);
material.TextureLayer[0].Texture = driver->getTexture("Map/sand.jpg");
material.Lighting = false;
material.EmissiveColor = video::SColor(255, 240,200,150);
material.SpecularColor = video::SColor(255, 223,231,100);
}