Search found 120 matches
- Mon May 03, 2010 11:23 am
- Forum: Beginners Help
- Topic: multiple OpenGL window problem and videodata question.
- Replies: 2
- Views: 319
multiple OpenGL window problem and videodata question.
A question arises whether there is a chance to use two windows with two devices. DirectX is OK, but openGL is problematic. Normally there is the wglMakeCurrent() and wglCreateContext() option for this in OpenGL.As far as I know, Irrlicht handles this with the SVideoData which can be used on renderin...
- Mon May 03, 2010 9:50 am
- Forum: Beginners Help
- Topic: Can't See 3D Lines Drawn
- Replies: 9
- Views: 981
- Mon May 03, 2010 9:41 am
- Forum: Beginners Help
- Topic: Placing Terrain Scene Nodes
- Replies: 10
- Views: 695
The answer is simple: When you create the terrainscenenode, you set the the patch size. If its 65, then your terrain can only be the multiplicative of 64. So if you have a terrain of 306x306 it will be 256x256 in real. If you use patchsize 33, the multiplicative of 32 will be created. 306/32=9,5632 ...
- Thu Apr 29, 2010 5:32 pm
- Forum: Beginners Help
- Topic: multiple openGL irrlichtDevice
- Replies: 42
- Views: 29950
So it looks like OpenGL simply sucks when you want to render into more windows from more then one device. Has anybody archieved this ever? Implementing threads is hardcore. I tried with boost. But when the device is initialised in thread, it is locked and cannot be accesed from other thread, from th...
- Thu Apr 29, 2010 1:16 pm
- Forum: Beginners Help
- Topic: multiple openGL irrlichtDevice
- Replies: 42
- Views: 29950
No, still stuck. Im using two win32 childwindows. wglGetCurrentContext() seems to be not an option, how does OpenGL know what context to give? Interestingly works: Adding HWND1 to irrlicht deviceA. A_hRC = wglGetCurrentContext(); A_hDC = wglGetCurrentDC(); AddNodeA1 for deviceA AddNodeA2 for deviceA...
- Wed Apr 28, 2010 7:56 pm
- Forum: Beginners Help
- Topic: multiple openGL irrlichtDevice
- Replies: 42
- Views: 29950
Im creating two different windows and when the second is attached to irrlicht with CreateDeviceEx, the first seems to get corrupted. Can you explain how to solve this problem? You said its because OpenGL is not supporting rendering from the same threads. I dont understand this. How should it work? I...
- Wed Apr 21, 2010 12:45 pm
- Forum: Beginners Help
- Topic: Changing vertex color of terrain.
- Replies: 5
- Views: 724
- Wed Apr 21, 2010 9:40 am
- Forum: Beginners Help
- Topic: Changing vertex color of terrain.
- Replies: 5
- Views: 724
Changing vertex color of terrain.
Whats the best way to change the vertex color of the terrainscenenode , not the material color?
- Mon Apr 19, 2010 12:01 pm
- Forum: Bug reports
- Topic: BUG: TerrainScenenode reinit+camera pos+render=MEMLEAK
- Replies: 9
- Views: 906
This is the altered version. The node is not removed, but the heights are constantly changed. int main() { // ask user for driver video::E_DRIVER_TYPE driverType=video::EDT_DIRECT3D9; if (driverType==video::EDT_COUNT) return 1; irr::SIrrlichtCreationParameters params; params.DriverType=driverType; p...
- Mon Apr 19, 2010 11:27 am
- Forum: Beginners Help
- Topic: Generating terrain from a plain c++ array
- Replies: 41
- Views: 3228
- Mon Apr 19, 2010 10:27 am
- Forum: Bug reports
- Topic: BUG: TerrainScenenode reinit+camera pos+render=MEMLEAK
- Replies: 9
- Views: 906
Actually its growing with megabytes. I tried with the loader instead of eliminating the node and creating a new one,but its the same. In the original code, I have to refresh the surface(always changing) thats why it should work with a loop. Do you have any other idea? We covered earlier this problem...
- Mon Apr 19, 2010 9:47 am
- Forum: Beginners Help
- Topic: Generating terrain from a plain c++ array
- Replies: 41
- Views: 3228
- Sun Apr 18, 2010 10:08 pm
- Forum: Beginners Help
- Topic: Generating terrain from a plain c++ array
- Replies: 41
- Views: 3228
Alastriona: Check out my post about camera movement, render+ terrain node. I posted a simple code. I have a wrapper class for irrlicht. I use it for animating surfaces with terrainscenenode. Your option for animation is to remove the node, create a new one, remove, create, etc. Or you use the RawLoa...
- Sun Apr 18, 2010 9:57 pm
- Forum: Beginners Help
- Topic: Generating terrain from a plain c++ array
- Replies: 41
- Views: 3228
- Sun Apr 18, 2010 8:40 pm
- Forum: Beginners Help
- Topic: Generating terrain from a plain c++ array
- Replies: 41
- Views: 3228
I will try your code . Isnt the multibyte,unicode settings the source of the problem? I think you will have a headache if you want to change the size from 129x129 to custom size.Thats why resizing textures is easier then writing your own interpolation routine. Hybrid is the code working correctly on...