Search found 13 matches
- Sat Jan 30, 2010 11:51 am
- Forum: Beginners Help
- Topic: Passing arrays to functions
- Replies: 1
- Views: 258
Passing arrays to functions
Hi all, With the help of Travis from the advanced forum, I added this method to the ITerrainSceneNode object: bool CTerrainSceneNode::loadHeightMapFromArray(irr::f32 heights[], int width, video::SColor vertexColor, s32 smoothFactor) Then I added another method to the sceneManager, addArrTerrainScene...
- Sat Jan 30, 2010 8:00 am
- Forum: Advanced Help
- Topic: Terrain data from array
- Replies: 3
- Views: 900
- Sat Jan 30, 2010 1:34 am
- Forum: Advanced Help
- Topic: Terrain data from array
- Replies: 3
- Views: 900
Terrain data from array
Hi all, I'm working at extending the CTerrainSceneNode class to add a method with loads a heightmap from an array of values. Right now my function looks like this: bool CTerrainSceneNode::loadHeightMapFromArray(irr::f32* heights[], int width, video::SColor vertexColor, s32 smoothFactor) { const u32 ...
- Sun Oct 25, 2009 9:38 pm
- Forum: Beginners Help
- Topic: Real-time terrain modification
- Replies: 2
- Views: 379
- Sun Oct 25, 2009 5:17 am
- Forum: Beginners Help
- Topic: Real-time terrain modification
- Replies: 2
- Views: 379
Real-time terrain modification
Hi all,
I bet this has been answered somewhere (can't find it), but is it possible to modify a terrain (without reloading it from scratch) in real time? Specifically, I want to change the height of a terrain if, for example, a cannonball hits it.
Thanks!
I bet this has been answered somewhere (can't find it), but is it possible to modify a terrain (without reloading it from scratch) in real time? Specifically, I want to change the height of a terrain if, for example, a cannonball hits it.
Thanks!
- Sat Oct 10, 2009 1:57 am
- Forum: Beginners Help
- Topic: Alt key crashes engine :(
- Replies: 7
- Views: 539
- Sat Oct 10, 2009 1:29 am
- Forum: Open Discussion and Dev Announcements
- Topic: Request: Passing IImage or ITexture as heightmaps
- Replies: 6
- Views: 1385
- Sat Oct 10, 2009 1:15 am
- Forum: Beginners Help
- Topic: Camera problem
- Replies: 6
- Views: 387
- Fri Oct 09, 2009 3:08 am
- Forum: Beginners Help
- Topic: Camera problem
- Replies: 6
- Views: 387
- Fri Oct 09, 2009 12:29 am
- Forum: Beginners Help
- Topic: Camera problem
- Replies: 6
- Views: 387
I thought of that. But shouldn't that be handled by:
?
Thanks for trying!
Code: Select all
cam->bindTargetAndRotation(true)
Thanks for trying!
- Thu Oct 08, 2009 10:48 pm
- Forum: Beginners Help
- Topic: Camera problem
- Replies: 6
- Views: 387
- Thu Oct 08, 2009 9:46 pm
- Forum: Open Discussion and Dev Announcements
- Topic: Request: Passing IImage or ITexture as heightmaps
- Replies: 6
- Views: 1385
I still think the suggestion has merit. Or at least the ability to convert a texture to a sort of virtual io::IReadFile. What I have is a texture. Currently, as I understand it, it is not possible to convert that texture to a height map for a terrain without saving the file (hope I'm not missing som...
- Thu Oct 08, 2009 9:10 pm
- Forum: Beginners Help
- Topic: Camera problem
- Replies: 6
- Views: 387
Camera problem
Because I'm using windows to do my input I can't use the FPS or Maya camera classes. What I've done is create a normal camera and made it float above a terrain. Then I made 4 global variables to store information about the camera's position: camx, camy, camz and camr (the last one being rotation). T...