Search found 9 matches

by JellyDude
Tue Jan 08, 2008 12:38 pm
Forum: Code Snippets
Topic: Render to AVI
Replies: 3
Views: 2249

I'm writing a (not another one) terrain node, and just tested the driver on it. With the OpenGL driver previously I was getting ~75-100 FPS. With the Software Driver writing the AVI I was getting ~2-4. I think this would be best running to completion in the background.

You may get better ...
by JellyDude
Tue Jan 08, 2008 12:27 pm
Forum: Code Snippets
Topic: Render to AVI
Replies: 3
Views: 2249

Render to AVI

Hi Guys,

With the help of the Revel and XVIDCore libraries, I just modified the CSoftwareDriver2 class to render to an AVI (XVid) file. The interface to Revel is very simple. This could be useful for apps (Like the MyPictures 3D screensaver in particular) to render to a video file instead of the ...
by JellyDude
Thu Jan 03, 2008 9:59 pm
Forum: Advanced Help
Topic: Mesh Z-fighting
Replies: 1
Views: 327

Mesh Z-fighting

Hi all,

I'm getting z-fighting between a terrain mesh and a water mesh, particularly at some distance. I was exploring the library by adding a pond/lake to a terrain. Does irrlicht support the OpenGL glPolygonOffset function? Any other ideas?

Regards,
by JellyDude
Thu Jan 03, 2008 2:23 am
Forum: Advanced Help
Topic: Distance from BoundingBox
Replies: 4
Views: 591

Thinking of creating a sphere from the boundingbox then determining the distance to it. Should work, unless someone can see a fault in my cunning plan.

vector3d middle = BB.getCenter();
vector3d diag = middle - BB.maxEdge;
float radius = diag.getLength();

Distance = max_(0.0, (point-middle ...
by JellyDude
Sat Dec 29, 2007 12:07 pm
Forum: Advanced Help
Topic: Distance from BoundingBox
Replies: 4
Views: 591

OK, ignore all that. I'll get the edges using getEdges, create 6 planes then call getDistanceTo.
by JellyDude
Sat Dec 29, 2007 12:00 pm
Forum: Advanced Help
Topic: Distance from BoundingBox
Replies: 4
Views: 591

Distance from BoundingBox

Hi,

I'm looking to calculate the distance from the camera to a bounding box. I can calculate the distance to the center, but I really need the distance to the closest edge. The bounding box is defined as (MaxEdge, MinEdge); how does this define a box? Is it, Center+MaxEdge defines a sphere around ...
by JellyDude
Wed Dec 12, 2007 8:04 pm
Forum: Beginners Help
Topic: Terrain strip only
Replies: 6
Views: 541

The Smoothing parameter looks like it performs a simple convolution on the image ... increasing this value would smooth the image even more and remove the steps (eventually).

So what we need is a combination of the TerrainSceneNode (LOD) and the TerrainMesh (large). If I get time I'll look at ...
by JellyDude
Wed Dec 12, 2007 8:49 am
Forum: Beginners Help
Topic: Terrain strip only
Replies: 6
Views: 541

Hmm, the Demo loads terrain-heightmap.bmp which is 256x256.
by JellyDude
Tue Dec 11, 2007 7:00 am
Forum: Beginners Help
Topic: Terrain strip only
Replies: 6
Views: 541

Terrain strip only

Hi Guys,

I've created a gray-scale bitmap from a DTED (DEM) file and modified the Terrain Demo to read my bitmap instead of the default one. I created a texture from the DTED as well. The DTED is 1201x1201, however I downsized it to 1024x1024 thinking it might help. When I build and run the demo ...