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 ...
Search found 13 matches
- Sat Jan 30, 2010 11:51 am
- Forum: Beginners Help
- Topic: Passing arrays to functions
- Replies: 1
- Views: 315
- Sat Jan 30, 2010 8:00 am
- Forum: Advanced Help
- Topic: Terrain data from array
- Replies: 3
- Views: 1062
- Sat Jan 30, 2010 1:34 am
- Forum: Advanced Help
- Topic: Terrain data from array
- Replies: 3
- Views: 1062
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 ...
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 ...
- Sun Oct 25, 2009 9:38 pm
- Forum: Beginners Help
- Topic: Real-time terrain modification
- Replies: 2
- Views: 450
- Sun Oct 25, 2009 5:17 am
- Forum: Beginners Help
- Topic: Real-time terrain modification
- Replies: 2
- Views: 450
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: 719
- Sat Oct 10, 2009 1:29 am
- Forum: Open Discussion and Dev Announcements
- Topic: Request: Passing IImage or ITexture as heightmaps
- Replies: 6
- Views: 1576
- Sat Oct 10, 2009 1:15 am
- Forum: Beginners Help
- Topic: Camera problem
- Replies: 6
- Views: 559
- Fri Oct 09, 2009 3:08 am
- Forum: Beginners Help
- Topic: Camera problem
- Replies: 6
- Views: 559
- Fri Oct 09, 2009 12:29 am
- Forum: Beginners Help
- Topic: Camera problem
- Replies: 6
- Views: 559
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: 559
- Thu Oct 08, 2009 9:46 pm
- Forum: Open Discussion and Dev Announcements
- Topic: Request: Passing IImage or ITexture as heightmaps
- Replies: 6
- Views: 1576
- Thu Oct 08, 2009 9:10 pm
- Forum: Beginners Help
- Topic: Camera problem
- Replies: 6
- Views: 559
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 ...
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 ...