Search found 9 matches

by floxXx
Fri Mar 19, 2010 5:59 pm
Forum: Beginners Help
Topic: Create Circle Mesh
Replies: 11
Views: 1114

hybrid thank you so much

add:
mb->recalculateBoundingBox();
by floxXx
Fri Mar 19, 2010 5:06 pm
Forum: Beginners Help
Topic: Create Circle Mesh
Replies: 11
Views: 1114

and what does that mean?
by floxXx
Fri Mar 19, 2010 2:40 pm
Forum: Beginners Help
Topic: Create Circle Mesh
Replies: 11
Views: 1114

One more question / bug?

For test issues I use the Realisic Water Scene Node from this Forum on the circle Mesh.

But if I rotate the Camera, the water sometimes disappears. Move the camera and the water is visible again.

Is there a bug in my Circle Mesh or does the shader crashes with my mesh in ...
by floxXx
Fri Mar 19, 2010 2:07 pm
Forum: Beginners Help
Topic: Create Circle Mesh
Replies: 11
Views: 1114

Danke dir,

wenn sämtliche Einträge : "mb->Indices.push_back(..)"
gelöscht werden und nacher :

Code: Select all

for (irr::s32 n = vertices; 1<=n; --n)
   {
		mb->Indices.push_back(0);
		mb->Indices.push_back(n+1);
		mb->Indices.push_back(n);
   }
eingefügt funktioniert es.
Danke dir
by floxXx
Fri Mar 19, 2010 12:19 pm
Forum: Beginners Help
Topic: Create Circle Mesh
Replies: 11
Views: 1114

Create Circle Mesh

I want to make a circle Mesh by setting 2 parameters ( radius and tileCount)

How to draw the Mesh?

There is already a function addSphereMesh(..) but this is a Sphere and not a circle.

Please leave some code here.


Functions:
alpha = 360 / tileCount;
CoordX = sin(alpha) * r;
CoordZ = cos(alhpa ...
by floxXx
Tue Mar 16, 2010 3:37 pm
Forum: Advanced Help
Topic: Terrain Texture Splatting
Replies: 45
Views: 32143

Three additional questions:

1) Is there really no way to cast the b3d file to ITerrainSceneNode?

2) If I change the driver to OpelGL the whole map is dark as there is no light. But in my code i defined a light.

3) How to implement the material render type with the detail_map you mentioned.


Sry ...
by floxXx
Tue Mar 16, 2010 1:52 pm
Forum: Advanced Help
Topic: Terrain Texture Splatting
Replies: 45
Views: 32143

I use DirectX9.

Isn't it already rendered with video::EMT_DETAIL_MAP?

Here is the full code I use in this example


#include <iostream>
#include <Irrlicht.h>

using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
using ...
by floxXx
Tue Mar 16, 2010 10:01 am
Forum: Advanced Help
Topic: Terrain Texture Splatting
Replies: 45
Views: 32143

I think you mean something like this:?



//load my Terrain
IAnimatedMesh* levelMesh = (IAnimatedMesh*) smgr->getMesh("../Media/map/island.b3d");
core::vector3df scaleFactor = core::vector3df(80,30,80);
smgr->getMeshManipulator()->scaleMesh(levelMesh, scaleFactor);

IAnimatedMeshSceneNode ...
by floxXx
Tue Mar 16, 2010 9:38 am
Forum: Advanced Help
Topic: Terrain Texture Splatting
Replies: 45
Views: 32143

Hi everyone,

I'm new and have a problem using this code.

If I use the example made by trivtn with a heigtmap (ITerrainSceneNode) everything works fine.

But I don't wanna use a heigtmap. Actually I use a b3d file (IAnimatedMeshSceneNode)

But IAnimatedMeshSceneNode doesen't offer the method ...